【发布时间】:2011-07-17 19:37:31
【问题描述】:
我已经购买了一个 VPS,并且我已经完成了这里描述的所有事情(版本 2.2.17):http://httpd.apache.org/docs/current/install.html
我正在运行 apache,但我无法在浏览器中查看该页面。铬说:哎呀!谷歌浏览器无法连接到...当我
lynx localhost
我明白了
[error] [client 127.0.0.1] (13)Permission denied: access to / denied
我尝试了chmod 744 htdocs/index.html,但仍然没有。
Apache 正在运行 httpd (pid 7638) already running
这里是 conf/httpd.conf 文件https://gist.github.com/875352
感谢任何帮助,谢谢
【问题讨论】:
-
通向您的 htdocs 目录的所有目录是否都已公开阅读?
-
不!它在 /root/workspace/apache 和根文件夹中:drwxr-x--- 4 root root 4096 Mar 17 23:19 root。我想知道我是否可以将整个东西移到另一个文件夹中
-
从
root的主目录提供文件对我来说似乎很奇怪。也许与其解决您的权限问题,不如将它们移至/var/www/或/home/daemon/或其他什么地方? :)
标签: linux apache apache2 centos