Does anyone know whether (a) ModPerl is already part of Tiger?
If not, how big a hassle is it to install? Specifically, is
it something I could reasonably accomplish in an installation
script?
-r

Signature
email: rdm@cfcl.com; phone: +1 650-873-7841
http://www.cfcl.com - Canta Forda Computer Laboratory
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
Andrew Mace - 18 May 2005 18:03 GMT
> Does anyone know whether (a) ModPerl is already part of Tiger?
> If not, how big a hassle is it to install? Specifically, is
[quoted text clipped - 6 lines]
> http://www.cfcl.com - Canta Forda Computer Laboratory
> http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
I was happy to find that mod_perl is included in Tiger. Just
uncomment the two relevant LoadModule and AddModule lines in /etc/
httpd/httpd.conf.
Andrew
Rich Morin - 18 May 2005 18:38 GMT
>I was happy to find that mod_perl is included in Tiger.
>Just uncomment the two relevant LoadModule and AddModule lines
>in /etc/httpd/httpd.conf.
Thanks! Just to be clear, these look like the relevant lines:
#LoadModule perl_module libexec/httpd/libperl.so
#AddModule mod_perl.c
and I assume that I should force an apache restart, as well:
apachectl restart
-r

Signature
email: rdm@cfcl.com; phone: +1 650-873-7841
http://www.cfcl.com - Canta Forda Computer Laboratory
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
Sherm Pendley - 18 May 2005 20:06 GMT
> Thanks! Just to be clear, these look like the relevant lines:
>
[quoted text clipped - 4 lines]
>
> apachectl restart
You probably know this already, but just for the sake of the archives
- all this does is enable the module to load. You'll also need to
configure the handlers you need - for instance, to specify a /cgi-
registry directory that uses Apache::Registry:
Alias /cgi-registry/ /Library/WebServer/CGI-Registry/
<Location /cgi-registry>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader on
Options +ExecCGI
</Location>
That's good enough for a developer's desktop machine, but high-
traffic production servers usually run a separate instance of Apache
that's especially tuned for mod_perl. This instance runs on a
"high" (>1024) port; the "main" server on port 80 serves static
content directly, and acts as a proxy for requests to /cgi-registry,
forwarding them to the mod_perl server.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Chris Devers - 18 May 2005 19:38 GMT
> Does anyone know whether (a) ModPerl is already part of Tiger?
Yes. Just as it has been with every version of OSX.
And for once, the stock Perl is in line with the current stable release!
Unlike with Panther, where you had to do weird output buffering tricks
in httpd.conf to get mod_perl to work, everything works fine in Tiger.
(Though I've yet to try installing RT, that'll be the real test. I was
never able to get it to work right on Panther...)
...was there supposed to be a (b) in there somewhere?

Signature
Chris Devers