搭建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启动。哪里出现问题了?各位大虾 没人回答么 nginx配置文件没配置php相关信息么???
纯长参数格式太长了 yum安装的只要php-fpm起来了就行了吧 Nginx也要配置才会连接Php 确认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;
}
看看。。。。。。。。。。 回复 4# c89758971
恩 是的 谢谢ha
页:
[1]