<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Curing ‘Symbolic link not allowed’ (Apache 2.0)</title>
	<atom:link href="http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/</link>
	<description></description>
	<lastBuildDate>Wed, 02 Feb 2011 18:50:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Drew</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-1579</link>
		<dc:creator>Drew</dc:creator>
		<pubDate>Thu, 20 Jan 2011 19:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-1579</guid>
		<description>@anunay:
Great to hear!</description>
		<content:encoded><![CDATA[<p>@anunay:<br />
Great to hear!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anunay</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-1578</link>
		<dc:creator>anunay</dc:creator>
		<pubDate>Thu, 20 Jan 2011 15:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-1578</guid>
		<description>thanks for co-ordination.

It is working by making system into permissive mode 

echo 0 &gt;/selinux/enforce

apache is accessing</description>
		<content:encoded><![CDATA[<p>thanks for co-ordination.</p>
<p>It is working by making system into permissive mode </p>
<p>echo 0 &gt;/selinux/enforce</p>
<p>apache is accessing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anunay</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-1577</link>
		<dc:creator>anunay</dc:creator>
		<pubDate>Wed, 19 Jan 2011 11:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-1577</guid>
		<description>[Wed Jan 19 11:24:54 2011] [notice] Apache/2.0.52 (Red Hat) configured -- resuming normal operations
[Wed Jan 19 11:25:20 2011] [error] [client 10.14.0.230] Symbolic link not allowed: /var/www/sierra/sierra
[Wed Jan 19 11:25:26 2011] [error] [client 10.14.0.230] Symbolic link not allowed: /var/www/sierra/test
[Wed Jan 19 11:25:32 2011] [error] [client 10.14.0.230] Symbolic link not allowed: /var/www/sierra/sierra
[Wed Jan 19 11:34:43 2011] [error] [client 10.14.0.230] Symbolic link not allowed: /var/www/sierra/sierra
[Wed Jan 19 11:34:48 2011] [error] [client 10.14.0.230] File does not exist: /var/www/sierra/s
[Wed Jan 19 11:34:51 2011] [error] [client 10.14.0.230] File does not exist: /var/www/sierra/styles, referer: http://10.14.0.60/sierra
[Wed Jan 19 11:34:52 2011] [error] [client 10.14.0.230] File does not exist: /var/www/sierra/images, referer: http://10.14.0.60/sierra
[root@cdrserver sierra]#</description>
		<content:encoded><![CDATA[<p>[Wed Jan 19 11:24:54 2011] [notice] Apache/2.0.52 (Red Hat) configured &#8212; resuming normal operations<br />
[Wed Jan 19 11:25:20 2011] [error] [client 10.14.0.230] Symbolic link not allowed: /var/www/sierra/sierra<br />
[Wed Jan 19 11:25:26 2011] [error] [client 10.14.0.230] Symbolic link not allowed: /var/www/sierra/test<br />
[Wed Jan 19 11:25:32 2011] [error] [client 10.14.0.230] Symbolic link not allowed: /var/www/sierra/sierra<br />
[Wed Jan 19 11:34:43 2011] [error] [client 10.14.0.230] Symbolic link not allowed: /var/www/sierra/sierra<br />
[Wed Jan 19 11:34:48 2011] [error] [client 10.14.0.230] File does not exist: /var/www/sierra/s<br />
[Wed Jan 19 11:34:51 2011] [error] [client 10.14.0.230] File does not exist: /var/www/sierra/styles, referer: <a href="http://10.14.0.60/sierra" rel="nofollow">http://10.14.0.60/sierra</a><br />
[Wed Jan 19 11:34:52 2011] [error] [client 10.14.0.230] File does not exist: /var/www/sierra/images, referer: <a href="http://10.14.0.60/sierra" rel="nofollow">http://10.14.0.60/sierra</a><br />
[root@cdrserver sierra]#</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anunay</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-1576</link>
		<dc:creator>anunay</dc:creator>
		<pubDate>Wed, 19 Jan 2011 10:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-1576</guid>
		<description>thanks for responding.

no error logs regarding that.

at this location: /u01/app/oracle/product/9.2.0/Apache/Apache/logs

in the browser it opens the base directory path &quot;/var/www/sierra&quot;, but it doesn&#039;t show that symlink, however other files created there it is showing.</description>
		<content:encoded><![CDATA[<p>thanks for responding.</p>
<p>no error logs regarding that.</p>
<p>at this location: /u01/app/oracle/product/9.2.0/Apache/Apache/logs</p>
<p>in the browser it opens the base directory path &#8220;/var/www/sierra&#8221;, but it doesn&#8217;t show that symlink, however other files created there it is showing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-1575</link>
		<dc:creator>Drew</dc:creator>
		<pubDate>Tue, 18 Jan 2011 22:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-1575</guid>
		<description>@ anunay: What do your apache logs show?</description>
		<content:encoded><![CDATA[<p>@ anunay: What do your apache logs show?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anunay</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-1574</link>
		<dc:creator>anunay</dc:creator>
		<pubDate>Tue, 18 Jan 2011 19:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-1574</guid>
		<description>&lt;pre&gt;[root@cdrserver sierra]# cat /etc/httpd/conf/httpd.conf &#124; grep ^Group
Group apache

[root@cdrserver READER]# pwd
/home/sierraleone/READER
[root@cdrserver READER]# ls -ltr
drwxr-xr-x  2 sierraleone apache        4096 Jan 18 19:34 test

[root@cdrserver sierra]# pwd
/var/www/sierra
lrwxrwxrwx  1 sierraleone apache        30 Jan 18 19:31 test -&gt; /home/sierraleone/READER/test/&lt;/pre&gt;
and used 
&lt;pre&gt;
DocumentRoot &quot;/var/www/sierra&quot;
    AllowOverride None
    Options Indexes Includes FollowSymLinks
     Order allow,deny
    Allow from all
&lt;/pre&gt;
http://10.14.0.60/test

apache is showing: 
&lt;code&gt;You don&#039;t have permission to access /test on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.&lt;/code&gt;

Please check...</description>
		<content:encoded><![CDATA[<pre>[root@cdrserver sierra]# cat /etc/httpd/conf/httpd.conf | grep ^Group
Group apache

[root@cdrserver READER]# pwd
/home/sierraleone/READER
[root@cdrserver READER]# ls -ltr
drwxr-xr-x  2 sierraleone apache        4096 Jan 18 19:34 test

[root@cdrserver sierra]# pwd
/var/www/sierra
lrwxrwxrwx  1 sierraleone apache        30 Jan 18 19:31 test -&gt; /home/sierraleone/READER/test/</pre>
<p>and used </p>
<pre>
DocumentRoot "/var/www/sierra"
    AllowOverride None
    Options Indexes Includes FollowSymLinks
     Order allow,deny
    Allow from all
</pre>
<p><a href="http://10.14.0.60/test" rel="nofollow">http://10.14.0.60/test</a></p>
<p>apache is showing:<br />
<code>You don't have permission to access /test on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.</code></p>
<p>Please check&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-1067</link>
		<dc:creator>Drew</dc:creator>
		<pubDate>Thu, 27 Aug 2009 22:39:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-1067</guid>
		<description>Habib,

What does your error logs for Apache say?  Usually you can find out what the error logs are telling you and do a simple search on the error on Google, and figure it out pretty fast.  Let me know if you still need some help.</description>
		<content:encoded><![CDATA[<p>Habib,</p>
<p>What does your error logs for Apache say?  Usually you can find out what the error logs are telling you and do a simple search on the error on Google, and figure it out pretty fast.  Let me know if you still need some help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Habib</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-1056</link>
		<dc:creator>Habib</dc:creator>
		<pubDate>Fri, 17 Jul 2009 18:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-1056</guid>
		<description>Hi,
I&#039;m having the same problem. I have my DocumentRoot directory on the local filesystem. However, I cannot follow the links! My DocumentRoot is /web and here is the permission for it:

&lt;code&gt;drwxrwxrwx 3 root apache 4096 Jul 17 11:09 /web&lt;/code&gt;

In /web directory I have a symlink:
&lt;code&gt;lrwxrwxrwx 1 root root 31 Jul 16 17:00 /web/habib.html -&gt; /home/habib/web/habib.html&lt;/code&gt;

Permissions for /web (DocumentRoot) and other directories:
&lt;pre&gt;
&lt;code&gt;
drwxrwxrwx 3 root       root        0 Jul 17 10:33 /home
drwxrwxrwx 2 habib groupa 64 Jul 17 10:58 /home/habib
drwxrwxrwx 2 habib groupa 64 Jul 16 17:04 /home/habib/web
-rwxrwxrwx 1 nfsnobody  nfsnobody  69 Jul 16 16:57 /home/habib/web/habib.html
&lt;/code&gt;
&lt;/pre&gt;

As you can see, I have read, write and execute permissions on all files and directories.

And here is from my httpd.conf:
&lt;pre&gt;
&lt;code&gt;
User apache
Group apache

Options FollowSymLinks
AllowOverride None

Options Indexes FollowSymLinks
AllowOverride None

Order allow,deny
Allow from all
&lt;/code&gt;
&lt;/pre&gt;

Would you help me please?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m having the same problem. I have my DocumentRoot directory on the local filesystem. However, I cannot follow the links! My DocumentRoot is /web and here is the permission for it:</p>
<p><code>drwxrwxrwx 3 root apache 4096 Jul 17 11:09 /web</code></p>
<p>In /web directory I have a symlink:<br />
<code>lrwxrwxrwx 1 root root 31 Jul 16 17:00 /web/habib.html -> /home/habib/web/habib.html</code></p>
<p>Permissions for /web (DocumentRoot) and other directories:</p>
<pre>
<code>
drwxrwxrwx 3 root       root        0 Jul 17 10:33 /home
drwxrwxrwx 2 habib groupa 64 Jul 17 10:58 /home/habib
drwxrwxrwx 2 habib groupa 64 Jul 16 17:04 /home/habib/web
-rwxrwxrwx 1 nfsnobody  nfsnobody  69 Jul 16 16:57 /home/habib/web/habib.html
</code>
</pre>
<p>As you can see, I have read, write and execute permissions on all files and directories.</p>
<p>And here is from my httpd.conf:</p>
<pre>
<code>
User apache
Group apache

Options FollowSymLinks
AllowOverride None

Options Indexes FollowSymLinks
AllowOverride None

Order allow,deny
Allow from all
</code>
</pre>
<p>Would you help me please?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dean</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-980</link>
		<dc:creator>dean</dc:creator>
		<pubDate>Fri, 07 Nov 2008 16:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-980</guid>
		<description>Setting every directory to executable all the way down from the root to the directory I was linking to did the trick for me. THANK YOU VERY MUCH!!!</description>
		<content:encoded><![CDATA[<p>Setting every directory to executable all the way down from the root to the directory I was linking to did the trick for me. THANK YOU VERY MUCH!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.deckerd.com/core/curing-symbolic-link-not-allowed-apache-20/comment-page-1/#comment-956</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Wed, 29 Oct 2008 21:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.deckerd.com/curing-symbolic-link-not-allowed-apache-20/#comment-956</guid>
		<description>qw(Add a new (larger) disk to the system, format it accordingly, migrate the old /var/ mount-point to the new partition and change the DocumentRoot in the Apache configuration. This requires backing up old files and pushing them to the new partition and reconfiguring a small part of Apache; could cause a lot of downtime.)

If you have the luxury of being able to add a seprate partion to the system it&#039;s actually way easier than this and doesn&#039;t require reconfiguring apache.

add the new partition to the system (however you are going to do that based on your hardware)
mount it temporarily at something like /mnt/myNewDisk or just /mnt (see man mount)
*Take a backup*
move all the files from /var/www (or whatever your web dir is.
mv /var/www/* /mnt/myNewDisk/
unmount said new disk 
umount /mnt/myNewDisk
remount it on the now empty /var/www/ which makes a great mount point
edit your fstab (or vfstab) file to ensure this mounts at startup.

I&#039;m leaving out details on things like mount and fstab because they are a little os/vendor/filesystem specific. Generally they are pretty similar but you may need to brush up on the man page. In a pinch the /etc/fstab or /etc/vfstab can give you the options that you need but you&#039;ll have to double check your syntax for the command line.</description>
		<content:encoded><![CDATA[<p>qw(Add a new (larger) disk to the system, format it accordingly, migrate the old /var/ mount-point to the new partition and change the DocumentRoot in the Apache configuration. This requires backing up old files and pushing them to the new partition and reconfiguring a small part of Apache; could cause a lot of downtime.)</p>
<p>If you have the luxury of being able to add a seprate partion to the system it&#8217;s actually way easier than this and doesn&#8217;t require reconfiguring apache.</p>
<p>add the new partition to the system (however you are going to do that based on your hardware)<br />
mount it temporarily at something like /mnt/myNewDisk or just /mnt (see man mount)<br />
*Take a backup*<br />
move all the files from /var/www (or whatever your web dir is.<br />
mv /var/www/* /mnt/myNewDisk/<br />
unmount said new disk<br />
umount /mnt/myNewDisk<br />
remount it on the now empty /var/www/ which makes a great mount point<br />
edit your fstab (or vfstab) file to ensure this mounts at startup.</p>
<p>I&#8217;m leaving out details on things like mount and fstab because they are a little os/vendor/filesystem specific. Generally they are pretty similar but you may need to brush up on the man page. In a pinch the /etc/fstab or /etc/vfstab can give you the options that you need but you&#8217;ll have to double check your syntax for the command line.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

