Eror when trying to install any scripts (such as phpmyadmin for instance)

When trying to install a script or package I always get the following error, this one is for phpmyadmin:

Failed to install script : Could not find PHP version for /usr/home/www/*******/public_html/phpmyadmin

Call Stack Trace

File Line Function /usr/local/lib/webmin-1.590/virtual-server/ 858 WebminCore::error /usr/local/lib/webmin-1.590/virtual-server/script_install.cgi 124 virtual_server::setup_php_version (eval 43) 6 (eval) /usr/local/lib/webmin-1.590/ 2311 (eval) /usr/local/lib/webmin-1.590/ 907 miniserv::handle_request

Any ideas what might be wrong here?



Could be an error with your Apache configuration.

If you SSH into the system as root and run :

virtualmin validate-domains --domain --all-features

what does it output?

Apache website : No Apache virtual host for ****.com found

If you open your Apache config file , does a <virtualhost> block for the domain exist?

yes it exists for all sites in a block

Could you post that virtualhost block here?

RPAFenable On
RPAFsethostname On
RPAFproxy_ips ***.***.***.*** ***.***.***.***
RPAFheader X-Forwarded-For

Include etc/apache22/Includes/*.conf
NameVirtualHost *:8080

<VirtualHost *:8080>
  DocumentRoot /usr/home/www/*********/public_html
  ServerName www.*********.com
  ServerAlias *********.com
  DirectoryIndex index.php
  CustomLog /var/log/www/*********-access_log common
  ErrorLog /var/log/www/*********-error_log
  <Directory "/usr/home/www/*********/public_html">
    allow from all
    order allow,deny
    AllowOverride All

Interesting that it is on port 8080 .. did you make that change in Virtualmin? If not, Virtualmin won't know that the website is on a different port, and so won't be able to find the virtualhost block.

You can set the port at Server Configuration -> Change IP Address.