nginx打开网站提示 500错误解决方案 ([error] 1824#100074: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 13

wordpress 博客突然打不开了,查看一下 nginx 日志
# cat /var/log/nginx/error.log
2016/10/19 09:21:13 [error] 1824#100074: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4194337 bytes) in /usr/local/www/nginx-dist/mydoop.com/wp-includes/wp-db.php on line 1321" while reading response header from upstream, client: 123.157.210.26, server: mydoop.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.mydoop.com"
2016/10/19 09:22:39 [error] 1824#100074: *11 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4194337 bytes) in /usr/local/www/nginx-dist/mydoop.com/wp-includes/wp-db.php on line 1321" while reading response header from upstream, client: 123.157.210.26, server: mydoop.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.mydoop.com"
大概的意思是 wordpress 的 wp-db.php 把php默认设置的 128M内存用完了 编辑php.ini 把 memory_limit = 128M 修改成 memory_limit = 256M 然后重起一下nginx 解决!

查看原文:http://www.mydoop.com/2016/10/nginx%e6%89%93%e5%bc%80%e7%bd%91%e7%ab%99%e6%8f%90%e7%a4%ba-500%e9%94%99%e8%af%af%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88-%ef%bc%88error-1824100074-6-fastcgi-sent-in-stderr-php-message-php-fatal/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值