Re: [Lxr-general] apache (httpd) on f8 vs. fc6 running LXR
Brought to you by:
ajlittoz
From: Gene Sm(i)t. <gd...@gm...> - 2008-02-19 02:30:31
|
Gene Smith wrote, On 02/03/2008 12:26 AM: > I have a LXR setup on fc6 that works fine. When I moved it to f8 (which > seems to have the same versions of httpd, perl, mysql etc) I can only > get it to work if I change the user/group in httpd.conf from > apache:apache to myusername:myusername. The files accessed by httpd, > perl etc are world readable and executable but owned by root, as they > were in fc6. These are in /usr/lib/perl5/site_perl/.... > > I have tried changing all the files to owner/group apache:apache but > that does not help. I have disabled selinux and that makes no > difference, but saw no errors before disabling. I have made httpd.conf > user/group nobody:nobody and that does not work. Only when I use my own > UID/GID in httpd.conf does LXR work. > > I have set-up LXR several times before with other fedora/rh versions > with no problem this difficult. Why would the apache account not work in > f8 but it did work with the same files in fc6? Or should I just run > apache as myself and be happy. This is only really used from localhost > for the most part, not on the internet. > > By "not work" what I mean is all I see when I go to a link in LXR is > "The directory / does not exist." which is produced in the > /usr/local/lxr/sources script. No errors appear in the httpd logs since > the script is producing a valid page. > > Got no answer on Fedora list when I asked this. Hope this makes it > through the spam. To answer my own post, the reason was because the files accessed by lxr were in my home directory with permission 700 and apache could not go there. Pretty simple actually but not much hint from apache or lxr as to what the problem was. Just was looking at the /home/me/lxr-file/ directory which was set to 755, I think, but was was overriden by the /home/me/ setting of 700. (Didn't realize the permission are inherited but I guess they are.) |