nginx 500错误 导致一些数据库备份程序(phpmyadmin/帝国备份王)打开空白

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


转载于:https://my.oschina.net/u/2351160/blog/403474

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值