« macosxsig blog updated to Movable Type 4.1 | Main | an effective way to restart syslogd »

Compiling WebAuth for Leopard's Apache2

I want to say that we have WebAuth working on 10.5.2, but it's not. At least not yet.

At issue is the changes undertaken in web services between 10.4 and 10.5. They're quite substantial.

Tiger's web server was Apache 1.3, was 32-bit and either built for PowerPC or, later, to be "universal" to additionally run on Intel processors. Leopard's web server is a whole other beast. The default web server is now Apache 2.2, it's all 64-bit and it's built for four different processor families.

betenoire:~ nbfa$ which httpd
/usr/sbin/httpd
betenoire:~ nbfa$ file /usr/sbin/httpd
/usr/sbin/httpd: Mach-O universal binary with 4 architectures
/usr/sbin/httpd (for architecture ppc7400): Mach-O executable ppc
/usr/sbin/httpd (for architecture ppc64): Mach-O 64-bit executable ppc64
/usr/sbin/httpd (for architecture i386): Mach-O executable i386
/usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable x86_64

This will pose some challenges.

A lot of third party modules won't work, at least out-of-the-box.

httpd: Syntax error on line 489 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_webauth.so into server: dlopen(/usr/libexec/apache2/mod_webauth.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_webauth.so: mach-o, but wrong architecture

ColdFusion people know this already, as do the Cosign users. (Dave Pugh at Michigan has already dealt with this issue and posted his notes on the Cosign wiki.)

But I've had a heck of a time getting WebAuth to bend to my will. I'm excited that Apache 2.2 is the default web server, which means I can use Server Admin to administer sites (well, for what it's worth). Previously, admins had to use the version included in /opt/apache2 in Tiger, because of WebAuth's dependency on Apache 2. Still, I haven't gotten WebAuth to compile cleanly or to built under the architecture of my Xserve (ppc64).

Here are the ugly bits from the webauth-info list. Blech.

TrackBack

TrackBack URL for this entry:
http://www.stanford.edu/group/macosxsig/cgi-bin/mt/mt-tb.cgi/17

Comments (2)

vijoy:

Thanks for posting this Noah. I'll be interested if you find success in the near future as I'm hoping to move services from my Tiger/PPC Xserve to the Leopard/Intel Xserve.

-vijoy at stanford dot edu

Mac:

Yes I have this problem, But this good articles :) Thx you are my hero :)

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


About

This page contains a single entry from the blog posted on February 28, 2008 11:00 AM.

The previous post in this blog was macosxsig blog updated to Movable Type 4.1.

The next post in this blog is an effective way to restart syslogd.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Traffic analyzed by Google Analytics. Site powered by Movable Type 4.32-en