PHP myadmin Cannot start session without errors

PHP myadmin Cannot start session without errors

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.
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.

Locate the directory where sessions are stored in the php.ini file. It will look something like this, although the exact path will vary depending on the distro and any customizations you may have made yourself:
view sourceprint
1session.save_path = "/var/lib/php5/session"
Now check the permissions of that directory and make sure that the web server has permissions to access it.
You may need to either change ownership of the directory, e.g.:
1sudo chown user:group /var/lib/php5/session
and substitute "user" for the actual username and "group" for the actual group, and /var/lib/php/session for the actual session save path.
Alternatively, just change the permissions of the directory so it's world readable and writeable:
1sudo chmod 0777 /var/lib/php/session
restart your apache server
sudo /etc/init.d/apache2 restart