Zen Cart Logo
Forums / General Questions / Installation On Separate Servers

Installation On Separate Servers

Locked

Views: 1,433

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
7 Dec 2007, 12:01 AM
#1
m_martins avatar

m_martins

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Installation On Separate Servers

Is there anyway to install zencart on different servers? in the sense that the admin/ folder resides in domaina.com and other files and folders in domainb.com.

I will appreciate it if anyone can show me the possibility of this.

Thanks in advance.

7 Dec 2007, 12:14 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Installation On Separate Servers

Interesting concept -If your don't mind, why do that?

7 Dec 2007, 1:29 AM
#3
m_martins avatar

m_martins

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Re: Installation On Separate Servers

I have to shops and I want to update both shops from the same admin if that make sense.

Thanks.

7 Dec 2007, 1:52 AM
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Installation On Separate Servers

Do they have the same database tho?

7 Dec 2007, 2:31 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Installation On Separate Servers

Sounds like you may want the Multisite Module (look in Downloads).

7 Dec 2007, 3:52 AM
#6
m_martins avatar

m_martins

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Re: Installation On Separate Servers

@ **yellow1912 **, yes they do have the same database.

@ gjh42, thanks for the tip, I've downloaded the mod, tho I've not yet fully implemeted it yet.

What I really want to know is the possibility of zencart admin/ folder, to reside in another server. This is an example of what I mean:

I have copied all non zencart admin files and folders to domaina.com and copied the zencart admin/ folder to domainb.com.

Now running the zc_install/ on daomaina.com, I get the following error.

/admin/includes/configure.php does not exist more info...

Remember that if the zencart admin/ folder had resided in domaina.com the installation would have continued.

So now what do I do from here?

Thanks.

7 Dec 2007, 3:55 AM
#7
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Installation On Separate Servers

I have not tried it yet, but there is one bad thing about ZC that may actually help in this case: most if not all functions in the catalog and in admin are not related. In fact, you can remove the admin folder from your site and that would not even have any affect on the catalog side.

Does that give u some idea ;) ?

Install ZC completely on 1 site, then move the admin folder to the other server. Edit admin/includes/configure.php to reflect the new changes.

7 Dec 2007, 4:26 AM
#8
m_martins avatar

m_martins

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Re: Installation On Separate Servers

Install ZC completely on 1 site, then move the admin folder to the other server. Edit admin/includes/configure.php to reflect the new changes.

@ **yellow1912 ** thanks for the info, still curious tho! after moving the zencart admin/ folder to the other server, what is the possibility of updating the content of the non zencart admin/ server from the residing one?

I'm I making any sense?

7 Dec 2007, 4:29 AM
#9
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Installation On Separate Servers

First, I am assuming that you simply want to have admin folder on 1 server, and 1 catalog on the other server.

Now, both of them must share the SAME database, which can be stored on either one of the servers. So changes made on one will affect the other. Make sense?

7 Dec 2007, 5:05 AM
#10
m_martins avatar

m_martins

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Re: Installation On Separate Servers

Nice one... admin/ folder now moved to the other domain. Now editing > "/admin/includes/config.php"

Do you know how I can go about this;

Path Configuration

define 'DIR_WS_ADMIN', '/cms/admin/');
define('DIR_WS_ADMIN', '/cms/admin/');
define('DIR_WS_CATALOG', '/cms/');
define('DIR_WS_HTTPS_ADMIN', '/cms/admin/');
define('DIR_WS_HTTPS_CATALOG', '/cms/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

The above need to be edited init?, what will the path be?

I'm stuck...

7 Dec 2007, 5:10 AM
#11
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Installation On Separate Servers

Ahh, forgot one single thing: how would images be uploaded, since it is store on the catalog side. Let me think about it a bit.

7 Dec 2007, 6:15 AM
#12
m_martins avatar

m_martins

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Re: Installation On Separate Servers

I'll check you up later...

7 Dec 2007, 6:30 AM
#13
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Installation On Separate Servers

Since image is stored on category side, we have to:
When adding product on admin, upload image to the other server.
Some code re-written needed to be done here. Be ready to get your hands dirty.

.......

I have just checked it, you said you have 2 shops, and want to update them from the same admin page. Huhm, you really need to install "MultiSite Module". I thought that you need 1 admin and 1 catalog only.

7 Dec 2007, 2:19 PM
#14
m_martins avatar

m_martins

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Re: Installation On Separate Servers

As a matter of fact , i mean two servers not two shops. As we were, 1 catalog on one server and admin on the other server this is exacly my plan, so admin act as a standalone, so we are on the right path.

The other server has no catalog at all, just the admin folder will reside in in this server.

7 Dec 2007, 2:21 PM
#15
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Installation On Separate Servers

May I ask the reason why again? Because on your previous post you said you have 2 shops and want to update both on 1 admin, which is not the case here.

Regards.

7 Dec 2007, 3:03 PM
#16
m_martins avatar

m_martins

New Zenner

Join Date:
Dec 2007
Posts:
8
Plugin Contributions:
0

Re: Installation On Separate Servers

Yes I do have two shops on 2 servers.

I have removed the catalog on server 1, left with the admin/ folder. ( I intend to dedicate this server to my client.

Presently I use zencart for most of my clients, as either cms or ecommerce bases.

Due to clientA not having enough space on his server or what ever reason, we decided to host the clientA admin/ folder on my server and clientA will be able to administer his site fom my server.

And from the way you were going, the possibility is coming up bit by bit.

7 Dec 2007, 3:11 PM
#17
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Installation On Separate Servers

So you wanna save space: but the point is: the admin folder does not store much, maybe a few MBs? All images are stored on the catalog side.
It can even save more space if you just leave the admin there, yet have the database stored on a different server.

My point is: the only 2 things that take much space are: database and images (resided in catalog anyway), so taking the admin folder to another site won't make any difference at all.

Another thing: hosting is so cheap now, I can't even think of any host that a few MBs (of admin folder) can make a difference.