HomePage » WebServer » PHP » PHPsuPHP


Configure options

./configure --with-min-uid=500 --with-min-gid=500 \
--with-apache-user=apache --with-setid-mode=owner \
--with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-1-config \
--disable-checkpath


I had to comment out the following in order to make this work

		/*
		if (directoryOwner != owner && !directoryOwner.isSuperUser()) {
			std::string error = "Directory " + directory.getPath()
				+ " is not owned by " + owner.getUsername();
			logger.logWarning(error);
			throw SoftException(error, __FILE__, __LINE__);
		}
		*/


suphp config

[root@www conf.d]# cat /usr/local/etc/suphp.conf 
[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=apache

;Path all scripts have to be in
docroot=/home/sites/beta1.heels.com/public/

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true

;Send minor error messages to browser
errors_to_browser=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0022

; Minimum UID
min_uid=500

; Minimum GID
min_gid=500


[handlers]
;Handler for php-scripts
; note that the quotes are absolutely necessary!
x-httpd-php="php:/usr/bin/php-cgi"

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"


Lastly, the apache vhost config

suPHP_Engine on
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki