Apache 1.3.x vs. 2.0.x: The Debate Returns 95
darthcamaro writes "internetnews.com is running a story about the new Apache 2.0.49 release. They actually got a hold of a pair of Apache Software Foundation members and got them to speak out about the 1.3.x vs. 2.0.49 debate! Also Apache Director Sander Striker told internetnews.com that he expects the Apache 1.3.30 release cycle to begin this week... I still use 1.3.x because I've been using the Apache 1.x series 'forever' and I've never found a solid reason to change. Also, as pointed out in this article, the official PHP documentation clearly states, 'Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows.'"
Re:1.3.29 (Score:3, Interesting)
Re:1.3.29 (Score:2)
After I decide that everything works on 2.0, I will probably decide to move it onto port 80, but there's no reason to go cold turkey.
Re:1.3.29 (Score:5, Informative)
As another user pointed out, you don't need to have Apache 2 running as your webserver if you want to access Subversion. [tigris.org] You can do one of the following:
Thomas
Re:1.3.29 (Score:1, Informative)
You can also run apache2 listening only on localhost, and set apache2 up to proxy to the apache2 instance (if you don't trust exposing apache2 at all)
Re:1.3.29 (Score:1)
I like using Apache as my Subversion server, it works out really well for me. That alone is a reason to move.
Re:1.3.29 (Score:2)
I'm sure that the newer ones have less bugs and more things to do. The older ones work, yes, but nothing beats updated software.
PHP link is for Canada Mirror (Score:5, Informative)
Use http://www.php.net/manual/en/install.apache2.php [php.net] instead so that it can select the nearest mirror server and save us slashdotting this one Canadian server
Re:PHP link is for Canada Mirror (Score:2, Interesting)
Re:PHP link is for Canada Mirror (Score:2)
Arrrghhh!!! My eyes! (Score:5, Funny)
Re:Arrrghhh!!! My eyes! (Score:2, Insightful)
we were thinking it would be cheaper if we did the color schemes ourselves instead of hiring a design consultant.
None Shall Pass! (Score:2)
(And us more aesthetically gifted geeks tend to just invoke the simplified layout, where we get everything on a white background and don't *have* to see the eyeball-burning "design".)
Re:Arrrghhh!!! My eyes! (Score:1)
Re:Arrrghhh!!! My eyes! (Score:2)
Re:Arrrghhh!!! My eyes! (Score:3, Funny)
Re:Arrrghhh!!! My eyes! (Score:1)
I've been running PHP/Apache 2 for a while... (Score:4, Interesting)
...and haven't noticed any problems. Why is this advised against?
Re:I've been running PHP/Apache 2 for a while... (Score:5, Interesting)
It seems to be not the 'core' of PHP, but several of the modules that go with it aren't thread-safe.
Apparently, this really only shows up in the real world under heavy usage, and using the prefork "multi-processing module" should reduce or eliminate the potential problems. I think.
It SOUNDS like the warnings about not using PHP with Apache2 is mainly overcautiousness - every time one of these stories comes up, a few people pop up and say it's working fine for them, and I don't remember seeing anyone pop up and say "yeah, every time I get more than (x) connections at a time everything fails" or anything of the sort.
I'm planning to try it out myself sometime soon...
Re:I've been running PHP/Apache 2 for a while... (Score:3, Interesting)
Re:I've been running PHP/Apache 2 for a while... (Score:3, Funny)
Too funny!
Re:I've been running PHP/Apache 2 for a while... (Score:1)
Has nothing to do with MySQL, but with myself.
Re:I've been running PHP/Apache 2 for a while... (Score:3, Funny)
Re:I've been running PHP/Apache 2 for a while... (Score:4, Informative)
Now, if I'm getting all these errors, why am I using it? Because it's still better than the alternative. When any DLL goes pop under IIS you get really flaky and esoteric things that start happening. Under Apache2 it just nukes a thread, which Apache2 diligently respawns and goes on with life. I can deal with clicking OK on a dozen windows a day if it means I don't ever have to worry about restarting my web service.
PHP+Apache2 isn't perfect, but it's good enough for what I need.
Re:I've been running PHP/Apache 2 for a while... (Score:1)
Re:I've been running PHP/Apache 2 for a while... (Score:4, Informative)
It would be interesting to know if PHP 5 will be thread safe, and this usable in production with Apache 2.x
Re:I've been running PHP/Apache 2 for a while... (Score:3, Informative)
Even if PHP were 100% threadsafe, it generally uses too many libraries for it to be practical to make sure they're ALL threadsafe.
Re:I've been running PHP/Apache 2 for a while... (Score:5, Informative)
Actually the PHP core is 100 percent threadsafe now, it is only specifically the external libraries which aren't.
If you use PHP w/FastCGI support you wont run into these issues. If you only compile MySQL or Postgres support into your PHP you wouldn't either. But many users frequently also compile in other external libs for things like graphics generation, url manipulation, etc and its these libraries which aren't thread safe and specifically can cause problems in high use environments.
While you could specifically use PHP and Apache2 in total prefork mode, this basically makes it run exactly like the 1.3 series, so then the real question is what's the point of upgrading at all and not just sticking w/1.3?
Re:I've been running PHP/Apache 2 for a while... (Score:3, Informative)
Because some servers like the subversion apache module require apache2, and I'd like to not have to run both apache1.3 and 2 in parallel. I am curious as to why the php documentation doesn't mention that using the prefork mpm and php would work fine however.
Re:I've been running PHP/Apache 2 for a while... (Score:2)
going to continue on the 2.0 branch (which is
a questionable point of departure), keeping
your site secure with minimum maintenance cost
requires using binary releases on the 2.0
platform for web applications.
Re:I've been running PHP/Apache 2 for a while... (Score:2)
You know what? I've been trying to do this very thing for two days now and I can not get Apachetoolbox to compile a pgsql.so so I can have a working PHP installation w/ pgsql support. I have to have this tomorrow and I can not find any place that makes any mention of this. It is ubber annoying. This one stinkin' little shared library is holding up the entire project. :-(
Re:I've been running PHP/Apache 2 for a while... (Score:1)
Re:I've been running PHP/Apache 2 for a while... (Score:2)
Re:I've been running PHP/Apache 2 for a while... (Score:4, Informative)
There's a list of libraries and whether or not they are known to be thread-safe here: http://httpd.apache.org/docs-2.0/developer/thread
Re:I've been running PHP/Apache 2 for a while... (Score:1, Informative)
Re:I've been running PHP/Apache 2 for a while... (Score:4, Informative)
One of the posters [slashdot.org] found this [php.net] more recent comment from Rasmus as well:
Re:I've been running PHP/Apache 2 for a while... (Score:2)
In fact, Apache 2's default MPM [apache.org] on unix is Prefork [apache.org], which should work the same way as Apache 1.3, but with several improvements of Apache 2 [apache.org].
My personal opinion is that the PHP development team should tackle thread-safety, but even if they don't they should updat
Re:I've been running PHP/Apache 2 for a while... (Score:2)
I can't entirely agree with what Rasmus is saying here. The code for handling of the incoming requests in the MPM is entirely new, cleaner, leaner and better in every respect than Apache 1.
Also, what Rasmus is saying makes one believe that threading is what Apache 2 is all about. First, Apache 1 can be thr
Re:I've been running PHP/Apache 2 for a while... (Score:2)
I run apache 2 and PHP in production (Score:4, Interesting)
Re:I run apache 2 and PHP in production (Score:3, Informative)
Re:I run apache 2 and PHP in production (Score:4, Insightful)
PHP was at 4.1.2, it is currently at 4.3.4
Apache was at 2.0.39, it is currently at 2.0.49
I have a feeling there have been some significant changes over the past (almost) 2 years.
If I had a spare box around here I would do some testing. I have been using Apache2 and PHP4 exclusively for over a year and have seen no problems.
Which processing model are you using? (Score:2)
Prefork or worker?
Re:Which processing model are you using? (Score:2)
I want to do some more performance testing, but I don't have any spare hardware at the moment. I know I can get more out of the box though.
Reference a little stale (Score:3, Informative)
Taken with a grain of salt of course, but I heard that the issue was about 2.0's use of threading whereas 1.3 was always a prefork model. mod_php made certain assumptions in their implementation for the Apache 1.3 version that didn't turn out to be threadsafe -- an obvious problem for Apache 2.0. But then I would tend to say it was a PHP problem rather than an Apache2 problem.
It doesn't surprise me that 1.3 would be the performance winner at first. 2.0 was concentrating effort
Re:I run apache 2 and PHP in production (Score:2)
Re:I run apache 2 and PHP in production (Score:2)
i've been using both (Score:4, Informative)
Re:i've been using both (Score:3, Informative)
on the Gentoo box I'm using 2.0.48 mod_jk2 2.0.2 with Java 1.4.2_04
Re:i've been using both (Score:2)
- Apache 2.0.48
- mod_jk 2.0.2
- mod_php 4.3.4
- JDK 1.4.2_03
on SemWebCentral [semwebcentral.org]. Runnin' fine so far...
I'll move to 2.0.x when... (Score:3, Insightful)
Mason does work under Apache 2 (Score:3, Informative)
Re:I'll move to 2.0.x when... (Score:4, Informative)
Once I've gotten it running, though, it has worked correctly, so the hard part seems to be just getting it running. I'm actually using it in a 'production' environment, too, perhaps a little bravely, but it's better then the alternatives.
Re:I'll move to 2.0.x when... (Score:3, Informative)
Re:I'll move to 2.0.x when... (Score:2, Informative)
The article also clearly states... (Score:3, Interesting)
A while back on Windows I had some issues getting the PHP module to load in Apache 2.0 when I was trying to use the latest releases available for each. However, I believe it was in the beta days of PHP4 and I'm not a fan of PHP anyways, so that doesn't concern me.
Now I use Apache 2.0 because that's what Subversion works with.
RedHat ES 3.0? (Score:2, Informative)
Re:RedHat ES 3.0? (Score:2, Flamebait)
That's funny, we're using Rackspace and have a variety of 7.3, AS and ES servers. We can install whatever software we want on them. It's really not that hard.
The only other option is to use PHP 4.1 and Postgresql 7.1. Stupid RackSpace.
No, your other option is to install them yourself. That's why they give you root access to your servers. You really shouldn't blame Rackspace for your own shortcomings
Re:RedHat ES 3.0? (Score:1)
In fact, I had them switch me over to FreeBSD because basically I have to support myself anyway. So if I'm going to have to do my own support, I might as well do it on a OS that I like. Now I'm up and running and my server is about five times faster.
As soon as our contract runs out, I'm bailing out of there. Their service has been awful and their prices are way out there.
inertia... (Score:2, Insightful)
I still use Windows/IE/Office because I've been using the Windows/IE/Office series 'forever' and I've never found a solid reason to change.
Re:inertia... (Score:3, Funny)
* This post is aimed at a Funny mod, not a Troll/Flamebait, no matter how close to the truth the joke is.
FreeBSD5.1 PHP4 Apache2 (Score:1)
Re:FreeBSD5.1 PHP4 Apache2 (Score:2)
Under load, the box becomes unresponsive (not crashed, but the server is very long to answer).
Tried FreeBSD-current with the same result.
A Gentoo Linux box with the same hardware, same software installed from portage works flawlessly.
Modules! (Score:2, Interesting)
Re:Modules! (Score:2, Informative)
And installing it under 2.0.49 wasn't too bad after I realized that it REQUIRES the 'bin' user.
Re:Modules! (Score:1)
Re:Modules! (Score:2)
Cool names (Score:4, Funny)
Havoc Pennington
Sander Striker
Geez, what books were your parents reading you to give you such cool names.
I think I'll change my name to "Gusto McAction".
v2 won't get enough testing (Score:3, Insightful)
The guys with the hats colored red (Score:2, Insightful)
Re:The guys with the hats colored red (Score:1)
Anyway, I'll stick with Apache2--it works perfectly for me (and, no, I'll not give out my DDNS name here...I'd rather not stress-test it with a Slashdotting).
Apache2 Apache1 (Score:3, Interesting)
With *no other configuration changes*, web pages were rendered and sent out to the clients *literally 3-5 times faster* than they previously had been. A site that took 11 seconds to load and display on Apache 1 took 4 seconds with Apache 2.
This was over a 100 mbit LAN connection; so the bottleneck was definately server-side, not client side.
(the entire thing is reduced to 1 second now...btw)
Re:Apache2 Apache1 (Score:1)
The biggest changes were that Apache2 can use threads instead of processes, because Windows is extremely slow when creating processes.
This is also the reason that unix people are slow to upgrade, because there are not much advantage for us, since unix (maybe except Solaris) always were very fast at creating new processes.
Re:Apache2 Apache1 (Score:1)
Buggy code? (Score:2)
http://issues.apache.org/bugzilla/show_bug.cgi? i d= 22030
And then there's the fact that Netscape LDAP connectors don't compile properly as a result of autoconfig screwups, as documented here:
http://nagoya.apache.org/bugzilla/show_bug.cgi?i d= 19085
And combine this with the fact that the latest comment from the FSF is... "Buy commercial suppor
How to use Apache 2 with PHP (Score:3, Informative)
For Redhat 9 and probably other distributions, Apache 2 and PHP are supported out of the box.
Apache/PHP? (Score:1)
- Anonymous Coward (Age: 89)
See, there's the problem. (Score:2)
Is there no regression test defined for PHP?
I find that hard to believe.
Are there a boatload of bugs?
That's a little more believable, but still an odd probability, given that there have been 49 revs of 2.0 so far...
Are they being entirely too persnickety about the possibility of minor yet embarassing bugs?
You tell me.
PHP Advice (Score:1)
Commercially using PHP/Apache2 (Score:1)
I've been using Apache2 now for some time.
I run several commercal sites... one is even a large shopping mall... which gets hammered.
It really is about what is compiled in. :)
It's the old rule, if it's not needed, don't compile it in, it also saves on memory usage and is one less thing that can break/be vulnerable.