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
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