Finally, we can start compiling Apache.
# cd ../apache_1.3.34 # ./configure \ --prefix=/usr/local/apache \ --activate-module=src/modules/php5/libphp5.a \ --enable-module=so # make # make install
When this is done, make sure that files with a php extension are executed by PHP
To httpd.conf , add:
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
Start Apache:
/usr/local/apache/bin/apachectl start