一觉醒来,本机服务不能正常访问了。

1
apachectl configtest

httpd: Syntax error on line 169 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/opt/php56/libexec/apache2/libphp5.so into server: dlopen(/usr/local/opt/php56/libexec/apache2/libphp5.so, 10): image not found

解决方案

1
2
brew uninstall php56
brew install php56 --with-apache