2

I recently upgraded to php56 on Mac OSX El Capitan. Now I am unable to run apache.

I am getting:-

This site can’t be reached
localhost refused to connect.

when trying to run localhost

apachectl -k restart command gives error saying

httpd not running, trying to start

When I run the command httpd -t -c httpd.conf, it throws the following error:-

AH00526: Syntax error on line 1 of -c/-C directives:
Invalid command 'httpd.conf', perhaps misspelled or defined by a module not included in the server configuration

apachectl configtest does not throw any errors. No logs in apache logs either.

Can anyone help me fix this. If you need any more details please tell me.

  • seems like a conflict in Apache API when upgrading, try re-install completely Apache, By the way, should this question be on ServerFault ? – SmasherHell May 01 '16 at 07:35

1 Answers1

0

Got it. It was because httpd.conf was unable to load libphp5.so LoadModule php5_module libexec/apache2/libphp5.so If I comment this. Apache starts working.

But it should've logged in the errors. Don't know why it didn't log any error.

Still not able to figure out why libphp5.so doesn't work when it is in the right path.