How to fix: “phpMyAdmin – Error Cannot start session without errors”


When I try to login to PHPmyadmin, I get the following error:

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. Also ensure that cookies are enabled in your browser.

I tried to fix by changing permissions of the /tmp (listed as sessions path in php.ini) to 755, then tried 777.

I also tried changing user and group ownership with chown to www-data. (www-data listed as user for php-fpm and Nginx).

Tried multiple web browsers, deleting cookies, deleting all session files from server's /tmp folder.

PHP info shows sessions loaded. Not sure what else it could be, all other areas of the site load perfect and there's nothing in error logs related.

Is this something you are familiar with?

Best Answer

PHP "sessions" store variables so they can persist across multiple HTTP requests.

PHP sends your browser a single cookie that serves as a key. The key is used to retrieve the values from server-side storage.

By default, PHP uses files to store session data on the webserver (which in your case is actually your local PC). Your error indicates that your webserver can't retrieve the file, so it can't restore the variables, and phpMyAdmin can't proceed.

This is likely due to filesystem permissions issues on your local PC.

Do following things

Try to open phpmyadmin in another browser. If it opens then it means it is related with your browser cache memory so try to delete cache and temp files of your browser then restart your wampsever.

Second thing, If the first one fails, try to delete session files of phpmyadmin which is located in C:/wamp/tmp. Do not delete the temp folder but the content inside the temp folder.

Restart your wampsever and it will work.

Related Question