Women in Technology

Hear us Roar

  Apache Web-Serving with Mac OS X: Part 1
Subject:   Perl and CGI.pm
Date:   2001-12-12 09:58:55
From:   kenyatta
Response to: Perl and CGI.pm

Specifically for Perl? Basically how to configure it for Apache, including the popular Perl module CGI.pm.

I found to useful tutorials for building and configuring PHP/MySQL for Apache on Mac OS X on hotwired.com and www.stepwise.com or (www.darwinos.com).

I've noticed that some books are being release targeting web serving using the Unix underpinnings of Mac OSX.

Thanks in advance for any information

Full Threads Newest First

Showing messages 1 through 1 of 1.

  • Perl and CGI.pm
    2001-12-18 07:48:47  tmana [View]

    Are you asking about mod_perl? 'Regular' Perl (including the CGI module) doesn't need to be configured for Apache. Though Apache does need to be configured to allow cgi scripts.

    I don't remember the specifics off the top of my head but basically there's a SetHandler line in the Apache conf file (which I believe comes commented out...) to the effect of:

    SetHandler cgi-script cgi

    where 'cgi-script' tells Apache to handle anything with an extension of 'cgi' (and you can add other extensions such as 'pl') as a cgi program.

    There's a couple Apache configuration books out there - including O'Reilly's - that will explain it better than me.