G'day,
>I am trying to install mod perl on the Apple OS X Server platform.
>
>I can compile the code OK, both as static and as a DSO but when I
>try to restart the apache server, I get all sorts of errors.
I found that it was already compiled, but the needed lines in
httpd.conf were missing. Add the following two lines (at the end of
the appropriate lists):
LoadModule perl_module libexec/httpd/libperl.so
AddModule mod_perl.c
And then add some mod_per directives (I've used the <perl></perl> syntax):
<perl>
require "/etc/httpd/startup.pl"; # contains 'use' statements, etc.
$Location{'/perl-status'}->{SetHandler} = 'perl-script';
$Location{'/perl-status'}->{PerlHandler} = 'Apache::Status';
$Location{'/perl-status'}->{order} = 'deny,allow';
$Location{'/perl-status'}->{'deny from'} = 'all';
$Location{'/perl-status'}->{'allow from'} = '.your.domain.com';
$Files{'~ "\.pl$"'}->{SetHandler} = 'perl-script';
$Files{'~ "\.pl$"'}->{PerlHandler} = 'Apache::Registry';
$Files{'~ "\.pl$"'}->{Options} = 'ExecCGI';
</perl>
I'm now able to do all development/testing on my box. I was able to
install all needed modules via CPAN without any trouble.
This was one of the reasons I wanted this OS, so I'm very happy.
Charlie
--
+----------------------------------------------------------------------+
| Charlie Garrison [EMAIL PROTECTED] |
| Garrison Computer Services <http://www.garrison.com.au> |
| PO Box 141 |
| Windsor NSW 2756 Australia Ph: +61 2 4575-5247 |
+----------------------------------------------------------------------+