LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2003, 02:33 PM   #1
Chiabert
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat Linux 9
Posts: 6

Rep: Reputation: 0
Bugzilla


Hi, I'm trying to get bugzilla to work. Unfortunately I have no experience configuring a webserver and I was hoping I could get some answers here about confusing and missing information in the Bugzilla installation documentation.

So I got mySQL working, and downloaded all the perl modules required by bugzilla (from the documentation). I ran ./checksetup.pl and it said it could connect to mysql when I was root. I'm having trouble running ./checksetup when I 'su' as another user, but I'm not sure if that has an effect on how bugzilla should run since I'm root anyhow. So I'm on the last part of the documentation....configuring Apache. I had a clean installation of Linux 9 so it already had apache on it. I went to localhost on my webbrowser and it said everything was fine. So here is how I proceeded to get bugzilla to work.

(By the way, I'm using Redhat's latest version of Bugzilla)

I untarred bugzilla in /var/www/

The Document root for apache was set to /var/www/html/

so I changed it to /var/www/bugzilla-public/

then I uncommented :

AddHandler cgi-script .cgi

and added:

<Directory "/var/www/bugzilla-public"/>
Options ExecCGI AllowOverride Limit
</Directory>

I also changed added index.cgi to:

DirectoryIndex index.html index.html.var


When I visited my localhost, it said forbidden, so I used

chmod 0775 index.cgi

to allow me to see it. It subsequently served up the CGI code which is a major no no. I want it to run the CGI script, but I don't know what I did wrong. If anyone has experience with this problem or know how to configure the Apache Server, let me know please!!!
 
Old 11-22-2006, 06:17 PM   #2
LaughingBoy
Member
 
Registered: May 2006
Location: Adelaide, South Australia
Distribution: Fedora 6-17 x64 / Ubuntu 10.x x64
Posts: 95

Rep: Reputation: 16
Cool

Quote:
Originally Posted by Chiabert
Hi, I'm trying to get bugzilla to work. Unfortunately I have no experience configuring a webserver and I was hoping I could get some answers here about confusing and missing information in the Bugzilla installation documentation.

So I got mySQL working, and downloaded all the perl modules required by bugzilla (from the documentation). I ran ./checksetup.pl and it said it could connect to mysql when I was root. I'm having trouble running ./checksetup when I 'su' as another user, but I'm not sure if that has an effect on how bugzilla should run since I'm root anyhow.
checksetup tightens permissions down so that the files can only be accessed by the intended user - the user that runs apache. This should typically be the apache user - not root. A default install should have set that up.

The reason you would have trouble running the script as a non-root user, is that they won't have the permissions to change the permissions... so to speak. It could also be that you're running 'su' without the following minus symbol - "su - ", as this runs all login scripts for the root user, as opposed to being in root's name without any of root's permissions.

Does that makes sense?

Quote:
Originally Posted by Chiabert
So I'm on the last part of the documentation....configuring Apache. I had a clean installation of Linux 9 so it already had apache on it. I went to localhost on my webbrowser and it said everything was fine. So here is how I proceeded to get bugzilla to work.

(By the way, I'm using Redhat's latest version of Bugzilla)
Hi Chiabert.
I'm curious why you're using an old version of Redhat, instead of a newer version of Fedora?

Quote:
Originally Posted by Chiabert
I untarred bugzilla in /var/www/

The Document root for apache was set to /var/www/html/

so I changed it to /var/www/bugzilla-public/
Probably not the best idea. What you ideally want is for the bugzilla to be a sub-directory of the server - ie: localhost/bugzilla

Does the directory exist that you specified? If you just untarred bugzilla, it creates a directory called bugzilla-<version> from memory. Did you rename it?
Quote:
Originally Posted by Chiabert
then I uncommented :

AddHandler cgi-script .cgi

and added:

<Directory "/var/www/bugzilla-public"/>
Options ExecCGI AllowOverride Limit
</Directory>

I also changed added index.cgi to:

DirectoryIndex index.html index.html.var


When I visited my localhost, it said forbidden, so I used

chmod 0775 index.cgi

to allow me to see it. It subsequently served up the CGI code which is a major no no. I want it to run the CGI script, but I don't know what I did wrong. If anyone has experience with this problem or know how to configure the Apache Server, let me know please!!!
Re-run the checksetup perl script to correct the permissions problem, and change the doc root back. I hope this helps...
 
  


Reply



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
Bugzilla abhijeetudas Linux - Software 0 01-13-2005 01:28 AM
Bugzilla Setup davidkaye Linux - Software 2 11-26-2004 11:08 AM
Cannot login to Bugzilla markpetit Linux - Software 1 06-14-2004 04:29 PM
bugzilla.conectiva.com caleb Conectiva 4 03-28-2003 03:01 PM
bugzilla help glock19 Linux - General 3 08-29-2001 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:03 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