免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1802 | 回复: 0
打印 上一主题 下一主题

centos7.2中安装php5.5.54找不到php-fpm [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-02-13 15:40 |只看该作者 |倒序浏览
本帖最后由 eremiter 于 2017-02-13 15:52 编辑

php5.5.54已经集成了php-fpm,但在centos却找不到php-fpm.conf
所以只能在命令行运行php,在nginx1.10.3提示找不到网页
whereis php-fpm 命令显示如下
  1. whereis php-fpm
  2. php-fpm:
复制代码


在编译php5.5.38中使用

./configure



  1. ./configure
  2. --prefix=/usr/local/php
  3. --enable-xml --enable-bcmath
  4. --enable-shmop
  5. --enable-sysvsem
  6. --enable-inline-optimization
  7. --enable-opcache
  8. --enable-mbregex
  9. --enable-fpm
  10. --enable-mbstring
  11. --enable-ftp
  12. --enable-gd-native-ttf
  13. --with-openssl
  14. --enable-pcntl
  15. --enable-sockets
  16. --with-xmlrpc
  17. --enable-zip
  18. --enable-soap
  19. --without-pear
  20. --with-gettext
  21. --enable-session
  22. --with-mcrypt
  23. --with-curl
  24. --enable-ctype
  25. --enable-shared
  26. --disable-fileinfo
  27. --enable-fasecgi
复制代码

不知哪里没配置好,导致nginx无法认到php-fpmnginx中的default.conf配置如下
  1. server {
  2.     listen       80;
  3.     server_name  localhost;
  4.     #root   /home/wwwroot/erpbs;
  5.      index  index.html index.php default.html default.php;
  6.     #charset koi8-r;
  7.     #access_log  /var/log/nginx/log/host.access.log  main;

  8.     location / {
  9.         
  10.     }

  11.     #error_page  404              /404.html;

  12.     # redirect server error pages to the static page /50x.html
  13.     #
  14.     error_page   500 502 503 504  /50x.html;
  15.     location = /50x.html {
  16.         #root   /home/wwwroot/erpbs;
  17.     }

  18.     # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  19.     #
  20.     #location ~ \.php$ {
  21.     #    proxy_pass   http://127.0.0.1;
  22.     #}

  23.     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  24.     #
  25.     location ~ \.php$ {
  26.        root   /home/wwwroot/erpbs;
  27.        # try_files $uri =404;
  28.         fastcgi_pass   127.0.0.1:9000;
  29.         fastcgi_index  index.php;
  30.         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  31.         include        fastcgi_params;
  32.     }

  33.     # deny access to .htaccess files, if Apache's document root
  34.     # concurs with nginx's one
  35.     #
  36.     #location ~ /\.ht {
  37.     #    deny  all;
  38.     #}
  39. }
复制代码




您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP