Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default 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');

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default 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/i...hp?article=100
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. still have error on site re: configure.php
    By Corina in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 16 Dec 2008, 05:41 PM
  2. Can't rename dist-configure.php because there is already a configure.php
    By mamasylvia in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 17 Mar 2008, 06:57 AM
  3. Editing configure.php to secure site
    By Toina in forum General Questions
    Replies: 3
    Last Post: 3 Jul 2007, 09:24 AM
  4. payment configure confusion
    By mex in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Mar 2007, 08:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg