Re: [PHP] Re: Building sapi_apache2

2005-07-07 Thread Gaby vanhegan
On 6 Jul 2005, at 23:02, Richard Lynch wrote: I suppose I should go read some documentation about what sapi_apache2 actually means/does... Nah. I won't have time to play with it anyway. Why torture myself? I'll send you a beer? :) My current theory, with no supporting evidence whatsoev

Re: [PHP] Re: Building sapi_apache2

2005-07-06 Thread Richard Lynch
On Tue, July 5, 2005 3:40 pm, Gaby vanhegan said: >> I suppose I should go read some documentation about what sapi_apache2 >> actually means/does... Nah. I won't have time to play with it anyway. >> Why torture myself? > > I'll send you a beer? :) My current theory, with no supporting evidence

Re: [PHP] Re: Building sapi_apache2

2005-07-06 Thread Gaby vanhegan
On 6 Jul 2005, at 00:26, Rasmus Lerdorf wrote: In the "Loaded Modules" Apache section it will show up as mod_php5. There is no code that outputs sapi_apache2, so I am not sure where you are getting that from. The right way to check the sapi is to call php_sapi_name() which will return "apache"

Re: [PHP] Re: Building sapi_apache2

2005-07-05 Thread Rasmus Lerdorf
Gaby vanhegan wrote: > > On 6 Jul 2005, at 00:00, Rasmus Lerdorf wrote: > >>> I suspected that this was the case, from what I read php5 doesn't work >>> with threads yet... >> >> >> There are simply too many moving parts here to ever be sure that there >> won't be a thread-related race condition

Re: [PHP] Re: Building sapi_apache2

2005-07-05 Thread Gaby vanhegan
On 6 Jul 2005, at 00:00, Rasmus Lerdorf wrote: I suspected that this was the case, from what I read php5 doesn't work with threads yet... There are simply too many moving parts here to ever be sure that there won't be a thread-related race condition somewhere. Ah ha, this makes more sense

Re: [PHP] Re: Building sapi_apache2

2005-07-05 Thread Rasmus Lerdorf
Gaby vanhegan wrote: > I suspected that this was the case, from what I read php5 doesn't work > with threads yet... It works fine with threads. There is nothing to fix in PHP to make it work better. It's just that a lot of other things you are likely to link into PHP may or may not be threadsafe

Re: [PHP] Re: Building sapi_apache2

2005-07-05 Thread Gaby vanhegan
On 5 Jul 2005, at 21:38, Richard Lynch wrote: ./configure --with-apxs2=/usr/sbin/apxs \ Is that really really 100% for sure guaranteed an Apache 2 apxs and not some left-over Apache 1.x apxs script?... Isn't the Apache2 apxs named, like, apxs2 ??? That's what I thought, but there's only on

Re: [PHP] Re: Building sapi_apache2

2005-07-05 Thread Richard Lynch
On Tue, July 5, 2005 7:32 am, Gaby vanhegan said: > > On 5 Jul 2005, at 15:07, Rasmus Lerdorf wrote: > >> Gaby vanhegan wrote: >>> order to allow php5 to see and use the sapi_apache2 module? I could > ./configure --with-apxs2=/usr/sbin/apxs \ Is that really really 100% for sure guaranteed an Apa

Re: [PHP] Re: Building sapi_apache2

2005-07-05 Thread Gaby vanhegan
On 5 Jul 2005, at 15:42, Rasmus Lerdorf wrote: Gaby vanhegan wrote: Somebody previously suggested that I rebuild apache with threading enabled. Will this make a difference? Yeah, it will likely make everything crash in weird on undebuggable ways. (So, don't do that) I suspected that this

Re: [PHP] Re: Building sapi_apache2

2005-07-05 Thread Rasmus Lerdorf
Gaby vanhegan wrote: > Somebody previously suggested that I rebuild apache with threading > enabled. Will this make a difference? Yeah, it will likely make everything crash in weird on undebuggable ways. (So, don't do that) Sounds to me like you are either editing the wrong conf file or putting

Re: [PHP] Re: Building sapi_apache2

2005-07-05 Thread Gaby vanhegan
On 5 Jul 2005, at 15:07, Rasmus Lerdorf wrote: Gaby vanhegan wrote: Is there a specific compile switch that I need to build Apache with in order to allow php5 to see and use the sapi_apache2 module? I could see nothing specific in a "./configure --help" for either Apache or php. I have th

Re: [PHP] Re: Building sapi_apache2

2005-07-05 Thread Rasmus Lerdorf
Gaby vanhegan wrote: > Is there a specific compile switch that I need to build Apache with in > order to allow php5 to see and use the sapi_apache2 module? I could see > nothing specific in a "./configure --help" for either Apache or php. I > have the rpm .spec file, so I could theoretically do a

Re: [PHP] Re: Building sapi_apache2

2005-07-04 Thread Gaby vanhegan
On 4 Jul 2005, at 21:35, Richard Lynch wrote: On Mon, July 4, 2005 12:14 pm, Gaby vanhegan said: On 4 Jul 2005, at 19:58, Catalin Trifu wrote: True, but this is Plesk that is doing this, not my Apache configuration. I've seen PHP5 on Apache2 servers that have the sapi_apache2 module installed

Re: [PHP] Re: Building sapi_apache2

2005-07-04 Thread Richard Lynch
On Mon, July 4, 2005 12:14 pm, Gaby vanhegan said: > On 4 Jul 2005, at 19:58, Catalin Trifu wrote: > True, but this is Plesk that is doing this, not my Apache > configuration. I've seen PHP5 on Apache2 servers that have the > sapi_apache2 module installed, and the module being listed in > phpinfo(

Re: [PHP] Re: Building sapi_apache2

2005-07-04 Thread Gaby vanhegan
On 4 Jul 2005, at 19:58, Catalin Trifu wrote: I have php 5.0.4 running fine on Fedora Core 2 under Apache 2.0.49. To all intents and purposes, PHP works fine. The only problem I have is with Plesk, which uses the presence of the sapi_apache2 module to turn PHP on or off for the various sites