apache服务器出现Permission denied:access to / denied问题的解决方法
2009-05-19 13:23
525 查看
环境配置:
操作系统:FreeBSD
web服务器:apache2
php文件:php5.0
discuz:discuz7
apache的根目录是放在了/usr/local/apache2/htdocs/中
机器域名是www.benchuang.org
今天访问www.benchuang.org的时候突然出现了403 forbidden错误,不知道是怎么会是,请教了好人都说是由于apache的配置文件httpd.conf中的<Directory / > 中的的deny from all的原因,可是我翻遍了所有的有关跟用户权限相关的配置,都没有解决。后来才发现/usr目录的访问权限是任何人可读,但是不可执行,因此改变 /usr目录的访问权限,chmod -R o+x /usr,访问www.benchuang.org,一切ok
操作系统:FreeBSD
web服务器:apache2
php文件:php5.0
discuz:discuz7
apache的根目录是放在了/usr/local/apache2/htdocs/中
机器域名是www.benchuang.org
今天访问www.benchuang.org的时候突然出现了403 forbidden错误,不知道是怎么会是,请教了好人都说是由于apache的配置文件httpd.conf中的<Directory / > 中的的deny from all的原因,可是我翻遍了所有的有关跟用户权限相关的配置,都没有解决。后来才发现/usr目录的访问权限是任何人可读,但是不可执行,因此改变 /usr目录的访问权限,chmod -R o+x /usr,访问www.benchuang.org,一切ok
相关文章推荐
- WampServer设置apache伪静态出现404 not found及You don't have permission to access / on this server解决方法分析[原创]_服务器其它_脚本之家
- 解决mysql创建数据库后出现:Access denied for user 'root'@'%' to database 'xxx'的问题
- apache出现You don't have permission to access / on this server. 提示(解决方法)
- 解决Mysql出现Access denied for user ''@'localhost' to database '的问题
- apache出现You don’t have permission to access / on this server问题的解决
- apache 问题 You don't have permission to access /test.php on this server 解决方法
- 使用MySQL API时出现如下问题的解决方法:Access denied for user 'root'@'localhost' (using password: YES)
- Wamp 修改默认网站目录的方法及出现You don't have permission to access / on this server问题解决
- 解决ubuntu 16.04安装mysql5.7.17后,登录时出现ERROR 1045 (28000): Access denied for user 'root'@'localhost'问题
- SharePoint创建外部列表出现“Access denied by Business Data Connectivity”错误解决方法
- Linux下连接Mysql出现:Access denied for user 'root'@'localhost' (using password:YES)的解决方法
- Android Studio出现Failed to open zip file问题的解决方法
- android中,使用ant多渠道打包时出现Perhaps JAVA_HOME does not point to the JDK问题的解决方法
- 下载服务器代码出现fatal: git 1.7.2 or later required的问题解决方法
- 解决vcenter时出现的“Permission to perform this operation was denied”问题
- ERROR 1044 (42000):Access denied for user ''@'localhost' to database 'mysql'的解决方法
- php + apache 环境搭建过程中出现的问题及解决方法
- QT出现“undefined reference to `vtable for’”问题的原因及解决方法
- ubuntu12.04.4下出现"(sublime:12386): Gtk-WARNING **: Failed to load type module: (null)"问题及解决方法
- 通过ajax访问Tomcat服务器web service接口时出现No 'Access-Control-Allow-Origin' header问题的解决办法