ISPConfig 3

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Backend / Core
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Normal
  • Reported Version 3.0.0.9 RC2
  • Due in Version 3.0.1 Final
  • Due Date Undecided
  • Votes 0
  • Private No
Attached to Project: ISPConfig 3
Opened by Falko Timme (falko) - 2009-02-27
Last edited by Till (Till) - 2009-03-04

FS#551 - CentOS: suPHP

[Fri Feb 27 19:33:30 2009] [error] [client 192.168.0.2] No user or group set - set suPHP_UserGroup
[Fri Feb 27 19:33:30 2009] [error] [client 192.168.0.2] File does not exist: /var/www/error/500.html

This task does not depend on any other tasks.

Closed by  Till (Till)
Wednesday, 04 March 2009, 18:10 GMT
Reason for closing:  Fixed
Falko Timme (falko)
Friday, 27 February 2009, 18:23 GMT
yum install php-cli httpd-devel

cd /tmp
wget http://www.suphp.org/download/suphp-0.7.0.tar.gz
tar xvfz suphp-0.7.0.tar.gz
cd suphp-0.7.0/
./configure --prefix=/usr --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with-setid-mode=paranoid --with-php=/usr/bin/php-cgi --with-logfile=/var/log/httpd/suphp_log --enable-SUPHP_USE_USERGROUP=yes
make
make install

vi /etc/httpd/conf.d/suphp.conf
===============================
LoadModule suphp_module modules/mod_suphp.so


vi /etc/suphp.conf
===================
[global]
;Path to logfile
logfile=/var/log/httpd/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=apache

;Path all scripts have to be in
docroot=/

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

; Security options
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=true
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=0077

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100

[handlers]
;Handler for php-scripts
x-httpd-suphp="php:/usr/bin/php-cgi"

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





/etc/init.d/httpd restart

Loading...