Before starting the installation install the prerequisites needed to build mod_suphp with the command below.
DONE!!
#apt-get install php5-cgi apache2-prefork-devNow move to the directory where you would like to download the installation file
#cd /usr/local/srcThe download it with the command below.
#wget http://www.suphp.org/download/suphp-0.6.2.tar.gzNow unpack the file
#tar xvfz suphp-0.6.2.tar.gzand,
#cd suphp-0.6.2Now you can install with the following commands.
#./configureNow if you end up with following error while running ./configure
APXS was not found, so mod_suphp will not be built!Run the command again with the following option. ( where path to apxs may differ )
#./configure --with-apxs=/usr/bin/apxs2Now you can proceed with the commands below.
#make
#make install
Now add the module to apache.
#vi /etc/apache2/httpd.confAnd add the following line.
LoadModule suphp_module /usr/lib/apache2/modules/mod_suphp.soThen restart apache.
#/etc/init.d/apache2 restart
DONE!!
No comments:
Post a Comment