1) Download PHP 5.1.2 and do the usual
cd /usr/local/src
http://www.php.net/get/php-5.2.1.tar.bz2/from/a/mirror
tar -jxvf php-5.2.1.tar.bz2
2) Compile php as in a new directory such as /usr/local/php5
Use the same ./configure line required but with the following changes:
–with-config-file-path=/usr/local/php5/etc –prefix=/usr/local/php5 –with-mysqli=/usr/bin/mysql_config (only with Mysql 4.1)
3) Compile and install
make
make install
IMP Steps :
cp php.ini-dist /usr/local/php5/etc/php.ini
cp /usr/local/php5/bin/php /usr/local/cpanel/cgi-sys/php5
chown root:wheel /usr/local/cpanel/cgi-sys/php5
4) Edit httpd.conf and add lines below::
AddHandler application/x-http-php5 .php5
Action application/x-http-php5 /cgi-sys/php5
Just use .php5 and it will invoke php5.
Enjoy
Ninad S
3 comments:
...please where can I buy a unicorn?
Can you please type it in English?
Post a Comment