You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Uzo Madujibeya <uz...@gmail.com> on 2005/10/06 19:16:33 UTC
[users@httpd] Problem loading PHP module in Apache 2.1.8
Hi,
I have just upgraded to Apache 2.1.8 on OS X 10.4.2 and am having a
problem trying to load php. At the bottom of my httpd.conf file I
specify the following:
# PHP4 configuration
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
and the libphp4.so module is located as specified, in the modules
folder, but when i try to start or shutdown Apache I get the
following error message:
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
What is the issue here?
Uzo
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Problem loading PHP module in Apache 2.1.8
Posted by Nick Kew <ni...@webthing.com>.
> 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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Problem loading PHP module in Apache 2.1.8
Posted by Joshua Slive <js...@gmail.com>.
On 10/6/05, Richard Prangnell <ri...@ntlworld.com> wrote:
> I think I'm right in saying that every LoadModule command should have a
> corresponding AddModule command
This is not true in version 2. The AddModule directive no longer
exists, and most modules do not need to be loaded in a specific order.
> > > I have just upgraded to Apache 2.1.8 on OS X 10.4.2 and am having a
> > > problem trying to load php. At the bottom of my httpd.conf file I
> > > specify the following:
> > > 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
This looks like php is looking for aprutil version 0.9, whereas apache
2.1 uses aprutil version 1.something. The php people are probably
going to need to adapt their build process a little to work with 2.1.
I don't know the details, however.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Problem loading PHP module in Apache 2.1.8
Posted by Richard Prangnell <ri...@ntlworld.com>.
Hi Uzo
Try this:
1. Modules need to be loaded in a specific order. Delete the LoadModule line
you entered, go to the block of LoadModule lines much higher up in the
httpd.conf file, find your line and uncomment it. If it is not there, just
add your line immediately after the last line in the LoadModule block.
2. Go a bit further down the file to the AddModule block of lines and
uncomment the appropriate line here as well. If it is not there, just add
your line immediately after the last line in the AddModule block.
I think I'm right in saying that every LoadModule command should have a
corresponding AddModule command
-Richard Prangnell
www.webnetwizard.co.uk
----- Original Message -----
From: "Chris" <li...@leftbrained.org>
To: <us...@httpd.apache.org>
Sent: Thursday, October 06, 2005 6:37 PM
Subject: Re: [users@httpd] Problem loading PHP module in Apache 2.1.8
> Just a possiblity, but are you trying to load the Apache 1 module into
> Apache 2?
>
> I know it won't work, and I seem to recal the errors one gets being
> similar to what you're describing.
>
> Chris
>
> Uzo Madujibeya wrote:
>
> > Hi,
> > I have just upgraded to Apache 2.1.8 on OS X 10.4.2 and am having a
> > problem trying to load php. At the bottom of my httpd.conf file I
> > specify the following:
> >
> > # PHP4 configuration
> > LoadModule php4_module modules/libphp4.so
> > AddType application/x-httpd-php .php .phtml
> > AddType application/x-httpd-php-source .phps
> >
> > and the libphp4.so module is located as specified, in the modules
> > folder, but when i try to start or shutdown Apache I get the
> > following error message:
> >
> >
> > 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
> >
> >
> > What is the issue here?
> >
> > Uzo
> >
> > ---------------------------------------------------------------------
> > 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@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Problem loading PHP module in Apache 2.1.8
Posted by Joshua Kogut <jm...@gmail.com>.
Run it as CGI, that should fix the problem.
On 10/6/05, Uzo Madujibeya <uz...@gmail.com> wrote:
>
> Hi Guys,many thanks for all you input on this issue.
>
> regards
>
> Uzo
>
> On 6 Oct 2005, at 18:37, Chris wrote:
>
> Just a possiblity, but are you trying to load the Apache 1 module into
> Apache 2?
>
>
> I know it won't work, and I seem to recal the errors one gets being
> similar to what you're describing.
>
>
>
--
|| jmkogut ||
email: jmkogut@gmail.com
Re: [users@httpd] Problem loading PHP module in Apache 2.1.8
Posted by Uzo Madujibeya <uz...@gmail.com>.
Hi Guys,
many thanks for all you input on this issue.
regards
Uzo
On 6 Oct 2005, at 18:37, Chris wrote:
> Just a possiblity, but are you trying to load the Apache 1 module
> into Apache 2?
>
> I know it won't work, and I seem to recal the errors one gets being
> similar to what you're describing.
Re: [users@httpd] Problem loading PHP module in Apache 2.1.8
Posted by Chris <li...@leftbrained.org>.
Just a possiblity, but are you trying to load the Apache 1 module into
Apache 2?
I know it won't work, and I seem to recal the errors one gets being
similar to what you're describing.
Chris
Uzo Madujibeya wrote:
> Hi,
> I have just upgraded to Apache 2.1.8 on OS X 10.4.2 and am having a
> problem trying to load php. At the bottom of my httpd.conf file I
> specify the following:
>
> # PHP4 configuration
> LoadModule php4_module modules/libphp4.so
> AddType application/x-httpd-php .php .phtml
> AddType application/x-httpd-php-source .phps
>
> and the libphp4.so module is located as specified, in the modules
> folder, but when i try to start or shutdown Apache I get the
> following error message:
>
>
> 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
>
>
> What is the issue here?
>
> Uzo
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org