LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-16-2008, 05:27 PM   #1
mvidberg
LQ Newbie
 
Registered: Jun 2007
Location: Ontario, Canada
Distribution: Ubuntu, Debian, CentOS
Posts: 28

Rep: Reputation: 16
apache FollowSymLinks not working unless ownership is same


I have a problem with a site that creates symlinks to subdirectories via php script. When the script creates the symlink, the ownership is set as "www-data" (this is on a debian server).. while the actual directories they are linked against are owned by the web account. Apache gives error 403 when attempting to follow these php created symlinks unless I go in and manually set the ownership the same. I can't get php to set the ownership (just won't allow it) and apache seems to be acting like it's using SymLinksIfOwner instead of FollowSymLinks. How can I force apache to follow symlinks even if ownership does not match?

Last edited by mvidberg; 05-16-2008 at 05:28 PM.
 
Old 05-16-2008, 05:46 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
I have fought with this problem some myself. It is not apache that is causing the trouble; it is the file system. The solution that I have used (imperfect) is to take advantage of the group field in the filesystem, and create a common group containing all the the owners and the apache uid. As long as the group then has read access, apache will be able to serve the page.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache doc root ownership lt_wentoncha Linux - Software 3 06-30-2006 04:54 PM
FollowSymLinks and SELinux enabled piforever Linux - Security 9 02-27-2006 10:09 PM
apache config problem with otto, FollowSymLinks legolin Linux - Software 1 05-16-2005 07:21 PM
Apache File Ownership wenberg Linux - Software 2 04-02-2004 09:39 PM
Apache/Samba file permissions/ownership seedsca Linux - Networking 0 03-28-2004 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration