Virtualmin deactivating PHP on new virtual servers
Posted
by Josh
on Server Fault
See other posts from Server Fault
or by Josh
Published on 2010-05-07T18:42:48Z
Indexed on
2010/05/07
18:48 UTC
Read the original article
Hit count: 353
This is related to my other question... but the situation is much worse now.
After updating to the most recent version of Virtualmin, when I create new accounts, Virtualmin sets up their VirtualHost entries as follows:
<Directory /home/username/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
allow from all
AllowOverride All
AddHandler fcgid-script .php
FCGIWrapper /home/username/fcgi-bin/php.fcgi .php
</Directory>
<Directory /home/username/cgi-bin>
allow from all
</Directory>
[...]
RemoveHandler .php
Now, not only is it specifically inserting AddHandler fcgid-script
and FCGIWrapper...
which I do not want because I am using mod_fastcgi, but it's also setting up PHP in such a way that it will never work! It's adding a RemoveHandler .php
after setting up the handler for PHP!
Where is this behavior configured and how can I stop it? Better yet, how can I make Virtualmin not include any PHP commands at all in the VirtualHost section?
© Server Fault or respective owner