Apache 可以提供根目录中的文件,但不能提供任何子文件夹中的文件

Apache 可以提供根目录中的文件,但不能提供任何子文件夹中的文件

Ubuntu 14.04 上的全新 LAMP 安装。

我可以查看根目录 /var/www/html/ 文件夹中的所有文件。我可以在根目录下运行 phpinfo.php。我安装了 phpmyadmin 并且可以访问该应用程序。

我无法访问 /var/www/html 的任何子文件夹。我尝试查看一个简单的 html 文件,但仍然出现错误。Firefox 给出的错误是:无法连接

Firefox 无法与本地主机的服务器建立连接。

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

我检查了文件夹的权限,它们是drwxr-xr-x,就像html文件夹一样,子文件夹中的文件是-rw-r--r--,就像html文件夹中的文件一样。

还有一件事:子文件夹运行的是 Drupal 7.31。我第一次尝试访问子文件夹时,它给了我一个错误,说它无法访问数据库。然后我使用 sites/default/settings.php 文件中的 db 配置创建了数据库。从那时起,我一直收到“无法连接”错误消息。非 drupal 子文件夹也给了我同样的错误。

您能告诉我如何访问这些文件吗?

相关内容