faqts : Computers : Programming : Languages : PHP : Installation and Setup : Security

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

92 of 111 people (83%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How can I disable PHP(version 3, 4) in user directories?

May 30th, 2000 14:31
Miyoung Kim, Nathan Wallace, Chad Cunningham


You should be able to disable php for user dirs with something like this
in your httpd.conf file:

<Directory /home/*/public_html>
php_admin_flag engine off
</Directory>

The same way you should be able to only activate the engine in 
directories where you really want it to work like:

<Directory ........>
AddType application/x-httpd-php .phtml
</Directory>