./configure --prefix=/usr/local/apache --enable-so
Add the places from the webpages - usually this will not actually be in the same place as you are running apache and it is most commonly /var/www/html
/usr/local/apache/bin/apachectl -k start
copy the config.nice file from the working version of the server to the new version directory. Use a new prefix and a different port to test the configuration - change the Listen directive to specify the new port.
usr/local/apache/bin/apachectl -k graceful-stop
usr/local/apache/bin/apachectl -k start
add a call to apachectl to the rc.local file so that it autostarts.
./configure --prefix=/usr/local/php \
Edit httpd.conf to add
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
Edit php.ini for pgsql and mysql lines removes the ; but not on the dll lines.