by Anonymous Coward writes:
on Monday March 22, 2004 @11:48PM (#8641607)
I did this after figuring out that no one really knew why you shouldn't. I haven't had any problems. Occasionally someone cites that quote on the comp.lang.php newsgroup, but they never have any reasons to back it up. This is 3 machines, 5 websites between them, that see daily use of an extensive custom written CRM app that is all in PHP. MySQL is the database.
From what I understand, It's all about the performance. [apacheweek.com] Apache 1.3.x supposedly has better performance with PHP when compared to the corresponding Apache 2.0.x release.
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
Not just that either. I tried it out on my desktop computer to serve my anime, and it slowed to a crawl when one of my friends tried to download a 700mb file. I was able to stop it easily, upgrade, and try again. Same problem. I don't recall which version this was, but Apache 2.x is just not good enough for me. It was having troubles on my multi-user (2000+) system and it was slow, crashed from time to time, and was just a royal pain in the ass to work with. 1.x works. It works well. I'm going to keep on us
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)