Optimize PHP and Accelerate Apache 191
An anonymous reader writes "As the load on an application increases, the bottlenecks in the underlying infrastructure become more apparent in the form of slow response to user requests. This article discusses many of the server configuration items that can make or break an application's performance and focuses on steps you can take to optimize Apache and PHP."
Re:want performance from php? (Score:1, Insightful)
A buggy server and FastCGI, really great combination.
No thanks!
Re:want performance from php? (Score:2, Insightful)
Re:want performance from php? (Score:5, Insightful)
Now lighttpd serves 6 out of the top 250 sites. Do you think the other 246 run IIS or something?
Lighttpd is good, but is best used in specialised instances, for specific (mainly static content) tasks. Its pointless using it for PHP as the cost of forking out a process to run the script will outweigh any saving from running a lighter-weight http server.
Re:Dunmp then both (Score:2, Insightful)
Re:want performance from php? (Score:5, Insightful)
I'd say that in practice (i.e. when performing the vast majority of dynamic web functionality: e.g. database lookups) the opposite is true. Perl & Python are quicker at some tasks, but every-time I've rewritten a website between PHP and Perl (I don't program in Python because it's named after my most hated animal), PHP has come out slightly on top.
Re:want performance from php? (Score:2, Insightful)
lighttpd and friends are generally better if you're serving static content, but it's doubtful you'll notice unless you're talking in terms of many thousands of requests per second to a single server. That's not to say there aren't other reasons you might want to use lighttpd, but performance isn't really one of the interesting ones.
Re:want performance from php? (Score:5, Insightful)
Lightppd doesn't have that problem.
Re:want performance from php? (Score:1, Insightful)
No, it leaks memory instead.
Nginx doesn't have either problem.
Re:want performance from php? (Score:3, Insightful)
or that "shitty non-database" MySQL that manages to store all the bazillion comments/stories and is constantly hit.
Re:want performance from php? (Score:2, Insightful)