PHP版本 5.4
nginx 1.62
nginx报错:
2015/04/07 05:50:43 [error] 1788#0: *413 FastCGI sent in stderr: “PHP message: PHP Parse error: syntax error, unexpected end of file in /data/bei123/class/functions.php on line 1246″ while reading response header from upstream, client: 1×2.1×3.1×7.1×7, server: xxx.xxx.8x.1×9, request: “GET / HTTP/1.1″, upstream: “fastcgi://127.0.0.1:9000″, host: “1×2.1×2.x5.1×9″
解决方法:
打开PHP.ini中的短标签选项
short_open_tag=Off
改成
short_open_tag=On
然后重启php-fpm
ps axu |grep php-fpm 查看 Ss那一项 的第二列 的数字 为进程ID
kill -USR2 进程ID
来重启php-fpm
时间: 2024-10-13 06:00:29