Click to See Complete Forum and Search --> : phplib4.so errors after installing PHP on Apache


chrisw
12-13-2002, 08:46 PM
After installing PHP, Apache consistently reports:

Syntax error on line 232 of /usr/local/apache2-0-43/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server:
/usr/lib/apache/libphp4.so: undefined symbol: ap_block_alarms

I have tried this a dozen different ways and will soon lose my mind. Do you have any ideas?

Thanks for your help,
Chris
---------------------------------------

Environment
RedHat Linux 7.3 i386
Apache Version 2.0.43
PHP Version 4.2.3

Install Summary
1. I unpacked Apache tar ball to /usr/local/apache2-0-43
2. ./configure \
--prefix=/usr/local/apache2-0-43 \
--enable-shared=max \
--enable-module=so \
--enable-module=ssl \
--enable-rule=SHARED_CORE \
--with-apxs \
--with-zlib
3. make
4. make install
5. Edited httpd.conf to include:
ServerName govt-linux:80
6. /usr/local/apache2-0-43/bin/apachectl start (runs without error - yeah!)

So far so good!

7. I unpacked php tar ball to /usr/local/php4-2-3
8. ./configure \
--prefix=/usr/local/php4-2-3 \
--with-apxs2=/usr/local/apache2-0-43/bin/apxs
9. make
10. make install
11. Edited httpd.conf to include
AddType application/x-httpd-php .php
LoadModule php4_module /usr/lib/apache/libphp4.so
I confirmed that libphp4.so really is at usr/lib/apache/libphp4.so

12. cp php.lib-dist /usr/local/lib/php.ini
13. /usr/local/apache2-0-43/bin/apachectl start

Here I consistently receive the error message:

Syntax error on line 232 of /usr/local/apache2-0-43/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server:
/usr/lib/apache/libphp4.so: undefined symbol: ap_block_alarms

comminot
12-22-2002, 03:19 AM
I encountered the same kind of problems, thus with a slightly different configuration. Have you solved your problem ?

In fact I don't have the solution, but if you have it, i would be really pleased.

My problem is described on page

http://www.phpbuilder.com/board/showthread.php?s=&threadid=10221828

Pascal

Robert Byrne
12-23-2002, 10:09 AM
Did apache build a modules directory? I ask because that is where my libphp4.so was located.

Try adding "--with-apache2 \" to your PHP build.

I'm just throwing out a guess here. It took me a week of research and frustration to get Apache2.0.43 and PHP4.3.0RC2 to work together.

Good luck