Góc FreeBSD Góc Linux - Unix Góc Redhat - CentOS Góc Ubuntu - Debian Góc Unix

PHP Fatal error with PhpMyAdmin and APC

GIT – If you are running PhpMyAdmin and APC can happens that you get some errors like these:

Fatal error: Call to undefined function PMA_log_user() in /usr/share/webapps/phpMyAdmin/libraries/common.inc. on line 914
PHP Fatal error: Call to undefined function PMA_select_language() in /usr/share/webapps/phpMyAdmin/libraries/auth/cookie.auth.lib.php on line 220
PHP Fatal error: Call to undefined function pma_generate_common_url() in /usr/share/webapps/phpMyAdmin/libraries/header_meta_style.inc.php on line 48
PHP Fatal error: Call to undefined function PMA_DBI_connect() in /srv/http/librolandia.it/test/phpmyadmin/libraries/common.inc.php on line 916
PHP Fatal error: Class 'PMA_Error_Handler' not found in /path/to/phpMyAdmin/libraries/common.inc.php on line 58
PHP Fatal error: Call to undefined function PMA_getenv() in /path/to/phpMyAdmin/libraries/common.inc.php on line 143

If this is the case, you need to make some little changes to apc in your phpmyadmin virtual host:

Alias /phpmyadmin “/usr/share/webapps/phpMyAdmin”
<Directory “/usr/share/webapps/phpMyAdmin”>
AllowOverride All
Options FollowSymlinks
Order allow,deny
Allow from all
php_admin_value open_basedir “/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/”
php_admin_value apc.enabled 0
</Directory>

And also modify your apc filter in php.ini under the APC section:

[APC]
apc.filter=”-/usr/share/webapps/phpMyAdmin/.*”

Now restart Apache and you phpMyAdmin should work regularly.

/etc/init.d/ restart

Print Friendly, PDF & Email

Comments

comments

Bài viết liên quan

2 thoughts on “PHP Fatal error with PhpMyAdmin and APC”

  1. i want to access phpmyadmin .so i have entered domainname/phpmyadmin and entered login details, after that the error like following Fatal error: Call to undefined function PMA_log_user() in /usr/share/phpmyadmin/libraries/common.inc.php on line 914
    I have followed above steps in the php.ini and /etc/phpmyadmin.apache.conf files. But after restarting Apache the same error encountered while logon to phpmyadmin. Due to this iam not able to take database backup to install in the local. Can any one pls tell how to resolve this. iam using following configuration Linux mopl 3.0.0-12-virtual #20-Ubuntu

  2. If this is the case, you need to make some little changes to disable apc in your phpmyadmin virtual host:
    view sourceprint?

    Alias /phpmyadmin “/usr/share/webapps/phpMyAdmin”

    AllowOverride All
    Options FollowSymlinks
    Order allow,deny
    Allow from all
    php_admin_value open_basedir “/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/”
    php_admin_value apc.enabled 0

    And also modify your apc filter in php.ini under the APC section:
    [APC]
    apc.filter=”-/usr/share/webapps/phpMyAdmin/.*”
    Now restart Apache and you phpMyAdmin should work regularly.

Để lại lời nhắn