Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2003
    Posts
    12
    Plugin Contributions
    0

    Default Moving site between two domains on same server

    I know this is the installation forum but figured it would be the most closely related to my problem. And yes, I have read the Wiki page on switching servers.

    I developed a large zencart site on a subdirectory of my domain, and now need to move it to its own domain, which is under the same reseller account on my server. I asked the server guys to move all the files for me, which worked great.

    I started to edit the configure.php files and of course the site broke. The problem seems to be that it can't connect to the database. I have pointed it to the new database, but I think it may not be taking the password. The old password looks like it was encrypted somehow, and I don't know how to encrypt it again to make it work, or if it even needs to be encrypted.

    The database is on localhost and everything else seems to be ok.

    Is there anyway to make it connect to the new database without running through the installer again? I have made changes to some of the files and would really hate to have to go through and make all those changes again, if I can even remember what I did. And I'm not counting changes inside the template directories.

    Any ideas would be very helpful!

  2. #2
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Moving site between two domains on same server

    if it's only not connecting to the database, then chances are that the username+password+database settings aren't all valid.

    db passwords are not encrypted

    1. database must exist
    2. user must exist, and have password assigned
    3. user (#2) must be granted permission to access database (#1)

    most often people miss #3.

    Details from #1 and #2 must be in your configure.php files.

    #1, #2, #3 are all created/set via your hosting control panel.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Nov 2003
    Posts
    12
    Plugin Contributions
    0

    Default Re: Moving site between two domains on same server

    Wow, fast reply, was just about to come back and post that I figured it out, so I don't make a fool of myself. Too late! ;) It was the password I think. I just created a new user and added it to the database, works great now.

  4. #4
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Moving site between two domains on same server

    excellent !
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  5. #5
    Join Date
    Aug 2006
    Posts
    89
    Plugin Contributions
    0

    Default Re: Moving site between two domains on same server

    I have just done the same thing - moved my store from a subdomain to become the main site.

    Although the website appears to be OK, I cannot log into the admin section.

    I have checked the admin/includes/configure.php file, but I think it's OK.

    Could the problem be elsewhere, or should I check the file again?

  6. #6
    Join Date
    Aug 2006
    Posts
    89
    Plugin Contributions
    0

    Default Re: Moving site between two domains on same server

    Please ignore the last post - I had edited the configure file incorrectly!

 

 

Bookmarks

Posting Permissions

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