wordpress 博客突然打不开了,查看一下 nginx 日志# cat /var/log/nginx/error.log2016/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/
nginx打开网站提示 500错误解决方案 ([error] 1824#100074: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 13
最新推荐文章于 2024-06-05 13:16:42 发布