Force phpMyAdmin to use the latest PHP version instead of 5.6

Force phpMyAdmin to use the latest PHP version instead of 5.6

When you logged into phpMyAdmin, did you notice that in the web server settings (on the right) your phpMyAdmin uses PHP version 5.6.X? You should know that all versions of phpMyAdmin 4.8.X use PHP version 5.6.X. The future version of phpMyAdmin 5.0.X will support PHP 7.1 and PHP 7.2. Can you change the current PHP version used by phpMyAdmin? Currently not!

Update: 14.08.2019

I have found a way to get phpMyAdmin to use PHP 7.2 instead of PHP 5.6.39 on Synology Nas.

Edit the following file /var/packages/phpMyAdmin/target/nginx_conf/www.phpMyAdmin.enable.conf by changing the line below:

original line: fastcgi_pass unix:/run/php-fpm/php54-fpm.sock;
new line: fastcgi_pass unix:/run/php-fpm/php72-fpm.sock;

Update: 15.09.2019

If you want to force phpMyAdmin to use latest PHP 7.3 follow the instructions below “Only for expert users” Require SSH terminal.

Edit:

vi /var/packages/phpMyAdmin/target/nginx_conf/www.phpMyAdmin.enable.conf

and change the line below:

original line: fastcgi_pass unix:/run/php-fpm/php56-fpm.sock;

new line: fastcgi_pass unix:/run/php-fpm/php73-fpm.sock;

vi /var/packages/phpMyAdmin/INFO

and change the line below:

original line: install_dep_packages=”WebStation>=1.0-0036:PHP5.6>=5.6.17-0017″

new line: install_dep_packages=”WebStation>=1.0-0036:PHP7.3>=7.3.7-0002″

If you attempt to uninstall PHP 5.6.X you will get the following message: “WordPress, phpMyAdmin is dependent on this package. Please uninstall WordPress, phpMyAdmin first before uninstalling this package”, as you can see in the screenshot below.

phpMyAdmin dependent on PHP 5.6

You may be wondering why the PHP version is incorrect via phpMyAdmin, but you have to remember that phpMyAdmin uses the internal version of PHP which is not the same PHP as the one used by Apache. To clarify: phpMyAdmin has an internal PHP application. It’s separate from the PHP versions you use with Apache. This is the general rule: it doesn’t matter if you have phpMyAdmin on a private hosting or on Synology Nas, you cannot change the internal PHP version.

phpmyadmin uses php 5.6

Let’s all be patient because the Synology team will make the necessary updates to the phpMyAdmin version that will include PHP 7.1 and PHP 7.2. Rumors say it should all be ready before the end of 2019.

paypal This article is free, but powered by your donations. Updated on