【发布时间】:2019-06-23 08:13:28
【问题描述】:
我刚刚更新为使用 brew 在我的 Macos Mojave 上使用 php7.3 和 nginx 1.17.0。 PHP-FPM 配置为使用端口 9073,我的示例网站 nginx 配置如下:
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9073
fastcgi_index index.php
}
在使用相同配置进行更新之前,一切正常。目前所有前端页面都有效,但是当我尝试访问 domain/wp-admin/ 时,我收到 502 错误。这只是发生在那条路线上。在我看到的错误日志中:
kevent reported about an closed connection 54: Connection reset by peer while reading response header from upstream, client: 127.0.0.1
并且 php-fpm 正在重新启动。我真的不知道现在该怎么办。谢谢你的帮助
【问题讨论】:
-
How to Ask你能运行任何php代码吗?
-
php 工作正常! wordpress 网站前端正在工作。 info.php 服务器信息页面也可以正常工作
-
所有安装都是通过 brew 进行的(也降级到 PHP7.2),但是当访问我的 wordpress 网站的 /wp-admin 路径时,php-fpm 意外重启。所有前端 wordpress 页面都可以正常工作,并且 info.php 也可以正常工作。在 php.ini 上,我们使用 pecl 添加了 xdebug。所有其他设置都是默认设置: zend_extension=“xdebug.so” [XDebug] xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000扩展=“redis.so”
标签: wordpress macos nginx php-7.3