php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30872 SAPI Problem
Submitted: 2004-11-23 14:22 UTC Modified: 2004-11-23 14:58 UTC
From: HellDesk at bigfoot dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.9 OS: Solaris 8
Private report: No CVE-ID: None
 [2004-11-23 14:22 UTC] HellDesk at bigfoot dot com
Description:
------------
When compiling php 4.3.9 against apache 2.0.53 an SAPI issue uncovers itself, namely that there appears to be changes to the SAPI in 2.0.53 whereby PHP 4.3.9 will not work with it,  the syntax error trying to run a module that was built for 2.0.52 with 2.0.53 gives this.

httpd: Syntax error on line 151 of /usr/local/apache2/conf/httpd.conf: Module "/usr/local/php-4.3.9/sapi/apache2handler/sapi_apache2.c" is not compatible with this version of Apache (found 20020903, need 20040425). Please contact the vendor for the correct version.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-23 14:28 UTC] tony2001@php.net
Correct me if I'm wrong: you're trying to use with 2.0.53 PHP module that was compiled for 2.0.52 ?
Why do you expect it to work then?
 [2004-11-23 14:29 UTC] derick@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.

Just recompile PHP.
 [2004-11-23 14:32 UTC] HellDesk at bigfoot dot com
It's a shared module, should load straight in, has done in the past with Apache 2.0.50 and 2.0.51, although when installing 2.0.52 we recompiled the php module to add some functionality.

I have recompiled the module however it refuses to compile against apache 2.0.53.
 [2004-11-23 14:51 UTC] derick@php.net
Provide the error messages then... we can't guess!

Derick
 [2004-11-23 14:56 UTC] HellDesk at bigfoot dot com
I have managed to resolve this problem myself.  It turns out that they build for apache 2.0.53 is a little screwy and doesn't copy some of the include files across namely some of the apr include files, which when php goes looking for them causes it to error.

I copied all the include files from apr and apr-util to the apache2 include directory and php compiled against it. 

Thanks for your time.
 [2004-11-23 14:58 UTC] derick@php.net
Not a bug in PHP, but something else.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 03 04:01:31 2024 UTC