Can't login after deploying on host

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
larss
New Member
New Member
Posts: 6
Joined: Mon Aug 04, 2008 7:17 am

Can't login after deploying on host

Post by larss »

Setup worked fine locally, I did a mysql backup and moved both that and CMSMS to the new host. I then updated the config.php to match the new paths and data source. I currently get stuck at the admin loop, where if I enter bad credentials it will give me the "Username or password incorrect" error, but will show the same login again with good credentials. I checked that cookies and sessions are working on my host. The main index.php comes up blank, but as I said the admin login seems to successfully query the database, and fail from there. Any advice as to where to start checking? I've added the following to my include.php, but it didn't fix the issue:

Code: Select all

$dirname = dirname(__FILE__);
session_set_cookie_params(0 , '/', $_SERVER['HTTP_HOST']);
session_save_path($dirname.'/tmp/cache');
This is my first deployment off my home server, onto an IIS host elsewhere; so I'm hoping I missed something simple.
alby

Re: Can't login after deploying on host

Post by alby »

larss wrote: Setup worked fine locally, I did a mysql backup and moved both that and CMSMS to the new host. I then updated the config.php to match the new paths and data source. I currently get stuck at the admin loop, where if I enter bad credentials it will give me the "Username or password incorrect" error, but will show the same login again with good credentials. I checked that cookies and sessions are working on my host. The main index.php comes up blank, but as I said the admin login seems to successfully query the database, and fail from there. Any advice as to where to start checking? I've added the following to my include.php, but it didn't fix the issue:

Code: Select all

$dirname = dirname(__FILE__);
session_set_cookie_params(0 , '/', $_SERVER['HTTP_HOST']);
session_save_path($dirname.'/tmp/cache');
This is my first deployment off my home server, onto an IIS host elsewhere; so I'm hoping I missed something simple.
Active debug in config.php and look in your server logs

Alby
kanjigirl
Forum Members
Forum Members
Posts: 52
Joined: Fri Aug 01, 2008 11:23 pm

Re: Can't login after deploying on host

Post by kanjigirl »

I have the same problem - it was working fine on a live production site on the same host (Linux), moved it, now cannot login. Changing the username and/or password in the database makes no difference. Debug is turned on, there are no errors in the server log.

When I try to login, the login page just refreshes, nothing else.
alby

Re: Can't login after deploying on host

Post by alby »

kanjigirl wrote: When I try to login, the login page just refreshes, nothing else.
Run install/index.php and look for errors. Uncheck create DB tables and sample contents in step 5 (about I think)

Alby
mel
Forum Members
Forum Members
Posts: 147
Joined: Mon Dec 11, 2006 11:53 pm

Re: Can't login after deploying on host

Post by mel »

Get the same problem:
I have this

Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 366566 bytes) in /home/dr6wratp/public_html/lib/smarty/plugins/modifier.debug_print_var.php on line 47

What it's wrong and what I should do?
Thanks
Mel

[edit] Forget it, stupid error of me... I changed admin name in new install but keep my "old" database, containing not the same login name...
Last edited by mel on Sat Oct 04, 2008 8:10 pm, edited 1 time in total.
Version 1.6-MLE
Pierre M.

Re: Can't login after deploying on host

Post by Pierre M. »

larss wrote: ... so I'm hoping I missed something simple.
The choice of a non Windows hosting ?-)
More seriously : monitor your http logS and report any warning from the installer.

Pierre M.
Locked

Return to “[locked] Installation, Setup and Upgrade”