#29903 [Opn->Bgs]: sapi_apache2.c is not compatible
| From: | tony2001@php.net | Date: | Tue, 31 Aug 2004 05:08:14 +0000 |
| Subject: | #29903 [Opn->Bgs]: sapi_apache2.c is not compatible | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65488@lists.php.net to get a copy of this message | ||
ID: 29903
Updated by: tony2001@php.net
Reported By: jakawan at jakawan dot com
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: Redhat 9
PHP Version: 5.0.1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-08-30 23:12:08] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29903&edit=1