Click to See Complete Forum and Search --> : Apache 1.3.26 / PHP 4.2.2 module error


rstasek
08-30-2002, 01:41 PM
I am trying to install PHP 4.2.2 with an existing installation of Apache 1.3.26. I know I should have done a dynamic installation with apxs, but I started down the path of a static installation. I have read EVERY piece of documentation I can find but can't find a reference to this error:

With the following line in my httpd.conf file:
AddModule modules/php4/libhph4.a

I get the following error from apachectl start:
Syntax error on line 275 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'modules/php4/libphp4.a': not in list of loaded modules

I used the following config line:
./configure --prefix=/usr/local/apache \
--activate-module=src/modules/php4/lilbphp4.a
and it worked with no errors that I could see.

At this point I'd be willing to start over with a dynamic installation if someone would just tell me how to get mod_so.c installed.

jerdo
08-30-2002, 03:16 PM
Try ditching the addmodule line and just use loadmodule

rstasek
08-30-2002, 04:30 PM
Thanks so much, I tried:

LoadModule php4_module /usr/local/apache/libexec/libphp4.so

which I saw somewhere, but httpd won't start because that file doesn't exist. Is there someplace I can find that file, or another LoadModule statement I should be using?

malbera
08-30-2002, 05:03 PM
did you actualy see that libphp is not in /usr/local/apache/libexec , or this was apache's message?
if the file exists, try not to use full-path in loadmodule
if it doesn't exists, it means php didn't compile succesfuly

hope that helps

rstasek
08-30-2002, 06:46 PM
Thanks to you both for suggestions. I didn't have any success, so I am now switching to try a dynamic installation, which is producing completely different errors. I'm going to open a new thread for clarity.

bernouli
08-31-2002, 05:15 AM
here is the problem

./configure --prefix=/usr/local/apache \
--activate-module=src/modules/php4/lilbphp4.a

did you forge the slash in front of the src?