Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
InvSqrt
Nov 30, 2007
I want to start using my Perl knowledge for web development.

What's the best way to do this using Apache?
And what special stuff do I need to do in Perl to get this to work? I remember trying this once before and couldn't even get output to work.

Adbot
ADBOT LOVES YOU

InvSqrt
Nov 30, 2007
Thanks guys.
For the record, here's what I did to get it working:

1. apt-get install libapache2-mod-perl2
2. Found some example config and added it
code:
<Files ~ "\.pl$">
  SetHandler perl-script
  PerlResponseHandler ModPerl::PerlRun
  Options +ExecCGI
  PerlSendHeader On
</Files>
3. Created an index.pl containing this:
code:
#!/usr/bin/perl
use CGI;
print "Content-type: text/html\n\n";
print "<h1>Hello World!\n";

  • Locked thread