Securing Virtualmin: http://servernetworktech.com/2012/11/securing-php-when-using-virtualmin/
.php
files.htaccess
file
Depending on the server configuration you need a .htaccess
with:
# for mod_php php_value engine off
Or:
# for CGI setups Options -ExecCGI
Or:
# for FastCGI this depends on the name of the handler script RemoveHandler .php #RemoveHandler php5-fastcgi .php
And sometimes even a brute-force method:
<FilesMatch "[.]php\d?$"> ForceType text/php SetHandler default-handler </FilesMatch>
Search for PHP handlers in the web server configuration:
grep -ri handler /etc/httpd | grep php