phpMyAdmin で画面が真っ白で表示されない
phpMyAdmin で画面が真っ白になり、なにも表示されないことがある。
http のエラーログをみると
[error] [client xxx.xxx.xxx.xxx] PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0 [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(): Unable to allocate memory for pool. in /home/httpd/html/phpAdmin/index.php on line 12 [error] [client xxx.xxx.xxx.xxx] PHP Warning: require(): Unable to allocate memory for pool. in /home/httpd/html/phpAdmin/libraries/common.inc.php on line 57 [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(): Unable to allocate memory for pool. in /home/httpd/html/phpAdmin/libraries/Error_Handler.class.php on line 16 [error] [client xxx.xxx.xxx.xxx] PHP Warning: require_once(): Unable to allocate memory for pool. in /home/httpd/html/phpAdmin/libraries/Error.class.php on line 16 [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Call to undefined function PMA_sanitize() in /home/httpd/html/phpAdmin/libraries/Message.class.php on line 585
PMA_sanitize() のエラーと「Unable to allocate memory for pool.」のワーニングが発生しているが、両方共 /etc/php.d/apc.ini にある
apc.mmap_file_mask=/tmp/apc.XXXXXX
を
apc.mmap_file_mask=/dev/zero
に変更する。
それと、/etc/php.d/apc.ini の apc.shm_size=64M となっているのを128Mなど適当な量に増やす。
apc.shm_size=64M
これで phpMyAdmin が表示されるようになる。