Hi Thomas,

how about Files / FilesMatch directives in Apache put in your userdir
config section ? Consider this:

<FilesMatch "\.php3?$">
  Order deny,allow
  Deny from all
</FilesMatch>

this will prevent users to request php files, and they won't be
executed by php.

HTH
Victor

> Hi there.
> 
> I rather quick question for someone who knows hopefully.
> I got a apache webserver running PHP (with other irrelevant stuff too) and I
> want to be able to deny PHP-scripts to be served ("executed"). I know I can
> use the doc_root option in php.ini but then I must use directories outside
> that path.
> 
> Can I somehow make, for example, no php-scripts runable from the directory
> /home/username/public_html/ ?
> (What I want is that some users should be able to mess around with php and
> some not :)
> 
> Thanks in advance,
> /Thomas



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to