登陆WORDPRESS后台的时候,部分页面出现502 Bad Gateway错误
我的PHP版本是5.2.17
mysql版本是5.1.60
WordPress版本3.8.3
看了php-fpm的日志,基本上都是类似下面的错误
May 13 19:35:21.668482 [WARNING] fpm_stdio_child_said(), line 167: child 12854 (pool default) said into stderr: "[Tue May 13 19:35:16 2014"
May 13 19:35:21.680238 [WARNING] fpm_stdio_child_said(), line 167: child 12854 (pool default) said into stderr: "] [notice] EACCELERATOR(12854): PHP crashed on opline 469 of curl_exec() at /*/wp-includes/class-http.php:1249", pipe is closed
May 13 19:35:21.680267 [WARNING] fpm_stdio_child_said(), line 167: child 12854 (pool default) said into stderr: "", pipe is closed
May 13 19:35:21.680285 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
May 13 19:35:21.680317 [WARNING] fpm_children_bury(), line 215: child 12854 (pool default) exited on signal 11 SIGSEGV after 2056.281254 seconds from start
May 13 19:35:21.680742 [NOTICE] fpm_children_make(), line 352: child 20797 (pool default) started
查询了网上的解决办法,修改后基本上都没有什么作用,错误依旧。
1.尝试了第一种方法:将unix套接字改成tcp/ip的
修改
/usr/local/php/etc/php-fpm.cnf
将
< value name="“listen_address”">/tmp/nginx.socket< /value>
里面的