duanhui1185 2015-04-07 03:20
浏览 47

Nginx 1.7.11与FPM模式下的PHP 5.6相结合

I've been trying to set up a nginx server version 1.7.11 with PHP 5.6 in FPM mode. I cannot seem to get it to execute a script however. It is constantly giving me

"recv() failed (104: Connection reset by peer) while reading response header from upstream"

I've tried countless variations in my php-fpm.conf file, my nginx.conf, my php5-fpm's www.conf, php.ini, etc. When I run phpinfo() it all seems happy, but when I actually run a script it hangs and dies.

Does anyone have a set of configuration files they would be willing to share that actually works correctly? I'm getting really frustrated and would appreciate any kind of assistance.

Thanks, in advance.

  • 写回答

2条回答 默认 最新

  • dongna9185 2015-04-07 03:32
    关注

    I've made a while back a video tutorial configuring nginx with php-fpm on centos 6.5.

    It describes the entire configuration to make it up and running.

    Here is the URL:

    https://www.youtube.com/watch?v=psfF6p2fc4Y

    Check also the video description for all details.

    评论

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line