如何解决本地 Apache 响应 503 macOS Big Sur
我有一段时间没有编写代码了,我对 macOS Big Sur 进行了大规模更新。
现在我的本地开发环境无法正常工作,并且出现以下 503:
服务不可用 由于维护停机或容量问题,服务器暂时无法为您的请求提供服务。请稍后再试。
我在 /var/log/apache2 中找不到任何 error_log 文件是空的,所以也是 /private/var/log/apache2 我在 /usr/local/etc/httpd/httpd.conf 文件中找不到任何关于错误日志的内容, 我试过了:
tail -f /usr/local/var/log/httpd/error_log
[Sun Dec 20 20:57:50.322834 2020] [proxy:error]
[pid 46406:tid 123145449041920]
(61)Connection refused: AH00957:
FCGI: attempt to connect to 127.0.0.1:9074 (*) failed
[Sun Dec 20 20:57:50.323834 2020] [proxy_fcgi:error]
[pid 46406:tid
123145449041920]
[client ::1:54145] AH01079: failed to make connection
to backend: 127.0.0.1
我已完成以下所有操作:
brew update
brew upgrade
brew cleanup
brew doctor
httpd -t #Syntax ok
现在我已经安装了 PHP 8,我想知道是否有一些错误
我试过用 index.html 做一个 hello world 它工作正常,但用 index.php 发生错误。
touch index.html
nano index.html
<h1>Hello World</h1>
<p>Works fine</p>
touch index.php #503 Service unavailable
对不起,我在这方面还不是很有经验,我不知道如何继续, 感觉跟PHP8有关系 任何建议将不胜感激
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。