With my default setup of Centos 6.5 64 bit and nginx 1.4.x, I got a strange error when setting up phpMyAdmin. It turns out that it was just a directory permission issue and that the default setup expects user it be
apache instead of
What I got is a UI error saying something is wrong with sessions with red colors all over the place.
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.
Behind it is a clearer error as seen in error log:
PHP Fatal error: Class 'PMA_Message' not found in ...
The issue is that the permission set on
/var/lib/php/session is owned by root user and apache group. Just change the group to nginx to solve the issue.
sudo chgrp nginx -R /var/lib/php/session