Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to install bugzilla 4 on ubuntu 11.04

I've added the following to my httpd.conf

<Directory “/var/www/dev.spincentre/bugzilla”>
   AddHandler cgi-script .cgi
   Options +Indexes +ExecCGI
   DirectoryIndex index.cgi
   AllowOverride Limit
</Directory>

But when I go to the URL, apache shows the text of index.cgi instead of executing the script. Any idea how to fix it?

share|improve this question

1 Answer 1

Did you load the mod_cgi module? You can see if the directory /etc/apache2/mods-enabled/ has a symlink cgi.load. If there is no such symlink, you can create it by running

sudo a2enmod cgi

and then restart Apache:

sudo service apache2 restart

You can run man a2enmod to see what a2enmod does.

share|improve this answer
    
I had similar issue on Ubuntu 14.04 in a process of migration from old servers. I never thought cgi would have been disabled by default which is not with old server. This fixed it!. Plz recommend them the same at stackoverflow.com/questions/15199198/…. Thank you! –  user3215 Jun 3 at 8:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.