At 01:06 PM 2/22/2002 -0800, August wrote:
>There's been a bit of traffic on the apache dev list about this as well,
>most of it indicating the problem lies on the PHP side of things... This
>is something I've been tracking for a while, waiting for the Apache beta
>(which is pretty close to their final) before really worrying about the
>php support. Now that the beta is here would be great to see php getting
>solid on Apache. 

hey, 

I've been trying to compile php latest cvs and apache latest cvs a few days back and i 
found out there are some first things to solve before being able to make any solid 
thing on php + Apache 2

Nota : this only happens if you try to compile built in in apache. Apxs works at 
compile but httpd segfaults when you launch it and have the LoadModule in httpd.conf. 
(didn't try and trace it cause I wanted to test php against apache 2.0 for performance 
since Apache 1.3.x is almost not fast enough for the load i need to handle)

1/ First thing would have to create a good configure script :) The one php's got last 
time i checked didn't link to all the needed libraries directories and didn't find 
apache 2 actually :
after line 3697 some changes are to be done :

    # For Apache 2.0.x
    elif test -f $withval/src/include/httpd.h &&
         test -f $withval/src/lib/apr/include/apr_general.h ; then

first line should get rid of the /src/ 
second line should be test -f $withval/srclib/apr/include/apr_general.h ; then

there are some changes according to the same rules are to be applied in the next few 
lines

and APACHE_INCLUDE has to have some extra stuff :

original : APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix 
-I$withval/src/lib/apr/include"

i don't remember exactly but there has to be some other include to put such as 
-l$withval/srclib/apr-util/include

2/ change the constants that had their name changed (eg : NOT_FOUND doesn't exist 
anymore on apache 2. It was before a #define on HTTP_NOT_FOUND. That define (for 
backwards compatibility i guess) is no more on Apache 2, there are a bunch of other 
constants for the all the response codes in include/httpd.h)

3/ there are also whole structures which have changed their names (pool for example). 
This is a major pain in the ass cause the structures have changed names but also their 
"structure" has changed. This is gonna be harsh to solve but it's doable.

I've stopped at that step last time I checked.

I'm really looking forward to Apache 2.0 cause well it looks like a lot faster and i'd 
need that. Anyway, i'd also like PHP to work with it of course :)

Hope those simple comments were worthy.

Later



--
Mark Villemade
Hosting Services Technical Manager
MultiMania / Lycos
(int) +33 1 53 27 24 05


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to