我是靠谱客的博主 奋斗黄豆,这篇文章主要介绍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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(110)

评论列表共有 0 条评论

立即
投稿
返回
顶部