note 10714 added to Security
| From: | steeven at kali dot com dot cn | Date: | Thu, 18 Jan 2001 18:54:22 +0000 |
| Subject: | note 10714 added to Security | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9934@lists.php.net to get a copy of this message | ||
suEXEC require CGI mode, and slow down the scripts. I did them like this:
1. Install php as DSO mode. (for max speed and low secure)
2. Make a seperate CGI install with --enable-force-cgi-redirect, place php to cgi-bin
3 For more secure with suEXEC, choose one of the following method:
3-1: Place a .htaccess file containing this to override main config:
AddType application/x-httpd-wphp php
Action application/x-httpd-wphp /cgi-bin/php
All php files in subdirectory will be protected.
3-2: add following in httpd.conf:
AddType application/x-httpd-wphp sphp
Action application/x-httpd-wphp /cgi-bin/php
then each sensitive php file should be renamed to .sphp
It seemed that that php files under sub directory of doc_root can not be excuted, is that
reasonable?
http://www.php.net/manual/en/security.php