Apps Vhost blocked from using PHP after saving changes in ISPConfig
Summary
File in question: /etc/apache2/sites-enabled/000-apps.vhost
Apps.vhost is modified after saving on a fresh ISPConfig system as below, removing the ability to use PHP apps (phpmyadmin, etc) after the save.
Saving changes under System Server Config > Server Name > Web > Apps VHost causes ISPConfig to pull from the conf master file. This file is not the same as a fresh installed ISPConfig.
Occurs on both Debian and Ubuntu systems, installed using: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/
Steps to reproduce
Active File: /etc/apache2/sites-enabled/000-apps.vhost
On the fresh install, without touching ISPConfig yet, the apps vhost has the following under ServerAdmin line (around line 9): <Directory /var/www/apps> <FilesMatch ".ph(p3?|tml)$"> SetHandler None
Inactive File: /usr/local/ispconfig/server/conf-custom/apache_apps.vhost.master
Conf directory apps vhost, same location as above: <FilesMatch ".ph(p3?|tml)$"> SetHandler None
Without the directory line in there, all PHP is disabled.
Correct behaviour
The conf directory file should contain the directory statements in /usr/local/ispconfig/server/conf-custom/apache_apps.vhost.master
Environment
Many OS & versions, effects any server I install using this tutorial: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/
Proposed fix
Correct conf directory file as listed above