Henry's Web Notes

My dev notes about the web

Archive for the ‘PHP’ Category

PHP: Session Save Path Error

Wednesday, April 30th, 2008

Error: Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

This error has something to do with the directory where your PHP sessions are saved. Check the value of session.savepath in your php.ini and make sure that the directory has a write permission or if it exists. If you are running PHP on Windows, typically on install time, the default setting for this is under C:\Documents and Settings\[user]\Local Settings\Temp\php\Session. In some weird cases, Windows deletes this directory. So if you get the error message above, make sure that this directory still exist. If not, you can simply create the directory or better yet, change your session.savepath setting to a directory out of temp.