Phpmyadmin installation - Failed to install script : Could not find PHP version for /home/domain-name/public_html/

From virtual server, Install scripts -> phpmyadmin

I choose a stable version (or any version), change installation directory name (or just leave as default phpmyadmin),

then I later uninstall it.

Afterwards, this is where phpmyadmin installation gets broken completely. I can no longer re-install phpmyadmin as it keeps throwing this error

"Failed to install script : Could not find PHP version for /home/domain-name/public_html/"

I validated all virtual servers with no errors.

Checking configuration for php versions displays:

The following PHP versions are available : 5.4.16 (/bin/php-cgi), 5.6.25 (/opt/rh/rh-php56/root/usr/bin/php-cgi), 7.2.24 (/opt/rh/rh-php72/root/usr/bin/php-cgi)

The following PHP-FPM versions are available on this system : 5.4.16 (php-fpm) 5.6.25 (rh-php56-php-fpm) 7.2.24 (rh-php72-php-fpm)

The following PHP execution modes are available : fcgid fpm

I remember this problem existing on previous versions as well. (when using nginx php-fpm) Maybe it has to do with having multiple php versions,

is there any way to properly reinstall phpmyadmin?

Fixed (pending)
Virtualmin version: 
Webmin version: 


Ilia's picture
Submitted by Ilia on Thu, 04/29/2021 - 16:41


Thanks for contacting us.

What distro and PHP versions and which exact packages do you have installed? If you put small index.php file to public_html directory with the following content:


.. and later try opening it -- does it work?

I cannot reproduce this problem and it works for me for both versions latest and previous.

I used this one,

I chose php 5.6.25 because it's like the last updated version that work with older scripts, but had this same problem with any earlier versions too (phhp.5.6.x)

and yes, phpinfo page shows up.

please note that there's another bug appearing which may be co-existing with phpmyadmin re-installation issue.

server configuration -> php options I select php 5.6.25 or 7.2 but it never save any changes made. other selections and website subdirectory entered is all erased, nothing ever gets saved.

Ilia's picture
Submitted by Ilia on Fri, 04/30/2021 - 06:19

As a work around, you would need to install PHP 7.1.3+ on your CentOS as phpMyAdmin requires it as a minimal PHP version. Later going to PHP options, you could switch to FCGI execution mode and set per-directory PHP versions. Alternative work around would be is to create another virtual server/sub-server with PHP 7.1.3+ enabled and manage all databases from there.

We will update phpMyAdmin installer to check for virtual server having the needed PHP version.

Ilia's picture
Submitted by Ilia on Fri, 04/30/2021 - 06:20

I just double checked and phpMyAdmin version 4.9.7 works with PHP 5.6

I had php 7.0 and 5.6 both installed not too long ago on a different virtualmin box and remember sometimes this same problem happening back then.

I can't install any version of phpmyadmin through "install scripts" once the error message "Failed to install script : Could not find PHP version" appears on that domain.

Tried on a different domain as you pointed out with php 5.6 and phpmyadmin 4.9.7 worked.

php 56 gd extension was missing and after it was installed, it worke.

I just recreated the first domain and it looks to be working.


Ilia's picture
Submitted by Ilia on Fri, 04/30/2021 - 12:40

It looks that PHP installation is broken on your side. Did you use our official guide to instal multiple PHP versions?

What is the output of:

yum list php* |grep @