<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HostOnNet.com &#187; apache permission</title>
	<atom:link href="http://blog.hostonnet.com/tag/apache-permission/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hostonnet.com</link>
	<description>Windows, Linux, Ubuntu, Web Hosting</description>
	<lastBuildDate>Mon, 07 Jun 2010 08:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>You don&#8217;t have permission to access / on this server</title>
		<link>http://blog.hostonnet.com/you-dont-have-permission-to-access-on-this-server</link>
		<comments>http://blog.hostonnet.com/you-dont-have-permission-to-access-on-this-server#comments</comments>
		<pubDate>Thu, 04 Jun 2009 08:41:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache permission]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=61</guid>
		<description><![CDATA[On a new apache installation, when i g to the site i got following error Forbidden You don&#8217;t have permission to access / on this server. Apache/2.2.11 (Fedora) Server at 192.168.206.128 Port 80 I set permission for DocumentRoot to 755 and change ownership to user apache, but that won&#8217;t fix the error. I checked SELinux [...]]]></description>
			<content:encoded><![CDATA[<p>On a new apache installation, when i g to the site i got following error</p>
<blockquote><p>
Forbidden</p>
<p>You don&#8217;t have permission to access / on this server.<br />
Apache/2.2.11 (Fedora) Server at 192.168.206.128 Port 80
</p></blockquote>
<p>I set permission for DocumentRoot to 755 and change ownership to user apache, but that won&#8217;t fix the error.</p>
<p>I checked SELinux status</p>

<div class="wp_syntax"><div class="code"><pre class="pre" style="font-family:monospace;">[root@linux ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 23
Policy from config file:        targeted
[root@linux ~]#</pre></div></div>

<p>Was fixed by disabling SELinux</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>selinux<span style="color: #000000; font-weight: bold;">/</span>config</pre></div></div>

<p>Find</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SELINUX</span>=enforcing</pre></div></div>

<p>Replace with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SELINUX</span>=disabled</pre></div></div>

<p>After reboot site started working.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/you-dont-have-permission-to-access-on-this-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
