Call to undefined function in_vzcp_proxy() in /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php

Created:

2016-11-16 13:25:31 UTC

Modified:

2017-08-08 13:40:36 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Call to undefined function in_vzcp_proxy() in /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php

Applicable to:

  • Plesk for Linux

Symptoms

I am running Plesk 11.5 on the Centos 6. PHPMyAdmin is not available:

The error is:

grep vzcp_proxy /usr/local/psa/admin/logs/panel.log
[12-Mar-2014 03:20:31 Asia/Calcutta] PHP Fatal error: Call to undefined function in_vzcp_proxy() in /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php on line 40

Cause

'psa-phpmyadmin' package has some missing files:

# rpm -V psa-phpmyadmin | grep missing | wc -l
376

For some reason it was not installed properly.

Resolution

1.Reinstall the package from Plesk repository:

    # rpm -Uvh http://autoinstall.plesk.com/PSA_11.5.30/dist-rpm-CentOS-6-x86_64/base/psa-phpmyadmin-3.5.8.2-cos6.build115130805.16.noarch.rpm --force

NOTE! For the earlier Plesk versions PHPMyAdmin is included to plesk-core package. To repair PHPMyAdmin you will need to reinstall 'plesk-core' package:

rpm -qf /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php
plesk-core-11.0.9-cos6.build110120608.16.x86_64

rpm -ivh http://autoinstall.plesk.com/PSA_11.0.9/dist-rpm-CentOS-6-x86_64/base/plesk-core-11.0.9-cos6.build110120608.16.x86_64.rpm --force

2.Set the new phpmyadmin database credentials in the configuration file:

2.1. Save the original config.php file:

cp /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php.old

2.2. Find out the new phpmyadmin database name:

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -e "show databases;" | grep phpmyad
phpmyadmin_I79HRgbP8pOw < ==== new database
phpmyadmin_Wr9ral67zOV4 < ==== old database

2.3. Modify the 'pmadb', 'controluser' and 'controlpass' values in the /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php

$cfg['Servers'][$i]['pmadb'] = $GLOBALS['db_host'] != 'localhost' ? '' : 'phpmyadmin_I79HRgbP8pOw';
$cfg['Servers'][$i]['controluser'] = $GLOBALS['db_host'] != 'localhost' ? '' : 'pma_I79HRgbP8pOw';
$cfg['Servers'][$i]['controlpass'] = '**************';

2.4. Reset the mysql password for the new 'pma_*' user:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` mysql

mysql> SET PASSWORD FOR 'pma_I79HRgbP8pOw'@localhost = PASSWORD('**************');
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
Have more questions? Submit a request
Please sign in to leave a comment.