LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2011, 10:52 PM   #1
macombej
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Rep: Reputation: 0
Apache and/or Bugzilla issue


I loaded CentOS 5.5, Apache and Bugzilla with all the trimmings.

My checksetup.pl finishes with no errors. I think the issue is on the Apache side of the equation.

I can surf to localhost/test/index.html but cannot surf to localhost/bugzilla/index.html.

I have commented out my <Directory> calls for /var/www/html/bugzilla. restarted everything, cleared browser cash, validated that the test directory, bugzilla directory and both index.html files have the same settings.

I can file:// to both index.html files but can't http:// to the bugzilla version. I get a 403 error.

What can cause Apache to ignore a directory in this case?
 
Old 04-02-2011, 07:23 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
In your /etc/httpd directory (where httpd.conf lives), see if you have an extra subdirectory. If you do, add a file, httpd-bugzilla.conf in the extra directory with this content:
Code:
# Bugzilla
<Directory "/srv/httpd/htdocs/bugzilla">
        AddHandler cgi-script .cgi
        Options +Indexes +ExecCGI
        DirectoryIndex index.cgi
        AllowOverride Limit
</Directory>
The "/srv/httpd/htdocs/bugzilla" is where your Bugzilla directory is in your server tree. It can be either a symbolic link or the actual directory (mine is the actual directory in /var/www/htdocs/bugzilla, yours may vary but it's the same idea).

You don't really want to use an absolute path here, "srv" is a token that Apache uses to determine the path.

Now, if you have /etc/httpd/extra, add the following at the end of /etc/httpd/httpd.conf
Code:
# Uncomment the following line to enable Bugzilla:
#
Include /etc/httpd/extra/httpd-bugzilla.conf
If you do not have /etc/httpd/extra, you can simply add the above "Directory" lines to end of /etc/httpd/httpd.conf.

Stop the server, start the server and see if you've got it.

Just in case, make sure that your DirectoryIndex section looks like this (I've added PHP to it)
Code:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>
I assume you have a web page that you are able to access? If you do and can't, you'll need to solve that first. This is where a fixed-IP address for your box comes in handy; e.g., my server is fixed-IP at 192.168.1.10 and, in /etc/httpd/httpd.conf the "Listen" section looks like this:
Code:
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
#Listen 80
Listen 192.168.1.10:80
Works just fine, that. But, then so does VirtualHost or simply leaving it to "Listen 80." Up to you.

Bugzilla has always been just a little tricky to get going but the above seems to work pretty well.

Hope this helps some.
 
Old 04-02-2011, 08:36 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Since you're running Centos I guess it's a SELinux permissions problem.

Regards
 
Old 04-02-2011, 09:47 PM   #4
macombej
LQ Newbie
 
Registered: Nov 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Bathory, good call. I shut off SELINUX enforcement and the folder popped right up. Evidently the checksetup.pl inserts a configuration in SELINUX for bugzilla. If anyone knows what might fix this configuration, please post. Otherwise, I will hopefully figure it out and post it here.
 
Old 04-03-2011, 03:10 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You can use the following to allow apache use the bugzilla directory (use the actual path to the installed bugzilla):
Code:
chcon -R -h -t httpd_sys_content_t /path/to/bugzilla
Regards
 
  


Reply

Tags
apache, bugzilla



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
Issue with Apache? your_shadow03 Linux - Newbie 2 04-23-2009 10:38 PM
Apache issue plk Linux - Server 2 04-14-2008 09:30 AM
Bugzilla permissions issue HHEEELLPP! tekmann33 Linux - Software 1 04-03-2007 05:58 AM
Bugzilla - Apache will not open page! thekillerbean Linux - Software 3 01-16-2006 05:12 AM
permission problems (403) with bugzilla using apache ttilt Linux - Networking 2 07-19-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:32 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
Open Source Consulting | Domain Registration