LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to enable mod_cgi (https://www.linuxquestions.org/questions/linux-software-2/how-to-enable-mod_cgi-538035/)

tekmann33 03-16-2007 10:36 AM

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.

derzok 03-16-2007 01:32 PM

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.


All times are GMT -5. The time now is 04:07 PM.