刚装完 PHP、Nginx,准备跑下 phpMyAdmin 程序,结果报如下错误: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.nginx
Faithfully yours, nginx.this
解决方案:spa
仔细检查下 Nginx配置文件,是配置不当形成的!orm
好比说,我遇到的出错缘由以下:进程
nginx.conf配置文件有这么一段代码:ci
include vhost/*.conf;get
它表示包含 vhost 目录下的全部虚拟机配置文件。在语法上,经过 命令 nginx -t 去检测,它是没错的,可是事实上 vhost文件夹是不存的(忘记创建),因此nginx进程虽然能跑起来,可是前端页面展现仍是报错的,最后的解决方案 固然是新建 vhost目录便可!虚拟机