Zen Cart Logo
Forums / General Questions / dev site configure.php confusion

dev site configure.php confusion

Views: 372

Results 1 to 3 of 3
14 Feb 2012, 2:42 PM
#1
familynow avatar

familynow

Zen Follower

Join Date:
Aug 2011
Location:
Near Ottawa, Ontario, Canada
Posts:
321
Plugin Contributions:
0

dev site configure.php confusion

Hi.

For some reason I can't seem to remember how to config my dev site in configure.php. I've got mysite.com and mysite.com/dev123

The front-end works fine but in the admin I'm getting a url like this[1]. Here's2[] my relevant config section. I've tried removing /dev123/ from the conf section thinking that's what was doubling things up but that didn't help any.

ref.
[1]
mysite.com/dev123/dev123/conf/login.php?[....]

[2]
define('DIR_WS_ADMIN', '/dev123/conf/');
define('DIR_WS_CATALOG', '/dev123/');
define('DIR_WS_HTTPS_ADMIN', '/dev123/conf/');
define('DIR_WS_HTTPS_CATALOG', '/dev123/');

define('DIR_FS_ADMIN', '/hsphere/local/home/<uid>/mysite.com/dev123/conf/');
define('DIR_FS_CATALOG', '/hsphere/local/home/<uid>/mysite.com/dev123/');

define('DIR_FS_SQL_CACHE', '/hsphere/local/home/<uid>/mysite.com/dev123/cache');

14 Feb 2012, 11:43 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: dev site configure.php confusion

You've not posted the relevant HTTP_SERVER section.
If you're gonna put dev123 in your DIR_WS_ADMIN settings, then you MUST NOT put it in your HTTP_SERVER settings as well.

The URLs are built by concatenating HTTP_SERVER . DIR_WS_ADMIN or HTTPS_SERVER . DIR_WS_HTTPS_ADMIN, so if you add dev123 into both of them, you'll naturally get duplication.

14 Feb 2012, 11:44 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: dev site configure.php confusion

Far better would be to do a clean install on your dev site, so that zc_install can build the correct configure.php files FOR YOU.

That's ALWAYS the recommended approach.

https://www.zen-cart.com/tutorials/index.php?article=100