LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-19-2004, 02:28 PM   #1
ttilt
Member
 
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150

Rep: Reputation: 15
permission problems (403) with bugzilla using apache


i just installed bugzilla and i keep getting permission errors when trying to access the bugzilla dir. I can access the localhost default page w/out problems.

I followed all the instructions in the manual regarding setting the owner of the bugzilla files to the apache user:

chown -R nobody.nogroup /usr/local/bugzilla

In my case the user is 'nobody' which is the default for the apache installed from source. But I still get the 403 error. I also tried ttilt.ttilt (my username) to no avail. I've run checksetup on the bugzilla dir as root and that doesn't help. The permissions on the index.cgi are the default (750), and after checksetup is run the owner is set to 'root' and group 'nogroup', which is the group used by apache.

The $webservergroup in localconfig is set to 'nogroup' as well.

As per the manual, I have

<Directory "bugzilla">
Options +ExecCGI +FollowSymLinks
AllowOverride Limit
</Directory>

in the httpd.conf.

bugzilla is a symlink in htdocs pointing to /usr/local/bugzilla.

NOW we got a real problem going, let's see if anyone can figure this out.

JC
 
Old 07-19-2004, 04:45 PM   #2
komunitae
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware-current
Posts: 9

Rep: Reputation: 0
do you change the /usr/local/bugzilla permissions to 755?

If you want to publish via Apache, you need setup the directory permissions to 755.

But is unsafe to publish some from /usr/local. Try to install bugzilla in other directory (/var/www or a directory under the httpd installation.
 
Old 07-19-2004, 04:58 PM   #3
ttilt
Member
 
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150

Original Poster
Rep: Reputation: 15
PROBLEM FIXED (read for tricky problem)

Thanks for the help but I figured out the problem..

turned out that the

<Directory "bugzilla">
Options +ExecCGI +FollowSymLinks
AllowOverride Limit
</Directory>

was wrong, because even though there was a "bugzilla" symlink under /usr/local/apache2/htdocs pointing to /usr/local/bugzilla, apache doesn't allow to just say "bugzilla" in the directory directive.

Likewise, the following is wrong:

<Directory "/usr/local/bugzilla">
Options +ExecCGI +FollowSymLinks
AllowOverride Limit
</Directory>

which is what I had earlier. The only way that is acceptable by apache is:

<Directory "/usr/local/apache2/htdocs/bugzilla">
Options +ExecCGI +FollowSymLinks
AllowOverride Limit
</Directory>

Which is specifying the actual symlink with a full path, not just a relative path and not where it points to.

This is a very tricky problem that I haven't heard of before, so I hope this serves as a solution to someone else w/ the same problem.

JC
 
  


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
Errot 403 on 666 permission file baosheng Linux - Software 4 10-10-2005 06:00 AM
Apache 403 Forbidden mrmike Linux - Newbie 3 07-10-2004 12:31 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
Apache 2 + permission problems aluminum Linux - Newbie 4 11-03-2003 10:06 PM
Permission problems in Apache matt3333 Linux - Networking 3 05-02-2003 12:21 AM


All times are GMT -5. The time now is 08:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration