Hi all, Just installed the Virtualmin module into my Webmin. First thing I want to do is disable BIND DNS and mail (for now). However …
… when I click save I get “Failed to save enabled features : Apache configuration file /etc/apache2/mods-enabled/php5.conf contains SetHandler lines that prevent PHP from running with domain owner permissions. These lines must be removed.”
I’m trying to be security conscious here so would appreciate a little help on giving Virtualmin the minimum privileges it needs in order to do what it does. My current php5.conf has these FilesMatch entries <pre>
<FilesMatch “.+.ph(p?|t|tml)$”> SetHandler application/x-httpd-php </FilesMatch>
#Not sure what this one is doing <FilesMatch “.+.phps$”> SetHandler application/x-httpd-php-source # Deny access to raw php sources by default # To re-enable it’s recommended to enable access to the files # only in specific virtual host or directory Order Deny,Allow Deny from all </FilesMatch>
#Comment seems self-explanatory
<FilesMatch “^.ph(p?|t|tml|ps)$”> Order Deny,Allow Deny from all </FilesMatch> </pre> Has anyone got two minutes to give me a steer on what these entries are currently doing and how I should give Virtualmin the necessary minimum privileges. Looks like my issue is with the second block, right?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!