Re: How to control PHP scripts
by "Frederic Fillon" <fillon(at)webstore.fr>
|
Date: |
Fri, 1 Sep 2000 14:41:06 +0200 |
To: |
"Arnold Lara V." <arnold(at)rds.org.hn>, "Hwg-Servers@Hwg. Org" <hwg-servers(at)hwg.org> |
References: |
org |
|
todo: View
Thread,
Original
|
|
Hi!
Yes, there are several ways to do that :
1- with a .htaccess in the directrory with :
AddType application/x-httpd-php3 .php3 .phtml .inc .php
(you must set overwrite to true in httpd.conf for .htaccess files)
2- inside the http.conf:
same directive inside the virtual host but for myself I add these directives
php3_safe_mode on
php3_doc_root /path/to/webuser_directory
php3_safe_mode_exec_dir /no/path/to/avoid/system/execution
php3_open_basedir /path/to/webuser_directory (to avoid reading /Etc/password
file by example ;-)
Hope it answers to your question ...
Regards
/* WEBSTORE STAFF
Fr�d�ric FILLON
Little Guru / Web Master
*/
#****************************#
http://www.webstore.fr
Le site de la C�te d'Azur :
http://www.cote.azur.fr
#****************************#
----- Original Message -----
From: "Arnold Lara V." <arnold(at)rds.org.hn>
To: "Hwg-Servers@Hwg. Org" <hwg-servers(at)hwg.org>
Sent: Friday, September 01, 2000 8:05 AM
Subject: How to control PHP scripts
>
> I wonder if there is a way to prevent people to put PHP scripts
> somewhere in my server, I know how to do it for CGI's in the
> httpd.conf of the apache server, is something like this or I have to
> do onother thing?
>
> Or I can make that PHP scripts doesn't work where I don't want
> them to work?
>
> Thanks in advance.
>
HWG: hwg-servers mailing list archives,
maintained by Webmasters @ IWA