Page 1 of 1
Can't login after deploying on host
Posted: Mon Aug 04, 2008 7:25 am
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.
Re: Can't login after deploying on host
Posted: Mon Aug 04, 2008 8:54 am
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
Re: Can't login after deploying on host
Posted: Wed Oct 01, 2008 2:15 pm
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.
Re: Can't login after deploying on host
Posted: Wed Oct 01, 2008 2:35 pm
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
Re: Can't login after deploying on host
Posted: Sat Oct 04, 2008 7:48 pm
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...
Re: Can't login after deploying on host
Posted: Mon Oct 06, 2008 5:14 pm
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.