Front page | perl.macosx |
Postings from September 2001
Re: mod_perl
Thread Previous
|
Thread Next
From:
Ed Silva
Date:
September 25, 2001 08:03
Subject:
Re: mod_perl
Message ID:
5965CF28-B1C6-11D5-8782-0030657E606A@litmusgreen.com
It's installed by default but needs to be set up.
I have this in my httpd.conf:
<IfModule mod_perl.c>
PerlRequire /etc/httpd/startup.pl
PerlFreshRestart On
PerlTaintCheck On
Alias /perl/ /Library/WebServer/Perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
# allow arbitrary *.perl files to be scattered throughout the site.
<Files *.perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader Off
Options +ExecCGI
</Files>
<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
order deny,allow
deny from all
Allow from .septicus.com 192.168 127.0.0
</Location>
</IfModule>
with startup.pl like this:
#!/usr/bin/perl -wT
use strict;
# Extend @INC if needed
#use lib qw(/dir/foo /dir/bar);
# Make sure we are in a sane environment.
$ENV{MOD_PERL} or die "not running under mod_perl!";
# For things in the "/perl" URL
use Apache::Registry;
# Load Perl modules of your choice here
# This code is interpreted *once* when the server starts
use LWP::UserAgent ();
use Apache::DBI ();
use DBI ();
# Tell me more about warnings
use Carp ();
$SIG{__WARN__} = \&Carp::cluck;
# Load CGI.pm and call its compile() method to precompile
# (but not to import) its autoloaded methods.
use CGI ();
CGI->compile(':all');
1;
On Tuesday, September 25, 2001, at 07:44 AM, Steve Torrence wrote:
> Has anyone here got mod_perl installed on OS X or OS X Server ?
>
> Steve
>
>
Cheers,
--Ed
Thread Previous
|
Thread Next