我是靠谱客的博主 奋斗黄豆,最近开发中收集的这篇文章主要介绍An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
一、看php-fpm起了没
pstree -u|grep php
netstat -ntlp
看php9000端口有没有起
二、配置问题
nginx.conf配置
location ~ .php$ {
root /var/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
index index.php;
}
www.conf配置
user = apache
; RPM: Keep a group allowed to write in log dir.
group = apache
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1:9000
三、重启php服务
service php-fpm restart
四、重启nginx服务
nginx -s reload
整了一天,最后就通了:
“你好,我是php”
最后
以上就是奋斗黄豆为你收集整理的An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again的全部内容,希望文章能够帮你解决An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复