phpmyadmin install script (auto-configuration of remote host DB IP/Domain record)

Hi There,

I’ve managed to install Virtualmin without many issues.

The server currently has a remote MySQL host as the default MySQL server.

However when I create new virtual server and then install the phpmyadmin script. The default host setting in the file is set to ‘localhost’ meaning that the phpmyadmin installation will not connect via the web interface without additional configuration.

I’m trying to figure out if I’m missing a setting somewhere else in virtualmin/webmin, telling the install script to set the mysql host to my remote host as opposed to ‘localhost’ by default. So essentially changing the line;

$cfg[‘Servers’][$i][‘host’] = ‘localhost’;


$cfg[‘Servers’][$i][‘host’] = ‘my_remote_mysql_host’;

Any help would be greatly aprecciated.