Click to See Complete Forum and Search --> : Turning off PHP for /~ users.


Anon
08-04-2000, 12:40 PM
Hello,

Please point me to the relevant documentation.

I want to be able to run PHP as a module, but not let the /~ (public_html) users have access to PHP. Is this something that would need to be configured as an .htaccess in each users directory, or simply a directive in the httpd.conf?

Using PHP4.0.1pl2, Apache 1.3.12

Thanks much.

- John Chapman

Anon
08-06-2000, 03:41 PM
If you just put :-

AddType application/x-httpd-php .php

within the VirtualHost of httpd.conf entry for the user that you do want to have access to providing it is not within the main users or the rest of the virtual hosts they shouldn't be able to run php

We use this in customers entrys so they can use .html etc.. for php pages

Regards
Darren
http://www.php4hosting.com/