Category Archives: nginx

Fix “Class ‘PMA_Message’ not found” in phpMyAdmin with nginx + PHP_FPM

After updating phpMyAdmin I got this error:

PHP message: PHP Fatal error:  Class 'PMA_Message' not found in /usr/share/phpMyAdmin/libraries/Message.class.php on line 649" while reading upstream, client: xxx.xxx.xxx.xxx, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "myweb.com"
2014/12/20 18:05:28 [error] 27827#0: *30369 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined property: PMA_Error::$hash in /usr/share/phpMyAdmin/libraries/Error.class.php on line 169
PHP message: PHP Notice:  Undefined property: PMA_Error::$isDisplayed in /usr/share/phpMyAdmin/libraries/Message.class.php on line 724
PHP message: PHP Notice:  Undefined property: PMA_Error::$params in /usr/share/phpMyAdmin/libraries/Message.class.php on line 538

The problem was that the /var/lib/php/session owner group had changed and was no more owned by nginx. This solved the issue:

# chown root:nginx /var/lib/php/session

PhpMyAdmin-Logo

Ref: http://incredimike.com/2011/04/phpmyadmin-installation-errors/