【问题标题】:Macos nginx php 7.3 wordpress error in wp-adminwp-admin中的Macos nginx php 7.3 wordpress错误
【发布时间】: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


【解决方案1】:

我刚刚使用 nginx 更新到 Macos Mojave 和 PHP7.3。所有安装都是通过 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
extension=“redis.so”

php-fpm 在访问 /wp-admin 时使用 log_level=debug 记录显示“exited on signal 11”并且 php-fpm 服务重新启动:

[25-Jun-2019 22:26:01.104274] DEBUG: pid 47, fpm_pctl_perform_idle_server_maintenance(), line 378: [pool www] currently 1 active children, 1 spare children, 2 running children. Spawning rate 1
[25-Jun-2019 22:26:01.839904] DEBUG: pid 47, fpm_got_signal(), line 75: received SIGCHLD
[25-Jun-2019 22:26:01.839968] WARNING: pid 47, fpm_children_bury(), line 256: [pool www] child 980 exited on signal 11 (SIGSEGV) after 21.933941 seconds from start
[25-Jun-2019 22:26:01.841578] NOTICE: pid 47, fpm_children_make(), line 425: [pool www] child 1037 started
[25-Jun-2019 22:26:01.845627] DEBUG: pid 47, fpm_event_loop(), line 418: event module triggered 1 events [25-Jun-2019 22:26:02.176554] DEBUG: pid 47, fpm_pctl_perform_idle_server_maintenance(), line 378: [pool www] currently 0 active children, 2 spare children, 2 running children. Spawning rate 1

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-04-29
    • 2018-07-11
    • 2021-11-20
    • 1970-01-01
    • 2017-02-04
    • 2023-03-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多