php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19753 problem starting Apache: libphp4.so: undefined symbol: ap_block_alarms
Submitted: 2002-10-04 06:02 UTC Modified: 2002-10-04 11:53 UTC
From: pixie at nervesane dot net Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.3 OS: Linux RedHat 7.1
Private report: No CVE-ID: None
 [2002-10-04 06:02 UTC] pixie at nervesane dot net
I'm in the process of upgrading to Apache 2.0.43 and PHP 
4.2.3

1. Apache installation [without supporting PHP] was 
succesfful.

2. PHP 4.2.3 was also successful, this is my configure:
--prefix=/usr/local 
--enable-module=so 
--with-mod_charset 
--enable-force-cgi-direct 
--enable-discard-path 
--with-xml=shared 
--enable-sockets 
--enable-memory-limit 
--with-sybase=/usr/local/freetds

I tried other configure options too.
Everything seems to work fine separate (ex. a simple php 
shell script works). 

THe problem comes when I try to start apache:
/usr/local/Apache/bin/apachectl start

I get this:

Syntax error on line 231 of 
/usr/local/Apache/conf/httpd.conf:
Cannot load /usr/local/Apache/lib/libphp4.so into server: 
/usr/local/Apache/lib/libphp4.so: undefined symbol: 
ap_block_alarms

Line 231 is:
LoadModule php4_module        lib/libphp4.so

I did a Google search and other people are having the same 
problem. No solutions were provided anywhere.

Thanks.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-04 06:10 UTC] mfischer@php.net
For the latest Apache you also need the latest PHP from snaps.php.net
 [2002-10-04 06:40 UTC] pixie at nervesane dot net
I tried the latest version available  php4-200210040300 
and I still get the same error.
 [2002-10-04 06:43 UTC] sander@php.net
Why didn't you configure PHP with --with-apxs2=/path/to/apxs ?
You seem to compile PHP as CGI, and then you can't use the LoadModule line. Please compile PHP with --with-apxs2 and reopen if the problem still persists.
 [2002-10-04 11:53 UTC] pixie at nervesane dot net
This is the latest confing I tried:
--prefix=/usr/local 
--with--apx2=/usr/local/Apache/bin/apxs 
--enable-module=so 
--with-mod_charset 
--enable-sockets 
--enable-memory-limit 
--with-sybase=/usr/local/freetds 

And I still get this:

Syntax error on line 259 of 
/usr/local/Apache/conf/httpd.conf:
Cannot load /usr/local/Apache/modules/libphp4.so into 
server: /usr/local/Apache/modules/libphp4.so: undefined 
symbol: ap_block_alarms
 [2002-11-10 23:06 UTC] Dariush at sqlporter dot com
I'm having the same problem.

Have apache2 installed,
Installed mod_php4 on freebsd using the ports collections.
and exact same error as the user above
 [2004-04-14 13:31 UTC] fox at o2 dot pl
got the same problem, but now its fix. The solution is easy, you probably configuring sources wrong.

./configure --with-apxs2=/path/to/apache2/bin/apxs --with-mysql  

try this
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC