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 ?
Recent comments
1 day 12 hours ago
1 day 21 hours ago
2 days 19 min ago
2 days 1 hour ago
2 days 2 hours ago
2 days 4 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 23 hours ago
3 days 4 min ago