Failed to install script : Could not find PHP version for

I am using CentOS 6.2 and Virtualmin 4.18

Why am I getting the following error when installing phpMyAdmin?

Failed to install script : Could not find PHP version for /home/username/public_html/phpmyadmin

Howdy,

What is the output of these commands:

php -v rpm -qa | grep php

Hi, I am having this problem now. I have a Freebsd Server 11.1, the output of the above commands is:

"

php -v

PHP 7.2.5 (cli) (built: May 9 2018 03:44:54) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies

rpm -qa | grep php

rpm: Command not found.
"