FAQ: Can not login to /administrator (Joomla! backend) (when using WAMP)
Posted: Sun Dec 04, 2005 6:49 pm
*** searchwords ***
Wamp, Windows, Apache, MySQL, Php, administrator, backend, login, problem
*** problem ***
Lot of people have problems loggin in to the Joomla! administrator. I had no problems on my apple or my linux install, but when using windows i came accross the login problem.
So what is the problem? Well in my case it was a session error. I installed php in a non default windows directory.
php.ini stated that my session should be saved in:
c:\PHP\sessiondata
but that directory does not exist.
*** solution ***
I changed the session savepath to:
session.save_path= C:\apache\PHP\sessiondata
*** is it the session error? ***
You can test whether or not you have a session error by editing administrator/index.php.
Add the lines:
session_start();
echo $_SESSION['session_id']
if the session can not be set you'll get a error that looks like this:
Warning: Unknown(): open(C:\PHP\sessiondata\sess_2dc0c0ca81f559eaf3eeb014cb05bb72, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Make sure the error reporting level in php.ini is at least 'Warning':
error_reporting = E_WARNING;
*** links ***
Other reported problems can be found here: http://forum.joomla.org/index.php/topic,6490.0.html. If we only post solutions to the problem here we can keep the FAQ 'clean'.
Wamp, Windows, Apache, MySQL, Php, administrator, backend, login, problem
*** problem ***
Lot of people have problems loggin in to the Joomla! administrator. I had no problems on my apple or my linux install, but when using windows i came accross the login problem.
So what is the problem? Well in my case it was a session error. I installed php in a non default windows directory.
php.ini stated that my session should be saved in:
c:\PHP\sessiondata
but that directory does not exist.
*** solution ***
I changed the session savepath to:
session.save_path= C:\apache\PHP\sessiondata
*** is it the session error? ***
You can test whether or not you have a session error by editing administrator/index.php.
Add the lines:
session_start();
echo $_SESSION['session_id']
if the session can not be set you'll get a error that looks like this:
Warning: Unknown(): open(C:\PHP\sessiondata\sess_2dc0c0ca81f559eaf3eeb014cb05bb72, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Make sure the error reporting level in php.ini is at least 'Warning':
error_reporting = E_WARNING;
*** links ***
Other reported problems can be found here: http://forum.joomla.org/index.php/topic,6490.0.html. If we only post solutions to the problem here we can keep the FAQ 'clean'.