in reply to How do I get my webserver to execute Perl CGI scripts?

If you use Windows look at Setting up Perl/CGI with Windows, if Linux just check out the apache documentation

Update: Fixed documentation link

"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce

  • Comment on Re: How do I get my webserver to execute Perl CGI scripts?

Replies are listed 'Best First'.
Re^2: How do I get my webserver to execute Perl CGI scripts?
by crash22 (Acolyte) on Sep 02, 2004 at 17:57 UTC
    I did everything that was suggested here and in referenced entries. I compiled the code and it's syntax was fine. I uploaded a test.cgi to check if perl was running and it worked without problem. I'm running on Windows with an Apache server if that makes a difference.
      Been there, got the teeshirt. It's like trying to stir your tea with a barge pole.
      If it's any help, this is what I did the last time I was there.

      At the begining of the script, send a message to the browser and exit.

      If that's ok, move the message down a bit and try again!

      Or

      Add a bit more code to the test.cgi.

      It that's ok, add a bit more!

      Have a look at the docs again and use CGI::Carp in test.cgi. Send plenty of output to the browser.

      Then (and only then!) post a short script that doesn't work here.

      This has saved my sanity many times! Best of luck.

        okay, i tried something really easy i found to check if perl was working correctly. i have an html that has
        <html> <head> <title>Tell Me Your Name</title> </head> <body> <form action="i:/oracle/isuites/apache/apache/cgi-bin/name.cgi"> <p>Enter your name:<input name="name" /></p> <p><input type="submit" value="Submit Me!"></p> </form> </body> </html>
        and the cgi has
        #!I:/ORACLE/iSuites/Apache/perl/5.00503/bin/MSWin32-x86/perl -w use strict; use CGI qw(:standard); print header; print start_html('Hello'); print "<h1>Hello, ", param('name'), "!</h1>\n"; print end_html;
        I is the correct drive for perl....I compiled the cgi and it worked fine. when i open the html and click submit it brings the perl to the browser.