ZoneMinder + VirtualMin -> No PHP execution ?

Hello, how to add support of PHP to a website added without using virtualmin when virtualmin is installed ?

I have a “zoneminder.conf” in my folder “sites-enabled” and after restart of apache i can access to “/zm/” (“Alias /zm /usr/share/zoneminder”), but i view only the source code.

If i add to my “zoneminder.conf” :

  • “AddType application/x-httpd-php .php” -> the “index.php” is downloaded.
  • “AddType text/html .php” -> I have a blank page (and the source of php in the source code).

Without VirtualMin i was not this problem.

I have also tested to add PHP support by a “.htaccess” file in the zoneminder folder but don’t work too…
How can i add the support of php manually ?


On a server with Virtualmin installed, it’s configured to have websites run from /home… there isn’t a simple way to run a website outside of that directory when using Virtualmin.

My suggestion would be to use Virtualmin to setup a new Virtual Server for this particular website, and to put the PHP code for it within that website’s public_html folder.


Ok so this is why !
Thank you. Where is located this configuration ? It’s not possible to add an other folder for PHP execution ? or change “/home” to “/” to be more permissive ?
If there is no alternative i will do that. Thank again…