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

I am using Apache server on my computer because my understanding was that putting a web server on my computer would allow me to view perl scripts that are linked to HTML. How do I make this happen, I just get a page that spits the script back at me.

janitored by ybiC: Retitle from less-than-descriptive "Web Server"

Replies are listed 'Best First'.
Re: (OT) Configure Apache for CGI
by TStanley (Canon) on Feb 16, 2004 at 17:46 UTC
    The httpd.conf file for the Apache webserver is where you configure it to run CGI scripts. You would need to verify that the following is present:
    <Directory /> Options ExecCGI # Permits execution of CGI scripts </Directory>
    The httpd.conf file can be found in the conf sub-directory of where you installed Apache.

    TStanley
    --------
    The only thing necessary for the triumph of evil is for good men to do nothing -- Edmund Burke
      Cool :). Thanks :)! I knew that somewhere I had not configured something, but I'm new to this and wasn't sure what I was doing wrong :), because I knew that perl was working and installed properly :).
Re: (OT) Configure Apache for CGI
by hardburn (Abbot) on Feb 16, 2004 at 17:37 UTC

    Your Apache configuration needs to know how to execute CGIs. Please see the mod_cgi documentation.

    ----
    : () { :|:& };:

    Note: All code is untested, unless otherwise stated

Re: (OT) Configure Apache for CGI
by Abigail-II (Bishop) on Feb 16, 2004 at 17:36 UTC
    You would need to configure your webserver correctly. Please read the documentation on the Apache website, and the comments in the httpd.conf file.

    It's not a Perl issue.

    Abigail