Page 1 of 1

Cannot start session without errors, please check errors giv

PostPosted: 12. November 2007 09:55
by jmichae3
new installation, and out of the box, neither WAMP 's phpmyadmin has worked, nor XAMPP.
phpMyAdmin - Error
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

log shows:
[Mon Nov 12 00:24:01 2007] [error] [client 127.0.0.1] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: open(C:\\DOCUME~1\\Jim\\LOCALS~1\\Temp\\php\\session\\sess_gjvi99bko7q0592gb0gcrhsg87, O_RDWR) failed: No such file or directory (2) in C:\\xampp\\phpMyAdmin\\libraries\\session.inc.php on line 89, referer: http://localhost/xampp/navi.php
[Mon Nov 12 00:24:01 2007] [error] [client 127.0.0.1] PHP Warning: Unknown: open(C:\\DOCUME~1\\Jim\\LOCALS~1\\Temp\\php\\session\\sess_gjvi99bko7q0592gb0gcrhsg87, O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer: http://localhost/xampp/navi.php
[Mon Nov 12 00:24:01 2007] [error] [client 127.0.0.1] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\\DOCUME~1\\Jim\\LOCALS~1\\Temp\\php\\session) in Unknown on line 0, referer: http://localhost/xampp/navi.php


php.ini has
session.save_path = "C:\xampp\tmp"

tried switching to version 4 php.

changed the permissions of the tmp directory so it has full permissions on every account (could not change owner) & turned off the readonly attribute.

these are the common fixes I have seen. once in russian via google I saw mcrypt.dll mentioned at the end of a thread.
nothing I have seen yet on any forum has worked. so far. I'm still digging. This is the latest version of xampp, a la Nov 12, 2007.

I finally figured it out. the installer is not creating
C:\Documents and Settings\Jim\Local Settings\Temp\php\session


C:\Documents and Settings\Jim\Local Settings\Temp
already exists.

then phpmyadmin complains about mysql not being loaded properly.
to fix this, switch PHP to version 4.

this should have been done in the installer.

PostPosted: 13. November 2007 16:09
by sari42
session.save_path = "c:\windows\temp"
in your php.ini (and restarting the webserver) should work (php must have modify rights there). Are you sure that you edited the right php.ini? Ask <?php phpinfo(); ?> for the location and the actual setting of session.save_path .
____

mcrypt is only needed for "cookie" login,
try auth_type "http" instead.