欢迎访问wabc.cc — 源码交易 · 软件定制 · 建站服务一站式平台
全部分类
首页 - 首页 - 其他资源 - 产品分类 - 源码 - php - Nginx访问PHP提示An error occurred. the page you are looking for is currently unavai
https://yingnet.oss-cn-shenzhen.aliyuncs.com/demo/20191222/123.jpg

Nginx访问PHP提示An error occurred. the page you are looking for is currently unavai

以前一直玩windows,现在被微信公众号 和小程序 搞的发现windows还是不怎么靠谱,于是开始了linux的摸索, 没想到遇到不少困难,抽空记录一下,希望对新搭建Linux服务器的朋友有点帮助。 安装完nginx和PHP等环境后,Nginx访问PHP提示 An error occurred. Sorry, the page you are looking for is currently
价格面议议价成交 · 担保交易 · 支持二次开发
分类:php · 浏览:3 · 更新:2025-12-22
以前一直玩windows,现在被微信公众号和小程序搞的发现windows还是不怎么靠谱,于是开始了linux的摸索,
没想到遇到不少困难,抽空记录一下,希望对新搭建Linux服务器的朋友有点帮助。

安装完nginx和PHP等环境后,Nginx访问PHP提示

An error occurred.

Sorry, the page you are looking for is currently unavailable.

Please try again later.

If you are the system administrator of this resource then you should check theerror log for details.

Faithfully yours, nginx.

——最后发现,我犯了个低级错误,PHP没启动。

ngnix中重启php

service php-fpm start

service php-fpm stop

service php-fpm restart

service php-fpm reload

其他可能的错误,来自网络整理:

问题1:仔细检查下 Nginx配置文件,是配置不当造成的!:

比如说,有朋友遇到的出错原因如下:

nginx.conf配置文件有这么一段代码:

include vhost/*.conf;

它表示包含 vhost 目录下的所有虚拟机配置文件。在语法上,通过 命令 nginx -t 去检测,它是没错的,但是事实上 vhost文件夹是不存的(忘记建立),所以nginx进程虽然能跑起来,但是前端页面展示还是报错的,最后的解决方案 当然是新建 vhost目录即可!

问题2:有朋友把Nginx配置文件配置错了。

参考:https://www.cnblogs.com/debmzhang/p/4194254.html

参考:如何配置Nginx网站配置文件,设置域名访问,更换默认目录等。

上一篇:解决win2008服务器网站从php5.3升级到php5.5/5.6/7.0后报500错误
下一篇:PHPWEB 没有管理权限,如何增加管理权限?

相关源码推荐

联系我们

  • 电话:18566180025
  • 邮箱:www@tma.cn
  • 地址:东莞市科技园
  • 发布需求