Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Moving site between two domains on same server

Moving site between two domains on same server

Locked

Views: 2,738

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
5 Sep 2006, 4:44 AM
#1
deker avatar

deker

New Zenner

Join Date:
Nov 2003
Posts:
12
Plugin Contributions:
0

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!

5 Sep 2006, 4:50 AM
#2
drbyte avatar

drbyte

Sensei

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

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.

5 Sep 2006, 4:52 AM
#3
deker avatar

deker

New Zenner

Join Date:
Nov 2003
Posts:
12
Plugin Contributions:
0

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.

5 Sep 2006, 4:53 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Moving site between two domains on same server

excellent !

7 Sep 2006, 4:09 PM
#5
ousel avatar

ousel

New Zenner

Join Date:
Aug 2006
Posts:
84
Plugin Contributions:
0

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?

7 Sep 2006, 4:51 PM
#6
ousel avatar

ousel

New Zenner

Join Date:
Aug 2006
Posts:
84
Plugin Contributions:
0

Re: Moving site between two domains on same server

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