Re: PHP in selected directories?
| From: | Victor Foitzik | Date: | Wed, 18 Apr 2001 23:17:36 +0000 |
| Subject: | Re: PHP in selected directories? | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-2818@lists.php.net to get a copy of this message | ||
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