Issue #436 · opened by Falko Timme · ·

CentOS: suPHP

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

  • yum install php-cli httpd-devel

    cd /tmp wget 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/

    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