【问题标题】:Need help setting up Apache on CentOS 5.5 , getting 403需要帮助在 CentOS 5.5 上设置 Apache,得到 403
【发布时间】: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


【解决方案1】:

确保所有目录(包括您的 htdocs 目录)都已公开阅读。 :)

【讨论】:

  • 谢谢,这解决了这个问题。有另一个问题,但我会尝试解决这个问题
猜你喜欢
  • 1970-01-01
  • 2012-01-07
  • 2011-09-04
  • 2014-09-28
  • 2015-07-13
  • 2021-11-11
  • 2012-04-21
  • 1970-01-01
  • 2021-12-13
相关资源
最近更新 更多