php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29903 sapi_apache2.c is not compatible
Submitted: 2004-08-30 23:12 UTC Modified: 2004-08-31 07:08 UTC
From: jakawan at jakawan dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.0.1 OS: Redhat 9
Private report: No CVE-ID: None
 [2004-08-30 23:12 UTC] jakawan at jakawan dot com
Description:
------------
Can somebody help please?
I'm really desperate now.
I have read the install.txt, support forum about 50 times. I recompiled back and forth about 10 times. Download the latest PHP from both PHP.net and http://snaps.php.net.

I still get the same error below:

httpd: module "/usr/src/build/274778-i386/BUILD/php-4.2.2/sapi/apache2filter/sapi_apache2.c" is not compatible with this version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.

Here is my Apache and PHP version:

[root@u15157708 etc]# apachectl -v
Server version: Apache/2.0.50
Server built: Aug 24 2004 16:21:47

[root@u15157708 etc]# php -v
PHP 5.0.2-dev (cli) (built: Aug 24 2004 10:40:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.2-dev, Copyright (c) 1998-2004 Zend Technologies

When I compile, I only use the basic switches:
./configure --prefix=/usr/local/apache2
then do
make & make install

for PHP, I follow the INSTALL document:
./configure --with-apxs2=/usr/local/apache2/bin/apxs
then 
make & make install...

-----------------------------
Here's what I have in the httpd.conf (partially)

LoadModule php5_module modules/libphp5.so
...

<VirtualHost \
xxx.xxx.xxx.xxx:80 \
>
DocumentRoot /home/httpd/vhosts/webmail
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
<Directory /home/httpd/vhosts/webmail/horde>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value safe_mode off
php_admin_value open_basedir "/home/httpd/vhosts/webmail:/etc/psa:/tmp"
php_admin_value include_path "/home/httpd/vhosts/webmail/horde/lib:/home/httpd/vhosts/webmail/horde/pe
ar:."
</IfModule>
</Directory>
</VirtualHost>

Everything went well during the compilation, but I cannot run apache anymore.

I searched in http://www.php.net/support.php and other php forums, I can't find anything related to this issue. I have also download the latest from http://snaps.php.net and recompile - still not working.

I know that there is something hanging on my server that I have missed.


Any great advice would be appriciated. I'm really desperate now. My server has been down for almost a week already.

Thanks in advance.

Jak


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-31 07:08 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

You are trying to load 4.2.2 module instead of your new, 5.0.1 module. Check your Apache config.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 03 03:01:29 2024 UTC