Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Error : Failed to write session data  (Read 2999 times)

0 Members and 1 Guest are viewing this topic.

Ajayan

  • Guest
Error : Failed to write session data
« on: March 14, 2015, 05:04:47 am »
If you are getting the following error in error log, then it might be permission issue with /var/lib/php/session
===========================
Error: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
===========================

This was a known bug in version(s) of PHP . Depending on your server environment, you can try setting the sessions folder to 777:
==============================
chmod  -R 777 /var/lib/php/session
chown root:root /var/lib/php/session
==============================

Try it !