PHP can install manually with the help of following steps.
With the help of following steps you can download the Complete Source Code of php and extract it. You can download required/latest Version of PHP here
#cd /usr/local/src
#wget http://in.php.net/get/php-5.2.13.tar.gz/from/this/mirror
#tar xzvf php-5.2.13.tar.gz
#cd php-5.2.13.tar.gz
Now, you can use following steps to configure the php modules and installation.
# ./configure –with-apxs2=/usr/local/apache/bin/apxs –with-mysql=/usr/include/mysql –prefix=/usr/local/apache/php –with-config-file-path=/usr/local/apache/php –enable-force-cgi-redirect –disable-cgi –with-zlib –with-gettext –with-gdbm
# make
# make install
At the last, you need to copy the files and restart the apache service on the server.
# cp -p .libs/libphp5.so /usr/local/apache/modules
# cp -p php.ini-recommended /usr/local/apache/php/php.ini
# /etc/init.d/httpd restart
Filed under:
Installation
Apache can install manually with the help of following steps.
#cd /usr/local/src
#wget http://archive.apache.org/dist/httpd/httpd-2.2.15.tar.gz
#tar xvfz httpd-2.2.15.tar.gz
#cd httpd-2.2.15
# ./configure –prefix=/usr/local/apache2
# make
# make install
# cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
Now, Just you need to configure the apache modules which you want to install on the server.
./configure –with-layout=Apache –add-module=../mod_frontpage.c –enable-module=so –enable-module=ssl –enable-module=rewrite –enable-module=info –enable-module=expires –enable-module=headers –enable-module=proxy –enable-module=unique_id –enable-suexec –logfiledir=/usr/local/apache/logs –prefix=/usr/local/apache –suexec-caller=nobody –suexec-docroot=/ –suexec-gidmin=100 –suexec-logfile=/usr/local/apache/logs/suexec_log –suexec-uidmin=100 –suexec-userdir=public_html –sysconfdir=/usr/local/apache/conf
Note :: You can get required version of apache here
Filed under:
Installation