Hi; I got a problem with Apache 2.0.40 and php 4.2.2:
Well my problem is different but here it goes to see if any you guys can crack it. First I go to my source directory for apache and I do this: make clean make distclean ./configure --prefix=/usr/local/www --enable-module=so make make install Now apache 2.0 is installed right where I want it. Now to PHP 4.2.2: make clean make distclean ./configure --with-mysql --with-apxs2=/usr/local/www/bin/apxs make (when the make finishes it has this last lines in an error) make[3]: *** [sapi_apache2.lo] Error 1 make[3]: Leaving directory `/usr/local/src/php-4.2.2/sapi/apache2filter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/php-4.2.2/sapi/apache2filter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.2.2/sapi' make: *** [all-recursive] Error 1 make install (I get another error when the make install is done) sapi_apache2.c: In function `php_register_hook': sapi_apache2.c:534: warning: passing arg 3 of `ap_register_output_filter' makes pointer from integer without a cast sapi_apache2.c:534: too few arguments to function `ap_register_output_filter' sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter' makes pointer from integer without a cast sapi_apache2.c:535: too few arguments to function `ap_register_input_filter' make[3]: *** [sapi_apache2.lo] Error 1 make[3]: Leaving directory `/usr/local/src/php-4.2.2/sapi/apache2filter' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/php-4.2.2/sapi/apache2filter' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.2.2/sapi' make: *** [install-recursive] Error 1 When this is done, I DON'T have php installed and it gives me bunch of errors. I am stuck here and I don't know what to do. I am running RedHat Linux 7.3 on a Dual P3 1Ghz/768Mb Ram PC. Any help on this, or suggestions... I know PHP 4.2.2 is sketchy on apache 2.0, but I would like to try my best to get it running as I know there are a few people here that have gotten it working. If youcan reply here or to my e-mail at [EMAIL PROTECTED] "Fawaz Alvi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > I was trying to install PHP4.3 with Zend 2 engine over Apache 2.0.39 and > when i run make it failed. The installation was successfull when i made the > following changes. > > ./configure --with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/new > php > > compiled and installed apache in /usr/local/apache2 > > Thanks. > > Here is the patch to fix the problem > > --- sapi/apache2filter/sapi_apache2.c Fri Jun 28 14:45:10 2002 > +++ ../../php-4.3.0-dev-zend2-alpha2/sapi/apache2filter/sapi_apache2.c Mon > Aug 5 13:24:08 2002 > @@ -564,8 +564,8 @@ > ap_hook_post_config(php_apache_server_startup, NULL, NULL, > APR_HOOK_MIDDLE); > ap_hook_insert_filter(php_insert_filter, NULL, NULL, APR_HOOK_MIDDLE); > ap_hook_post_read_request(php_post_read_request, NULL, NULL, > APR_HOOK_MIDDLE); > - ap_register_output_filter("PHP", php_output_filter, NULL, > AP_FTYPE_RESOURCE); > - ap_register_input_filter("PHP", php_input_filter, NULL, > AP_FTYPE_RESOURCE); > + ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE); > + ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE); > } > > AP_MODULE_DECLARE_DATA module php4_module = { > > > > > > "Christian Stadler" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Your Problem is a known Problem. Apache 2.0.39 won't run with PHP 4.2.1. > The > > solution is, or better, was to download the newest Snapshot of PHP: See > > here: http://bugs.php.net/report.php > > But now it doesn't work anymore. > > > > Gee, I've got the bad feeling, that the newest versions of PHP 4.3.0-dev > > will run with Apache 2.0.40-dev, but not with Apache 2.0.39 ... Seems, the > > only thing we could do is to wait, until at least Apache 2.0.40 is > released. > > > > Yours, > > > > Christian Stadler > > > > "Wayne Smith" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Hi, > > > > > > I too am having a similar problem. PHP v4.2.1 as a module over Apache > > > 1.3.26 > > > over Windows XP runs just fine. The same PHP over Apache 2.0.39 over > > > the same OS/same box fails to start. The error > > > message that Apache generates in the Event Viewer > > > is "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not > > > compatible with this version of Apache. > > > > > > I'm pretty sure that the Windows binaries will need > > > to be rebuilt and reposted. > > > > > > Wayne > > > > > > > > > Christian Stadler wrote: > > > > > > > Hi, > > > > > > > > Sorry, I've forgot to say, that I'm running PHP as an Apache-Module. > > > > > > > > Yours, > > > > > > > > Christian Stadler > > > > > > > > > > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php