Thanks for your suggestion
After uninstalling php 5.3 & apache 2.2 via apt-get remove, I then downloaded below
httpd-2.2.19.tar.gz php-5.1.6.tar.gz I then ran the following to install apache form the folder extracted above
./configure --enable-so --prefix=/usr/local/apache
make
sudo make install
All the above seemed to work fine
I then executed the following to install php 5.1.6 from the folder extracted above
./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php
make
sudo make install
Again all seemed fine
I then executed
sudo cp -p .libs/libphp5.so /usr/local/apache/modules/
cp -p php.ini-recommended /usr/local/apache/php/php.ini
I added the below entries into /usr/local/apache/conf/httpd.conf
# Use for PHP 5.x:
LoadModule php5_module modules/libphp5.so
AddHandler php5-script php
# Add index.php to your DirectoryIndex line:
DirectoryIndex index.html index.php
AddType text/html php
# PHP Syntax Coloring
# (optional but useful for reading PHP source for debugging):
AddType application/x-httpd-php-source phps Now when I try to execute below
sudo /usr/local/apache/bin/apachectl start
I get the following error ::
httpd: Syntax error on line 53 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: undefined symbol: php_escape_html_entities
Any help greatly appreciated