Interested in Linux and open source news? You can subscribe to my weekly newsletter, cron.weekly, and stay up-to-date on news in open source, cool new projects and useful tips tailored to linux sysadmins!

Running phpMyAdmin with APC cache enabled, fatal PHP errors

Author: 8 Comments

If you run phpMyAdmin in combination with PHP's APC caching module, you might find your phpMyAdmin returning blank white pages instead of the actual management interface. In your errors logs, you can see messages like this.

PHP Fatal error:  Class 'PMA_Error_Handler' not found in /path/to/phpMyAdmin/libraries/ on line 58
PHP Fatal error:  Call to undefined function PMA_getenv() in /path/to/phpMyAdmin/libraries/ on line 143

The solution is to exclude phpMyAdmin from the APC cache, which you can do with a following parameter in your Virtual Host configuration.

<Directory /path/my/phpMyAdmin/>
php_admin_value apc.enabled 0

Update the path above to the correct directory where phpMyAdmin resides, and restart your Apache to activate the config.

If the above does not fix it, you can also try to clear your PHP sessions, which are known to cause issues with phpMyAdmin. Especially if your php.ini is lacking explicit "session.save_path" declarations (by default they point to /tmp).

session.save_path = "/tmp"

Good luck!

If you like this content, stay in touch!

  1. Posted by Apocalypskmaw
  2. Posted by Eric Caron
  3. Posted by Tuan
  4. Posted by anonymous
  5. Posted by Dirk-Jan de Groot
  6. Posted by Ben
  7. Posted by موقع مسيحي دوت كوم
  8. Posted by zaza

Add Your Comment