Slashdot Log In
Is Apache 2.0 Worth the Switch for PHP?
Posted by
michael
on Tue Dec 21, 2004 02:30 PM
from the play-nicely-children dept.
from the play-nicely-children dept.
An anonymous reader writes "It seems like some of the members of the Apache Software Foundation are a little angry with the PHP Community because they don't recommend using Apache 2.0 with PHP. Since PHP is installed on half of all Apache servers this is a major issue for them. A number of high-profile PHP community members such as John Coggeshall and Chris Shiflett have blogged about this decision in light of a recent posting by Apache Software Foundation Member Rich Bowen which called PHP's anti-Apache2 stance FUD. Is there any real reason for the PHP community to start recommending Apache 2.0, especially when the 1.3.x series of Apache is rock solid and proven? Note Rich did later commend PHP for being a great product, so it's not all flames."
This discussion has been archived.
No new comments can be posted.
Is Apache 2.0 Worth the Switch for PHP?
|
Log In/Create an Account
| Top
| 465 comments
(Spill at 50!) | Index Only
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
(1)
|
2
PHP used to be an ASF project (Score:5, Interesting)
(http://www.openhosting.com/)
I should probably be noted that PHP used to be an official Apache Software Foundation project until it was mutually agreed to end this relationship. I have no clue as to what the underlying reasons were and as an ASF member myself would rather not speculate on this. See ASF Board Meeting Minutes [apache.org] for Feb 2004 (section 5.G).
P.S. Apache 2.0 is great and there is no reason not to use it IMO.
Re:PHP used to be an ASF project (Score:5, Insightful)
Although on the surface that sounds pretty neutral, I can certainly understand Apache being concerned about this, considering how closely affiliated the two are (as the grandparent noted). I like analogies so imagine bringing home a couple of girlfriends over the years for Mom and Dad to meet. Then you meet an even better girl whom you invest a lot of effort into impressing and you're sure they'll love her, but instead they say, "what was wrong with your last girlfriend?" While your parents haven't said anything against your new lady friend, they've implied they're not impressed. I admit, dating is a poor analogy for some of the regulars here, but at least it was fun while lasted, right?
I agree that it sounds somewhat petty. Why not say something a little more friendly like, "We've seen great things from the Apache Foundation, and while we're not prepared to fully endorse version 2, we're anxious to see how it performs?" It's simple, generic, non-committal, open-ended, political-style BS, but it keeps people happy.
Re:PHP used to be an ASF project (Score:5, Informative)
Re:PHP used to be an ASF project (Score:5, Informative)
In other words it's PHP at fault and not apache2 and they are admitting it.
this is untrue. (Score:5, Informative)
Do not use Apache 2.0.x and PHP in a production environment neither on Unix nor on Windows.
Re:PHP used to be an ASF project (Score:5, Funny)
(Last Journal: Thursday June 19 2003, @11:54AM)
Hello, pot? This is kettle ...
Re:PHP used to be an ASF project (Score:4, Interesting)
(http://www.ev4.org/)
For instance, i am unable to upgrade my server to php5 because many customer code won't run correctly on it.. But before too long, we will have customers demanding php5 because their code doesn't work on 4..
Re:PHP used to be an ASF project (Score:5, Informative)
apache2 is essential for Windows (Score:3, Informative)
(Last Journal: Thursday December 08 2005, @04:33PM)
Apache2 works way better on Windows.
Re:apache2 is essential for Windows (Score:5, Funny)
Anyone still running Windows is nuts
Re:apache2 is essential for Windows (Score:5, Funny)
(http://sententia.org/)
Anyone who wants to keep this joke going is nuts.
OT: Great sig (Score:5, Funny)
(http://conceptjunkie.blogspot.com/ | Last Journal: Monday August 25 2003, @10:22PM)
Great sig!
The good thing about Christianity is that the DM is much, much better. Or at least more consistent.
The bad thing is that He can't be bought off with a six-pack of Dew and a pizza.
The good thing about D&D is that the DM is usually your friend and will try to make it so you have fun.
The bad thing is that the DM can give you millions of gold pieces, +8 everything and make you king of world or even a god, but you still gotta go to work/class on Monday morning.
Not up to us ... (Score:4, Funny)
Talk to Microsoft, it's them what's keeping the joke going.
Re:apache2 is essential for Windows (Score:4, Informative)
(http://www.metatrontech.com/ | Last Journal: Monday November 19, @08:51PM)
Re:apache2 is essential for Windows (Score:4, Interesting)
It all goes back to Windows NT being designed from the beginning to enourage the use of threads, while Unix always favored multiple processes.
FUD in it's purest form ... (Score:5, Informative)
Re:FUD in it's purest form ... (Score:5, Interesting)
(http://www.timewarp.org/ | Last Journal: Monday September 30 2002, @08:49AM)
As for putting a lock around them, I'd imagine that when that happens, it would be considered thread safe *except*...
PHP has a user contributed library system similar to CPAN called PEAR. Some of the libraries in PEAR aren't threadsafe... and even if somebody went through and updated them, next week there will be several new one that are not threadsafe.
Now, all of this would be moot if there were a compelling reason to push to Apache2. The impetus would be there to do the work. But, right now, the last of the 1.x series is just as stable and performs as well as Apache2. That means that there's simply no reason to do the work, and Open Source doesn't like to do unnecessary work.
When there is a benefit to the ongoing work necessary to make it and *keep* it threadsafe, it will likely be done.
--
Evan "And yes, I realize the irony of saying how Open Source works in this reply"
Re:FUD in it's purest form ... (Score:5, Interesting)
It's a threading issue (Score:5, Interesting)
(http://perens.com/ | Last Journal: Tuesday February 07 2006, @08:49PM)
Apache 2 and a recent Linux kernel come pretty close to the theoretical limits of the hardware when it comes to serving static content. It just loafs along while saturating whatever net connection you give it. It's worth trying out.
Bruce
I'm sorry Bruce, you'll have to come back later. (Score:5, Funny)
(Last Journal: Tuesday September 07 2004, @04:29PM)
You're going to stop all the foaming at the mouth, and who wants a half-frothed troll this close to Christmas?
Re:I'm sorry Bruce, you'll have to come back later (Score:5, Funny)
(http://perens.com/ | Last Journal: Tuesday February 07 2006, @08:49PM)
On the other hand, I had looked at the problem reasonably hard when choosing supported software for UserLinux, so I did know something about the problem. So perhaps that disqualifies me.
Bruce
Slashdot uses Boa for images (Score:5, Informative)
(http://www.twmacinta.com/)
This isn't to say that Apache is worthless. On the contrary, it is an exceptionally good server. It just doesn't scale as well as some others for static content.
Efficiency is not entirely a web server function (Score:5, Informative)
(http://perens.com/ | Last Journal: Tuesday February 07 2006, @08:49PM)
Bruce
Re:Homegrown apps are one thing... (Score:4, Interesting)
(http://perens.com/ | Last Journal: Tuesday February 07 2006, @08:49PM)
Bruce
Re:It's a threading issue (Score:5, Informative)
(http://blog.phpdoc.info/)
Either PHP itself, or many PHP applications, are not written to deal with the multi-threading offered by Apache 2.0.
That's just plain not true. The underlying threading problem has little to do with PHP, and absolutely nothing to do with PHP applications, but libraries to which PHP links (libmysqlclient, libpdf, libmcrypt, etc etc etc). It's these third-party libraries (over which the PHP developers have no control) that cause Apache2 to be unstable in the various threading modes (prefork works fine, but is just not officially supported).
S
Re:It's a threading issue (Score:5, Informative)
(http://perens.com/ | Last Journal: Tuesday February 07 2006, @08:49PM)
Bruce
er, no... (Score:4, Informative)
(http://moonbase.rydia.net/)
Yes it does. The only exceptions are SYSV IPC objects which don't get automatically reaped, and temporarily created filesystem objects that still have links.
Assuming your kernel isn't buggy, anyway.
Re:Apache 2.x memory model is bizarre (Score:5, Informative)
(http://perens.com/ | Last Journal: Tuesday February 07 2006, @08:49PM)
Bruce
Re:It's a threading issue (Score:5, Informative)
(http://perens.com/ | Last Journal: Tuesday February 07 2006, @08:49PM)
To their defense, the PHP folks say the problem is with libraries they don't control. But there could be a thread-safe PHP interface to them.
And I guess the bottom line is that they don't want to keep answering questions about this, so they just say don't upgrade to Apache 2.
Me, I use Zope. I think it's always been multithreaded.
Bruce
Re:It's a threading issue (Score:5, Informative)
(Last Journal: Thursday October 03 2002, @10:53AM)
As always, the decision over whether to use threads or processes should be based primarily over whether you want to give up protected memory within your application or not (unless you're dealing with a platform like Windows where the process model simply isn't flexible enough to avoid throwing memory protection out the window).
Re:It's a threading issue (Score:5, Informative)
(Last Journal: Thursday October 03 2002, @10:53AM)
Absolutely. But it's not merely protecting sensitive data--OS architects worked hard for years to implement protected memory, and threads circumvent a lot of those gains (a bug in one thread can affect them all, all memory access needs to be synchronized, etc).
There are good times to use them, but the choice should be based on whether you need to share all (or most) of the memory as opposed to sharing little or none (when processes, possibly with shared memory segments, are the correct choice).
Too many people think that somehow "threads are faster" when (excepting egregious disparities a la Windows) that isn't necessarily true--and even when it is, the performance benefits are often tiny compared to the costs you pay.
No need to switch ... (Score:5, Interesting)
Apache 1.3 has been working flawlessly for me. Until I have a compelling need to switch to Apache 2.0, I'm not going to. I understand that there are some nifty new features in Apache 2.0, but not a single one of them is something that I want/need.
This, I think, is the primary reason why people aren't going to Apache 2.0 in droves, not the PHP team's "FUD".
Re:No need to switch ... (Score:4, Insightful)
(http://www.sergiocarvalho.com/)
Hint: Don't wait until the media says linux is desktop-ready.
Why are there two?? (Score:5, Insightful)
(http://voiceofjohn.blogspot.com/ | Last Journal: Tuesday October 30, @11:44AM)
Can anyone point me to a succint explanation of why there have been an Apache 1.x line and an Apache 2.0 line for years? This to me has always seemed like an implicit statement from the Apache people that I should not yet move to 2.0.
I checked the front page of Apache and there were release announcements for the latest version of both lines. Neither announcement carried a statement indicating when you should use it over the other. The front page does not appear to link to anything addressing the issue, and the FAQ does not appear to handle it, either.
Re:Why are there two?? (Score:5, Informative)
It's on the download page [apache.org]:
"Apache 2.0.52 is the best available version"
"Apache 1.3.33 is also available"
The message would appear to be '2.0.52 is the best, but if you insist you can get a lesser version'.
Re:Why are there two?? (Score:5, Informative)
(http://www.apacheadmin.com/)
Re:Why are there two?? (Score:5, Insightful)
(http://voiceofjohn.blogspot.com/ | Last Journal: Tuesday October 30, @11:44AM)
I have no problem with that policy at all. But there is nothing at all on the front page to answer the question "Which Apache version should I use?" Even if the answer is not a simple "Use 2.0" or "Use 1.x," there needs to be answers to "Why would I want to use 2.0" and "Why would I want to use 1.x."
I have been interpreting the continued maintenance of the 1.x line for years as a statement that 2.0 was not ready for prime time. I'm pretty sure this was the case at one time. The website needs to just come right out and say, "If you are starting with Apache for the first time, please use 2.0. The 1.x branch continues to be maintained for existing users who need to remain with an older version." Couldn't that at least make it to the FAQ?
PHP and Threaded Apache (Score:3, Informative)
THe apache-2 (Worker MPM) itself is rock solid and definately seems to boost performance of ones http-server compared to traditional apache-1.3.
I am not exactly sure about a prefork-MPM vs apache-1.3 comparison.
The biggest problem with PHP on any threaded Apache-2 (i am not sure if this holds true for the 1.3 series as well)
Switching to the prefork MPM makes everything rock-solid again
If PHP could actually solve their problems with running in a threaded Apache-2
Again
Well worth the upgrade (Score:3, Informative)
Nobody told me! (Score:3, Interesting)