Problem starting apache with PHP
This morning i had a power cut which has thrown my apache and php configuration out of the window! Upon restarting apache i get the following error message:
[root@server apache2]# bin/apachectl start
Syntax error on line 148 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
I have tried doing a recompile of php but it still gives this message. Also tried removing the reference to the php module from the httpd.conf and it starts up with no problems (obviously without php).
If anyone could help would be appreciated so i can minimise my downtime.