October 17th in Linux/Unix by pbu .

How to Install suPHP in Linux

How to install suPHP

By default apache runs as nobody (means anybody from inside same shared host can read your php files) and installing suphp makes php to run under the user account ownership. 777 permissions to folders can also be avoided.

NOTE: suPHP needs PHP installed as CGI not as apache module.

Download suPHP from suphp.org

Then

tar zxf suphp-current.tar.gz
./configure
make
make install

If you get error like

configure: error: APR is needed to build mod_suphp for Apache 2.x but was not found

APR => Apache Portable Runtime

To fix:
=========
yum install apr

./configure --with-apr=/usr/bin/apr-1-config

Once this is done you have to modify httpd.conf and

LoadModule suphp_module modules/su_php.so

Thats it and restart httpd

Similar Posts:

Share and Enjoy:
  • del.icio.us
  • digg
  • StumbleUpon
  • Technorati
  • DZone
  • Facebook
  • FriendFeed
  • Reddit
  • RSS
  • Twitter

2 Comments

  • Configure Php 5
    November 11, 2008
  • pbu
    November 15, 2008

Leave A Comment.