Prasad’s blog

Compile PHP from source

1) Download the tar ball from http://php.net

2) Untar the tar ball -> tar -xvzf <php-5.2.6.tar>

3) cd php-5.2.6

4)./configure –with-apxs2=/usr/local/apache/bin/apxs –with-mysql –with-zlib /there extensions are given to compile PHP with mysql ans zlib support.

5) make

6) makeinstall

After installation restart apache

7)/usr/loca/apache/bin/apachectl restart

To view phpinfo page

create a file in httpd docementroot normally by default is /usr/local/apche/htdocs

vi php.php

<?

phpinfo();

?>

to access phpinfo page go to browser http://localhost/php.php

1 Comment »

  1. Hi,

    Excellent.Nice article thanks for sharing.

    Comment by Rahul — November 19, 2009 @ 11:13 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Create a free website or blog at WordPress.com.