简体   繁体   English

MacOS更新到High Sierra后PHP停止工作

[英]PHP stopped working after MacOS update to High Sierra

I recently upgraded to High-Sierra and now my local server won't run PHP (code shows it as text) 我最近升级到High-Sierra,现在我的本地服务器将无法运行PHP(代码将其显示为文本)

To try and solve the issue I removed all php versions with homebrew and installed php 7.2 using homebrew. 为了解决这个问题,我删除了所有带有自制软件的php版本,并使用自制软件安装了php 7.2。 But the issue remains. 但是问题仍然存在。

I don't see any error in the local server log files. 我在本地服务器日志文件中没有看到任何错误。

PS I do not see attempted to add PS我看不到尝试添加

LoadModule php7_module   /usr/local/opt/php72/libexec/apache2/libphp7.so

But the path seems to be wrong since I get an error.. 但是,由于出现错误,因此路径似乎是错误的。

原来我不得不重新安装XCode命令行工具,这解决了问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM