How to install suphp on centos 6.2 VPS ?

Discussion in 'Installation/Configuration' started by botnet, Jun 22, 2012.

  1. botnet

    botnet New Member

    I did like this :

    Code:
    wget http://www.suphp.org/download/suphp-0.7.1.tar.gz ; tar -zxf suphp-0.7.1.tar.gz
    cd suphp-0.7.1
    
    yum install gcc gcc-c++ httpd-devel
    yum install make
    
    ./configure --with-apr=/usr/bin/apr-1-config --with-apache-user=apache --prefix=/usr
    make
    make install
    vi /etc/httpd/conf/httpd.conf

    Add below line,
    Code:
    LoadModule suphp_module modules/mod_suphp.so 
    And in the <Directory /> section
    Code:
    suPHP_Engine on
    suPHP_AddHandler application/x-httpd-php .php
    suPHP_UserGroup webroot webroot
    Do I need to change webroot to something ?

    vi /etc/httpd/conf.d/php.conf

    Add below line,
    Code:
    AddType application/x-httpd-php .php
    vi /usr/etc/suphp.conf

    Add below lines,
    Code:
    [global]
    logfile=/var/log/httpd/suphp.log
    
    loglevel=info
    webserver_user=apache
    docroot=/var/www
    
    allow_file_group_writeable=false
    allow_file_others_writeable=false
    allow_directory_group_writeable=false
    allow_directory_others_writeable=false
    
    check_vhost_docroot=false
    errors_to_browser=false
    env_path=/bin:/usr/bin
    umask=0077
    min_uid=100
    min_gid=100
    
    [handlers]
    x-httpd-php="php:/usr/bin/php"
    application/x-httpd-php="php:/usr/bin/php-cgi"
    
    x-suphp-cgi="execute:!self"
    After restarting apache, I got Server API sowing Apache 2.0 Handler.
    Please help, What to do ? :(
     
  2. botnet

    botnet New Member

    bumping...
     

Share This Page