Can't log in as admin after install? Possible solution...
Posted: Fri Jun 30, 2006 6:19 am
I banged my head for hours trying to figure out why a fresh install of CMSMS .13 on my production server wouldn't work, while the CMS worked fine on an "identically" configured dev server.
Turns out the servers were NOT configured the same, and the problem turned out to be in my php.ini file. The session.cookie_domain value was blank on my dev server, and set to a fully-qualified domain (i.e. 'www.somewhere.com') on my production server. The subdomain I was installing CMSMS in on the production server was NOT the same as that listed in php.ini. Relaxing the session.cookie_domain value to '.somewhere.com' fixed the problem.
In short, cookies were not making it to the browser. If you get stuck in a loop trying to log into the admin area (and are not getting a bad password message), scrutinize your cookie handling. Odds are your server is not generating cookies, or your browser is not accepting them.
Good luck.
Turns out the servers were NOT configured the same, and the problem turned out to be in my php.ini file. The session.cookie_domain value was blank on my dev server, and set to a fully-qualified domain (i.e. 'www.somewhere.com') on my production server. The subdomain I was installing CMSMS in on the production server was NOT the same as that listed in php.ini. Relaxing the session.cookie_domain value to '.somewhere.com' fixed the problem.
In short, cookies were not making it to the browser. If you get stuck in a loop trying to log into the admin area (and are not getting a bad password message), scrutinize your cookie handling. Odds are your server is not generating cookies, or your browser is not accepting them.
Good luck.