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!
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.
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.
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.
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;
If you want to force phpMyAdmin to use latest PHP 7.3 follow the instructions below “Only for expert users” Require SSH terminal.
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;
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.11-0002″
Wait til DSM 7 comes out. It will remove the need for older packages, like PHP 5.6
Bad news: Synology Packages: End-of-Life Announcement. Due to package dependencies, PHP 5.6 and PHP 7.0 will still be available in Package Center after June 30, 2020.
According to Cynthia at Synology, phpMyAdmin will be updated to have a newer dependency in the future release. Which means that pretty soon (hopefully), phpMyAdmin dependency to PHP 5.6 will be just a bad dream.
Starting today phpMyAdmin no longer has any dependency on PHP 5.6
This post was updated on Wednesday / June 10th, 2020 at 4:05 AM