Fixin’ issues one ticket at a time!
Session.save_path error
So…I came across this error on a clients site which he was receiving when trying to install a 3rd party script.
The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist.
It’s a pretty simple fix in the servers php.ini. First thing you need to do is locate your servers copy of the php.ini by running the following command via SSH.
root@lolwut [~]# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
root@lolwut [~]#
Once you’ve found the php.ini, use your favorite editor and locate the following line.
root@lolwut [~]# grep ‘session.save_path’ /usr/local/lib/php.ini
; session.save_path = “N;/path”
;session.save_path = /tmp
; (see session.save_path above), then garbage collection does *not*
root@lolwut [~]#
In this case, simply remove “;” which will uncomment the line. If you are missing the “/tmp” part of the line, you will need to add it. Make these changes and save the file, then restart apache and you’re good to go.
| Print article | This entry was posted by Clayton on December 1, 2009 at 6:28 am, and is filed under Linux, Php.ini, SSH, Tutorial. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |