Failed to install script : Could not find PHP version for /home/(..)/public_html/phpmyadmin

On Debian 7 (Wheezy) 64bit Virtualmin 4.01.gpl with fcgi php5.

I got this error when trying to install phpmyadmin via script installer.

The same is happening to me with Centos 6.4 with fcgi php5.