note 10714 modified in Security by ronabop

From: Date: Sat, 28 Jul 2001 20:05:39 +0000
Subject: note 10714 modified in Security by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-15991@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 Add "php_value doc_root /home/user/html_docs" to each virtual host directive in httpd.conf http://www.php.net/manual/en/security.php

« previous php.notes (#15991) next »