At 8:48 PM -0400 10/22/01, John Siracusa wrote: >I've got a mod_perl apache binary running on 10.1 (following Ray >Zimmerman's instructions posted to this list in early October). The >problem is that I cannot load Apache::Cookie or Apache::Registry >(part of the "libapreq" Perl module distribution) using that >mod_perl apache.
I can run Apache::Registry and Apache::Cookie on 10.1 with no problems. The problem you're having is that Ray's instructions only compiled a specific list of apache modules. Apache::Cookie needs modules that Ray did not install. I thought Apache::Registry could work with an apache httpd that only has mod_perl installed but I may be wrong. Here's what I did to get things to work with the latest version of apache (1.3.22 get it from your favorite Apache mirror) but I'm sure it would work with 1.3.20 if you want to stay closer to Apple's standard OS X install. #This will configure mod_perl and install it and toss a libperl.a over to the #apache src. cd mod_perl-1.26 perl Makefile.PL APACHE_SRC=../apache/src-1.3.22 \ DO_HTTPD=1 \ USE_APACI=1 \ PREP_HTTPD=1 \ EVERYTHING=1\ make make install cd .. #This will configure and make an apache with all of the modules the Apache #folks think are safe for MacOS X. I haven't run into any trouble with them. #It also configures most of those modules to be DSO modules. They'll end up #living in /usr/libexec/httpd. Mod_perl is still statically compiled into #the httpd but that's because I haven't had the time to figure out how to #get it to compile as a DSO. cd apache-1.3.22 ./configure \ --enable-module=most \ --enable-shared=max \ --activate-module=src/modules/perl/libperl.a make Before you install this I suggest you move aside the httpd.conf you've been using. If you're using one that was created by Ray's build it won't have all the LoadModule directives that are needed to keep this httpd happy. If you're using the one that came with 10.1 the httpd will complain that it can't load mod_hfs. I have not been able to get mod_hfs to work with any of my systems but then all my boxes have OS X installed on UFS disks so it's not an issue for me. If you're running your OS X on an HFS formatted disk you'll want mod_hfs installed because it plugs up a security hole that happens when apache runs on HFS. Scott Anguish over at stepwise.com seems to have figured it out but I have no clue what he has that's different from my stuff. http://www.stepwise.com/Articles/Workbench/2001-10-11.01.html HS -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GPA d-- s:++ a C++ ULS+ P+++ L++ E+ W++$ N+ o? K w-- O M+ V PS+ PE+(--) Y+ PGP++ t 5+ X+ R+ tv- b++ DI++ D+ G e++ h--- r+++ y+ ------END GEEK CODE BLOCK------
