Forums / General Questions / Moving to a new server... HELP!

Moving to a new server... HELP!

Views: 589

Results 1 to 4 of 4
8 Feb 2012, 9:57 PM
#1
jnb41578 avatar

jnb41578

New Zenner

Join Date:
Jul 2011
Posts:
72
Plugin Contributions:
0

Moving to a new server... HELP!

I have moved my ZC to a new server. I followed all the instructions on the following link:

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

Did everything it said, although it is very unclear as to why I do not transfer over my configure.php files, and it does not tell me HOW to edit or WHAT to edit in there.

I tried going to my admin panel and this is the error message I get

2.Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.

When I go directly to my website, everything is fine, along with making purchases.. I just can't get into the admin control panel.

I have searched everywhere for this problem.

Any help is appreciated!

Thank you!

8 Feb 2012, 10:03 PM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Moving to a new server... HELP!

2.Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.

That's really rather self-explanatory. You need to edit the configure.php files to update them with the information for your new server. Remember that these files are usually set as read only so you will need to change the permissions before editing, and then back after you're done.

The best way to learn is to try stuff. But, back it up first.

8 Feb 2012, 10:15 PM
#3
jnb41578 avatar

jnb41578

New Zenner

Join Date:
Jul 2011
Posts:
72
Plugin Contributions:
0

Re: Moving to a new server... HELP!

I agree, self-explanatory! However, when I did edit them and change the absolute hosting path in both of these files everywhere it needed it. I then get an error message that it cannot connect to the database...

0 DB_ERROR_NOT_CONNECTED
in:
[select * from project_version WHERE project_version_key = 'Zen-Cart Database' ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Any input on this by chance?

Thanks!

8 Feb 2012, 11:05 PM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Moving to a new server... HELP!

The hosting paths are one setting, the database information is another. You need to enter the database user name, database name, database password, and the database server - which is almost always "localhost".

The best way to learn is to try stuff. But, back it up first.