Re: OT: secure mod_perl enabled apache on MacOSX 10.1

2001-10-11 Thread Ken Williams

Joe,

The problem is that Apple has made some strange changes to the way shared 
libraries are linked.  I'm not very conversant in the details, but there 
are some people on the [EMAIL PROTECTED] list that have discussed it.

Unfortunately, Apache::Request and Apache::Cookie don't define any tests, 
so a user can install them and think they're perfectly fine, but they 
fail pretty spectacularly when you try to use them. =(


Joe Schaefer [EMAIL PROTECTED] wrote:

 John Siracusa [EMAIL PROTECTED] writes:

 P.S.- d) Apache::Request and Apache::Cookie still can't be
 loaded simultaneously! :(

 Why not?  Does it work OK with a statically-linked mod_perl?

 --
 Joe Schaefer






Re: OT: secure mod_perl enabled apache on MacOSX 10.1

2001-10-04 Thread Joe Schaefer

John Siracusa [EMAIL PROTECTED] writes:

 P.S.- d) Apache::Request and Apache::Cookie still can't be 
 loaded simultaneously! :(

Why not?  Does it work OK with a statically-linked mod_perl?

-- 
Joe Schaefer




Re: OT: secure mod_perl enabled apache on MacOSX 10.1

2001-10-04 Thread John Siracusa

On 10/4/01 9:26 AM, Joe Schaefer wrote:
 John Siracusa [EMAIL PROTECTED] writes:
 P.S.- d) Apache::Request and Apache::Cookie still can't be
 loaded simultaneously! :(
 
 Why not?

Run-time symbol conflict.

 Does it work OK with a statically-linked mod_perl?

I've never heard of anyone getting it to work correctly in any version of
Mac OS X with any sort of apache or Perl installation.

(if you're out there, tell us how! :)
-John




Re: OT: secure mod_perl enabled apache on MacOSX 10.1

2001-10-03 Thread Ray Zimmerman

At 11:24 AM -0700 10/3/01, Wilfredo Sanchez wrote:
On Wednesday, October 3, 2001, at 11:10  AM, Ray Zimmerman wrote:

I've been able to build a mod_perl enabled apache (not DSO) for Mac 
OS X 10.1 and it seems to work fine. Now I'd like to include the 
apple_hfs_module or hfs_apple_module that Apple included as a DSO 
in the standard install to take care of some security issues 
related to the case-insensitivity of the HFS+ file system.

   /usr/libexec/httpd/libperl.so ships with 10.1; there's usually no 
need to build your own.  Just uncomment the LoadModule/AddModule 
lines referencing perl in /etc/httpd/httpd.conf.

Oh, I didn't realize that. But anyway, I've always stayed away from 
mod_perl as a DSO since I thought there were problems with it ... 
have they (don't even know what they were) all been fixed?

   For what it's worth, I've heard that mod_hfs_apple is broken in 
10.1, but I haven't verified that.

According to ...

http://www.stepwise.com/Articles/Technical/2001-09-29-01.html

... it's because of a name change. The article gives a fix.

-- 
  Ray Zimmerman  / e-mail: [EMAIL PROTECTED] / 428-B Phillips Hall
   Sr Research  /   phone: (607) 255-9645  /  Cornell University
Associate  /  FAX: (815) 377-3932 /   Ithaca, NY  14853



Re: OT: secure mod_perl enabled apache on MacOSX 10.1

2001-10-03 Thread Ray Zimmerman

At 2:23 PM -0400 10/3/01, John Siracusa wrote:
On Wednesday, October 3, 2001, at 02:10  PM, Ray Zimmerman wrote:
I've been able to build a mod_perl enabled apache (not DSO) for Mac 
OS X 10.1 and it seems to work fine.

Would it be too much trouble for you to post a complete, 
step-by-step account of exactly what you did you accomplish this? :)

OK, this is with apache_1.3.20, perl-5.6.1 and mod_perl-1.26.

(1) Unpack apache and mod_perl into the same directory, e.g.

   cd ~
   tar zxvf apache_1.3.20.tar.gz
   tar zxvf mod_perl-1.26.tar.gz

(2) Run configure for apache.

   cd ~/apache_1.3.20
   ./configure

(3) Make and install mod_perl.

   cd ~/mod_perl-1.26
   perl Makefile.PL APACHE_SRC=../apache_1.3.20/src \
   DO_HTTPD=1 \
   USE_APACI=1 \
   PREP_HTTPD=1 \
   EVERYTHING=1
   make
   sudo make install

(4) Reconfigure and make apache.

   cd ~/apache_1.3.20
   ./configure \
   --enable-module=info \
   --enable-module=status \
   --enable-module=proxy \
   --activate-module=src/modules/perl/libperl.a
   make

(5) Test mod_perl.
   cd ~/mod_perl-1.26
   make test

(6) Install apache.

   cd ~/apache_1.3.20
   sudo make install

-- 
  Ray Zimmerman  / e-mail: [EMAIL PROTECTED] / 428-B Phillips Hall
   Sr Research  /   phone: (607) 255-9645  /  Cornell University
Associate  /  FAX: (815) 377-3932 /   Ithaca, NY  14853



Re: OT: secure mod_perl enabled apache on MacOSX 10.1

2001-10-03 Thread John Siracusa

On Wednesday, October 3, 2001, at 05:03  PM, Ray Zimmerman wrote:
 At 2:23 PM -0400 10/3/01, John Siracusa wrote:
 On Wednesday, October 3, 2001, at 02:10  PM, Ray Zimmerman wrote:
 I've been able to build a mod_perl enabled apache (not DSO) 
 for Mac OS X 10.1 and it seems to work fine.

 Would it be too much trouble for you to post a complete, 
 step-by-step account of exactly what you did you accomplish 
 this? :)

 OK, this is with apache_1.3.20, perl-5.6.1 and mod_perl-1.26.

How did you build and install Perl 5.6.1?

-John




OT: secure mod_perl enabled apache on MacOSX 10.1

2001-10-03 Thread Ray Zimmerman

I suppose this is slightly off-topic for both lists I'm posting to, 
but I don't know of a better place to ask ...

I've been able to build a mod_perl enabled apache (not DSO) for Mac 
OS X 10.1 and it seems to work fine. Now I'd like to include the 
apple_hfs_module or hfs_apple_module that Apple included as a DSO in 
the standard install to take care of some security issues related to 
the case-insensitivity of the HFS+ file system.

Can anybody tell me how to do this? I've never used DSO's before. Are 
there other things Apple has included beyond the standard apache 
distribution?

Thanks,

-- 
  Ray Zimmerman  / e-mail: [EMAIL PROTECTED] / 428-B Phillips Hall
   Sr Research  /   phone: (607) 255-9645  /  Cornell University
Associate  /  FAX: (815) 377-3932 /   Ithaca, NY  14853



Re: OT: secure mod_perl enabled apache on MacOSX 10.1

2001-10-03 Thread John Siracusa

On Wednesday, October 3, 2001, at 02:10  PM, Ray Zimmerman wrote:
 I've been able to build a mod_perl enabled apache (not DSO) for 
 Mac OS X 10.1 and it seems to work fine.

Would it be too much trouble for you to post a complete, 
step-by-step account of exactly what you did you accomplish 
this? :)

-John




Re: OT: secure mod_perl enabled apache on MacOSX 10.1

2001-10-03 Thread Wilfredo Sanchez


On Wednesday, October 3, 2001, at 11:10  AM, Ray Zimmerman wrote:

 I've been able to build a mod_perl enabled apache (not DSO) for Mac OS 
 X 10.1 and it seems to work fine. Now I'd like to include the 
 apple_hfs_module or hfs_apple_module that Apple included as a DSO in 
 the standard install to take care of some security issues related to 
 the case-insensitivity of the HFS+ file system.

   /usr/libexec/httpd/libperl.so ships with 10.1; there's usually no need 
to build your own.  Just uncomment the LoadModule/AddModule lines 
referencing perl in /etc/httpd/httpd.conf.

   For what it's worth, I've heard that mod_hfs_apple is broken in 10.1, 
but I haven't verified that.

-Fred