我成功安装了 brew formula httpd,并且已经将它用作我的 apache 服务器一段时间了。直到最近才出现问题。
我尝试在终端中运行 httpd,并得到了以下响应:
httpd: Syntax error on line 1 of /usr/local/etc/httpd/httpd.conf:
Syntax error on line 117 of /usr/local/etc/httpd/modules.conf:
Cannot load /usr/local/opt/php/lib/httpd/modules/libphp7.so into server: dlopen(/usr/local/opt/php/lib/httpd/modules/libphp7.so, 10):
Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib
Referenced from: /usr/local/opt/php/lib/httpd/modules/libphp7.so\n
Reason: image not found
我该如何解决这个问题?
答案1
公式存在问题[电子邮件保护],所以我就跑了。brew reinstall [email protected]
我使用的一个要点。
https://gist.github.com/hgrimelid/703691ab48c4a4d0537cfe835b4d55a6