I am trying to install php5 for Apache 2. I tried followng the instructions but obviously messed up somewhere. When I try to start Apache with the 'LoadModule php5_module libexec/httpd/libphp5.so' line uncommented I get the following error:
To be complete this is installed on OS X. I downloaded the Apache2 binaries for OS X and not the source. I thought maybe it was because there is some includes missing or something but the 'make's did not show any errors.
Can someone see what I might have done wrong or where I should be looking? TIA.
Code:
Syntax error on line 273 of /opt/apache2/conf/httpd.conf:
Cannot load /opt/apache2/libexec/httpd/libphp5.so into server: dyld: /opt/apache2/bin/httpd Undefined symbols:
/opt/apache2/libexec/httpd/libphp5.so undefined reference to _ap_block_alarms expected to be defined in the executable
/opt/apache2/libexec/httpd/libphp5.so undefined reference to _ap_group_id expected to be defined in the executable
/opt/apache2/libexec/httpd/libphp5.so undefined reference to _ap_unblock_alarms expected to be defined in the executable
/opt/apache2/libexec/httpd/libphp5.so undefined reference to _ap_user_id expected to be defined in the executable
/opt/apache2/libexec/httpd/libphp5.so undefined reference to _ap_user_name expected to be defined in the executable
/opt/apache2/libexec/httpd/libphp5.so undefined reference to _top_module expected to be defined in the executable
Can someone see what I might have done wrong or where I should be looking? TIA.