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 get this error regularly setting up new nginx+php-fpm servers and I keep forgetting the fix.
So here’s another note-to-self..
Check session save path
PHP0php -i |grep save_path
Check permissions of the directory
PHP0ls -ahl /var/lib/php/
This should tell you which user owns the session dir, most likely this is NOT the same as your php-fpm user.
Check user of php-fpm
PHP0ps aux |grep php-fpm
I have set php-fpm set as nginx user, so I gotta fix the owner of the session dir.
Fix owner and/or permissions
PHP0chown -R nginx: /var/lib/php/session
- Restart php-fpm
PHP0service php-fpm restart
- Test phpmyadmin again, it should work now