Re: [users@httpd] Problem loading PHP module in Apache 2.1.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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/libphp4.so

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/libphp4.so into
> > > server: Library not loaded: /Library/Apache2/lib/libaprutil-0.0.dylib
> > > \n  Referenced from: /usr/local/apache2/modules/libphp4.so\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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux