You don’t have permission to access / on this server的解决方法

selmy 环境搭建You don’t have permission to access / on this server的解决方法已关闭评论1,057阅读模式

最近租用了一台VPS服务器,采用了CentOS服务器,服务器是apache服务器。

出现无权访问的错误的解决方案:

linux服务器出现Forbidden You don't have permission to access / on this server的解决方法

1:httpd.conf设置不正确

一:

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
deny from all
Satisfy all
<// Directory>

然后把deny from all中的deny改成了allow,保存后重起了 apache,问题解决。

二:这里定义了默认对网站根的访问权限

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
<==// Directory//>

换成是:

<Directory />
Options Indexes FollowSymLinks
AllowOverride None
<=-/==/Directory//>

2:网站目录权限设置不正确

1. chmod 701 /home/www

2. chmod 701 /home/www/*

设置网站目录权限

chmod 705 –R /var/www/html

到此问题基本应该都可以解决。

申明:以上内容转载自多个博客。所以没有办法提供版权信息。
http://www.hzw513.com/show-10-1.html
http://hi.baidu.com/vking/blog/item/bc50f3d380296adfa9ec9af4.html
http://www.phpweblog.net/maple094/archive/2008/05/29/4000.html

文章末尾固定信息
weinxin
我的微信
微信扫一扫
selmy
  • 本文由 发表于 2010年05月23日 15:01:42
  • 转载请务必保留本文链接:https://oldblog.t4x.org/2010/05/23/forbidden-access-server/