Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Location
    Scotland
    Posts
    39
    Plugin Contributions
    0

    Default Problems changing install directory

    I followed the instructions on https://www.zen-cart.com/tutorials/i...hp?article=122 to change my install directory to the root of my site, it seemed to work OK at first, but now I am just getting...

    Sorry!
    There seems to be a problem connecting to our database. Please give us a few minutes to remedy the problem. Thank you.


    I still have the original install in place as I didn't want to delete it until I was sure the new install was OK, what is puzzling me is after I login to my new Zen Cart admin directory, the url has /catalog/ and all the links are to /catalog/ (the old install dir.), so it seems I am being re-directed to the old admin area.

    NB there is also a setting in my web-host control panel to specify the installation directory, but changing that didn't fix the problem.

    Any help please? thanks
    Last edited by double-happiness; 30 Nov 2011 at 01:48 PM.

  2. #2
    Join Date
    Oct 2011
    Location
    AZ
    Posts
    384
    Plugin Contributions
    0

    Default Re: Problems changing install directory

    Just a few thoughts based on mistakes I might have made myself but I'm not admitting to it -

    Step 4 of that tutorial is critical - if you don't set the permissions to writable first, then you just think you've made the changes but you really didn't. And if you're doing it in the middle of the night, 16 hours in front of the monitor with nothing but stale doritos and a 6-pack of red bull, it's easy to make the same mistake over and over and over....

    Are you following the old bookmark to get to the new admin site?
    (Try typing in www.yourdomain/yoursecretadmin/login.php)

    And the big one - if it worked, but then it doesn't - Did your host take the server down for maintenance without telling you?

  3. #3
    Join Date
    Dec 2010
    Location
    Scotland
    Posts
    39
    Plugin Contributions
    0

    Default Re: Problems changing install directory

    Thanks for the response.

    The edits look to have been saved fine...

    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    I take it that would be right for the root directory?

    I'm defintely logged in to the new install, all the links shown there are fine.

  4. #4
    Join Date
    Dec 2010
    Location
    Scotland
    Posts
    39
    Plugin Contributions
    0

    Default Re: Problems changing install directory

    Seems to be OK now. Should I just go ahead and delete the old installation, is there a way to deactivate it without removing the files, or would that be more of a security risk?

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Problems changing install directory

    I don't see any reason you can't keep the old install as a test site, but if it's still sharing the same database as the live site, any changes you make will be reflected in both sites. You could create a separate database for the "old" cart (create the db, copy the live db into it and then change the config of the "old" cart to point to the test db).
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  6. #6
    Join Date
    Dec 2010
    Location
    Scotland
    Posts
    39
    Plugin Contributions
    0

    Default Re: Problems changing install directory

    The cart on my main page is now permanently down.

    Sorry!
    There seems to be a problem connecting to our database. Please give us a few minutes to remedy the problem. Thank you.


    ...is all I can get at present. Any suggestions please?

    I've been working on this for about a year now and yet to see a stable install at the url I want

 

 

Similar Threads

  1. changing install directory
    By neit in forum General Questions
    Replies: 6
    Last Post: 14 Sep 2010, 12:08 PM
  2. Changing from root to sub directory problems
    By Whale in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 20 Jul 2009, 10:46 PM
  3. Install wizard not allowing install in /secure/ directory
    By Ricky_O in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 15 Apr 2007, 09:04 PM

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