Forums / Installing on a Linux/Unix Server / Switched hosts, everything works but admin login

Switched hosts, everything works but admin login

Started by mirabella on 12 Jan 2011, 4:50 PM · Views: 980

Results 1 to 5 of 5
12 Jan 2011, 4:50 PM
#1
mirabella avatar

mirabella

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Switched hosts, everything works but admin login

I just switched hosts and reinstalled on the new server, replaced the database with the old on and maintained the new configure.php files. Everything works and looks great except when I try to login to the admin.
It takes me to the admin login but once I put in my username and password, which is correct, it redirects me to the customer login.
Thanks in advance for any help you can give!

12 Jan 2011, 5:01 PM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Switched hosts, everything works but admin login

It sounds like a problem with your admin/includes/configure.php file.

Vger

13 Jan 2011, 5:13 PM
#3
mirabella avatar

mirabella

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: Switched hosts, everything works but admin login

I have checked and rechecked this and compared it to a fresh install and the old install. All of the settings seem right. I can get to the admin login panel but when I login it redirects me to the customer login.

It seems like it isn't pointing to the admin but instead the customer. I have seen this problem a lot on the board but no solution.

13 Jan 2011, 5:39 PM
#4
mirabella avatar

mirabella

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: Switched hosts, everything works but admin login

Also...it is pointing to the shop/index.php when I go to shop/admin instead of shop/admin/index.php Any clue what file points it there...maybe it needs to be corrected?

13 Jan 2011, 6:47 PM
#5
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Switched hosts, everything works but admin login

All of the settings seem right

These 3 settings in your adminfoldername/includes/configure.php file need to contain the name of the 'admin' folder as part of the pathway. These are posted as an example only and will not match the settings of your own website:

define('DIR_WS_ADMIN', '/zencart/admin/');
define('DIR_WS_HTTPS_ADMIN', '/zencart/admin/');
define('DIR_FS_ADMIN', '/your/path/to/root/goes/here/zencart/admin/');

Vger