Zen Cart Logo
Forums / General Questions / Admin trouble after changing servers

Admin trouble after changing servers

Views: 699

Results 1 to 6 of 6
9 May 2011, 4:26 PM
#1
dannyfischman avatar

dannyfischman

New Zenner

Join Date:
Apr 2011
Location:
San Diego, CA
Posts:
7
Plugin Contributions:
0

Admin trouble after changing servers

After moving my zencart based site to another server (for a fixed I/P and SSL), the user end of the site appears connected to the database and working, but the admin side fails to connect to the database. I checked that the username and password are correct.

I'm using the current version of zen cart and
Apache version 2.2.14
PHP version 5.2.12
MySQL version 5.0.91

I should mention that while following the transfer instructions I ran into two puzzling conflicts:

  1. The instructions were talking about an 'admin' directory where as my admin directory is 'zc_admin' and
  2. In the zc_admin folder I have no 'configure.php' but I do have 'configuration.php'.

I NEED HELP!! PLEASE!!

9 May 2011, 4:35 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Admin trouble after changing servers

the file is here...

zc_admin/ includes/ configure.php

What do you have here:
define('DB_PREFIX', '');

Reason why.. are you using a database prefix?????

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

9 May 2011, 6:09 PM
#3
dannyfischman avatar

dannyfischman

New Zenner

Join Date:
Apr 2011
Location:
San Diego, CA
Posts:
7
Plugin Contributions:
0

Re: Admin trouble after changing servers

Thanks for the reply!
The prefix is zen_ and it is correct both in the configure files and the database.

9 May 2011, 7:42 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: Admin trouble after changing servers

You might have to call the host and ask about these fields then..

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'XXXXXXXXXX');
define('DB_SERVER_PASSWORD', 'XXXXXXXX');
define('DB_DATABASE', 'XXXXXXXXX');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');

I used XXXXXXX to hide my original... Ask your host company..

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

9 May 2011, 8:54 PM
#5
dannyfischman avatar

dannyfischman

New Zenner

Join Date:
Apr 2011
Location:
San Diego, CA
Posts:
7
Plugin Contributions:
0

Re: Admin trouble after changing servers

Thank you again!
Now, here's the problem --
you know how there are two configure files, right?
So them vars you mention are in both, ok, and they are the same.
The one used for the store is obviously correct because the store works. Accesses the database - no problem.
The admin, now it gives me a general error about "internal error" when I try to log in as admin.
What to do? Oh what to do???:wacko: