Chaotic Jarod has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I was recently assigned my term project for my perl programming course. it involves tying html and mysql together to create a form that passes data to the database. My problem is with apache I believe but it might be with the code. Whenever I attempt to use my cgi, the browser prompts to download the .cgi. I have searched far and wide for the answer to my problem and have not found a solution. Has anyone encountered this problem before?

Replies are listed 'Best First'.
Re: Apache + mysql + Perl
by NetWallah (Canon) on Jul 17, 2013 at 00:27 UTC
    This is a very common problem - apache needs to be configured to understand CGI, and call the correct interpreter.

    Please do a web search for "apache cgi shown in browser" to review all symptoms and solutions.

                 My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.

      I've scoured all of those search results already, I've spent a good 4 hours trying to fix this, I tried fresh install of apache, I tried adding the "addHandler" line to httpd.conf, I've tried a large chunk of those options and have not found a fix to my problem.

        You did remember to restart apache, right?

        ~Thomas~ 
        "Excuse me for butting in, but I'm interrupt-driven..."