发布于 2015-05-24 23:57:36 | 685 次阅读 | 评论: 1 | 来源: PHPERZ

这里有新鲜出炉的Nginx中文文档,程序狗速度看过来!

Nginx WEB服务器

Nginx 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,第一个公开版本0.1.0发布于2004年10月4日。其将源代码以类BSD许可证的形式发布,因它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名。


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



最新网友评论  共有(1)条评论 发布评论 返回顶部
ymxbsx 发布于2016-08-17 03:00:16
终于他妈的解决了
支持(0)  反对(0)  回复

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务