山海經 发表于 2014-08-03 17:41

搭建LNMP

小弟通过yum直接挨个安装,
安装后,
访问localhost可以看到nginx的welcome页面,但是无法访问php页面,错误提示:the page you are looking for is currently unavailable.,
grep -ef | grep php 查看php进程
只有php-fpm ,php-cgi没起来怎么回事?可以手动通过spawn-fcgi -a 127.0.0.1 -p 9000 -u www -g www -f /usr/bin/php-cgi启动。哪里出现问题了?各位大虾

山海經 发表于 2014-08-03 18:13

没人回答么

action08 发表于 2014-08-04 01:10

nginx配置文件没配置php相关信息么???


纯长参数格式太长了

c89758971 发表于 2014-08-05 21:18

yum安装的只要php-fpm起来了就行了吧

action08 发表于 2014-08-12 12:48

Nginx也要配置才会连接Php

ding_cw 发表于 2014-08-14 08:50

确认php-fm服务正常,并侦听在9000端口,

确认站点有类似如下配置    location ~ \.php$ {
      root         /data/www/html/www.XXXXX.com;
      fastcgi_pass   127.0.0.1:9000;
      fastcgi_indexindex.php;
      fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;
      include      fastcgi_params;
    }

hexilanlan 发表于 2014-08-19 10:53

看看。。。。。。。。。。

山海經 发表于 2014-08-21 09:34

回复 4# c89758971
恩 是的 谢谢ha


   
页: [1]
查看完整版本: 搭建LNMP