Apache的403错误,(13)权限被拒绝:接入/拒绝,Fedora的16 [英] Apache 403 error, (13)Permission denied: access to / denied, Fedora 16

查看:141
本文介绍了Apache的403错误,(13)权限被拒绝:接入/拒绝,Fedora的16的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚建立了阿帕奇在我的Fedora 16,我不能让我的虚拟主机的工作!

I've just set up apache on my Fedora 16. And i can't get my vhosts working!

虽然本地主机/ phpmyadmin的正常工作。

Though localhost/phpmyadmin works fine..

我得到这个我的httpd.conf

I got this in my httpd.conf

<Directory /home/renat/www>
AllowOverride All
Options +Indexes +FollowSymLinks
Order allow,deny
Allow from all
</Directory>

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName fabbro.fm
    DocumentRoot /home/renat/www/fabbro
</VirtualHost>

一切都很好的权限过:

Everything is fine with permissions too:

    ls -l
    drwxr-xr-x. 32 renat renat 4096 янв.   7 16:12 www

和我已经得到403错误时尝试访问fabbro.fm
error_log中说:

And i've got 403 error when try to access fabbro.fm error_log says:

[client 127.0.0.1] (13)Permission denied: access to / denied

我有什么做的?

推荐答案

我解决了这个问题!
阿帕奇无法访问因为SELinux安全设置的目录。
所有我做的是在路径该命令适用于该目录文档根:

I solved this problem! Apache could not access those directories because of the SELinux security settings. All i had to do is to apply this command to the directory in the path to document root:

chcon -R -t httpd_sys_content_t

这篇关于Apache的403错误,(13)权限被拒绝:接入/拒绝,Fedora的16的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆