PHP make install seems to end abruptly and does not update libphp5.so

I'm trying to compile PHP 5.3.3 and after a lot of ups and downs, I finally did 'make' it followed by 'make install' which just shows this:

root@server [/tmp/php-5.3.3]# make install
Installing PHP SAPI module:       cgi
Installing PHP CGI binary: /usr/bin/
Installing PHP CLI binary:        /usr/bin/
Installing PHP CLI man page:      /usr/share/man/man1/
Installing shared extensions:     /usr/lib64/20090626/
Installing build environment:     /usr/lib64/build/
Installing header files:          /usr/include/php/
Installing helper programs:       /usr/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/share/man/man1/
  page: phpize.1
  page: php-config.1
/tmp/php-5.3.3/build/shtool install -c ext/phar/phar.phar /usr/bin
ln -s -f /usr/bin/phar.phar /usr/bin/phar
Installing PDO headers:          /usr/include/php/ext/pdo/

It does not look like its done, because /usr/lib64/httpd/modules/libphp5.so still shows an old date:

-rwxr-xr-x 1 root root 3193768 Mar 31  2010 libphp5.so

Solution 1:

You need build apache2handler:

$./configure --with-apxs2

Then clean build directory and build php:

$make clean
$make
$make install

Read: http://www.php.net/manual/en/install.unix.apache2.php

Solution 2:

In the ./configure of php is possible that you select a prefix, but it is not necessary and you can compile with only ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql.