LinuxQuestions.org
Help answer threads with 0 replies.
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 03-16-2007, 10:36 AM   #1
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Rep: Reputation: 30
how to enable mod_cgi


I am installing Bugzilla on a Fedora Core 6 machine and I am a noob when it comes to apache2 configuration. One of the steps according to the Bugzilla QUICSTART guide is as follows:

Configure Apache (or install and configure, if you don't have it up
yet) to point to the Bugzilla directory. You should enable and
activate mod_cgi
, and add the configuration entries

Options +ExecCGI
AllowOverride Limit
DirectoryIndex index.cgi

to your Bugzilla <Directory> block. You may also need

AddHandler cgi-script .cgi

if you don't have that in your Apache configuration file yet.

I am also a noob when it comes to Web scripting and I not familiar with the mod_cgi module. How do I find out if mod_cgi is enabled and if not, how do I enable it? Here is my Bugzilla Directory block withing the http.conf file:

Code:
<Directory "/usr/local/apache2/htdocs/bugzilla">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    #AllowOverride None
    #
    #Changed 3/12/07 for Bugzila installation, see QUICKSTART guide in Bugzilla  directory
     AllowOverride Limit

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>
I found a mod_cgid.so in my /etc/httpd/modules directory. I am not sure what steps I need to take to load and activate it.

Any help would be appreciated.

Last edited by tekmann33; 03-16-2007 at 11:12 AM.
 
Old 03-16-2007, 01:32 PM   #2
derzok
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Debian, Slackware
Posts: 58

Rep: Reputation: 15
It's pretty straight foward, actually. Just insert:

Options +ExecCGI
AllowOverride Limit
DirectoryIndex index.cgi

between the <Directory> tags. Place the addhandler line in your apache config next to all the other AddHandler statements (if it's not already there).

If that doesn't help, read this: http://httpd.apache.org/docs/2.0/howto/cgi.html Scroll down to where it says "Explicitly using Options to permit CGI execution" about a page and a half down.
 
  


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
parrport enable mdk Linux - Newbie 1 08-23-2004 03:22 AM
Can't enable 3D yzrider210 Linux - Hardware 24 12-29-2003 11:09 PM
How to enable DMA? Piero Linux - Hardware 14 07-21-2003 06:05 AM
enable xinetd rlasse Linux - Newbie 4 07-17-2003 01:08 PM
How do you enable 3d acceleration ultravox Linux - Hardware 2 04-05-2003 06:17 PM

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

All times are GMT -5. The time now is 02:44 PM.

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