i set up a new ubuntu 16 VM box and installed LAMP and phpmyadmin and confirmed it was all working.
after installing virtualmin stack phpmyadmin is no longer working. apache is delivering raw php instead of rendering it into html
/etc/phpmyadmin/apache.conf is the default one installed by pma. it was configured fine before installing virtualmin.
/etc/apache2/apache2.conf is modifed from install only to include /etc/phpmyadmin/apache.conf.
other useful facts:
php from /var/www/html is still delivered as html after installation of virtualmin.
serving phpmyadmin/index.php from the built in php test server works also so I think virtualmin/apache is causing the problem…
$ cd /usr/share/phpmyadmin
$ php -S localhost:9000
result: working phpmyadmin at localhost:9000…
im happy to send any other info that may help to resolve this issue.
Yeah unfortunately, the phpMyAdmin RPM/DEB package conflicts with the way Virtualmin does things.
Your solution of removing phpMyAdmin is the best one – what we’d recommend is to use the phpMyAdmin install script, and install that into one or more of your Virtual Servers.