httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: [users@httpd] Problem loading PHP module in Apache 2.1.8
Date Thu, 06 Oct 2005 19:22:00 GMT

> 1. Modules need to be loaded in a specific order.

Wrong in general.

> 2. Go a bit further down the file to the AddModule block of lines

The what?

> I think I'm right in saying that every LoadModule command should have a
> corresponding AddModule command

Nope.  You appear to be basing your reply in documents for a server that's
been obsolete for the past three and a half years.

> > Just a possiblity, but are you trying to load the Apache 1 module into
> > Apache 2?

Unlikely that an apache1 module would try to load libaprutil!

> > > # PHP4 configuration
> > > LoadModule php4_module modules/

OK so far.

> > > AddType application/x-httpd-php .php .phtml
> > > AddType application/x-httpd-php-source .phps

*sigh*.  That'll be a ten+ year old tutorial you followed.
Or someone parroting one.

Please read the documentation for AddType.  And for AddHandler,
which is what you meant.

> > > httpd: Syntax error on line 444 of /usr/local/apache2/conf/
> > > httpd.conf: Cannot load /usr/local/apache2/modules/ into
> > > server: Library not loaded: /Library/Apache2/lib/libaprutil-0.0.dylib
> > > \n  Referenced from: /usr/local/apache2/modules/\n  Reason:
> > > image not found

Now that's different: it looks like a build error.  My guess is that your 
libphp4 is compiled for Apache 2.0 and APR 0.9.  If you want to run it
with httpd 2.1/APR 1.x, you'll need to compile it for that.

Nick Kew

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message