This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
internet:hosting:web_devel:disable_php [2014/07/09 11:34] gcooper created |
internet:hosting:web_devel:disable_php [2014/07/09 11:56] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How To Disable PHP Using '' | + | ====== How To Disable PHP ====== |
+ | |||
+ | **Securing Virtualmin**: | ||
+ | |||
+ | http:// | ||
+ | |||
+ | * Make your site more secure | ||
+ | * Block execution of PHP in a folder | ||
+ | * Allow the download or display of '' | ||
+ | * Uses simple | ||
+ | |||
+ | Depending on the server configuration you need a '' | ||
+ | |||
+ | < | ||
+ | # 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 | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | And sometimes even a brute-force method: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Troubleshooting | ||
+ | |||
+ | Search for PHP handlers in the web server configuration: | ||
+ | |||
+ | < | ||
+ | grep -ri handler /etc/httpd | grep php | ||
+ | </ | ||