Can any provide a method where I can establish which of the following configurations would provide the best performance for a Magento based site:

  1. apache + mod_php

  2. apache + mod_php + nginx (as proxy so nginx handles static content and apache dynamic)

  3. nginx + fast-cgi or php-fpm

Also I am thinking of installing Sphinx as an indexing service. Would be there be any performance benefits from using it?

link|improve this question

what is apache apache + nginx nginx? – casey_miller Jan 26 at 6:22
changed to be more clear. – JakeTheFish Jan 26 at 6:49
feedback

2 Answers

up vote 2 down vote accepted

If you are looking for a high load application I would go with nginx+ php-fpm. As this is better when it comes to memory usage. It would consume less memory eventually Giving you ability to handle more Requests Per Seconds. For static content I would suggest you to use CDN. At least Amazon S3. With managing content through CDN you can go with apache + modphp.its okay really.

Dont forget to make optimizations on database level.

link|improve this answer
might be there some benchmarking? – JakeTheFish Jan 26 at 8:23
1  
@JakeTheFish benchmarks are always depend on particular environment. Always. – casey_miller Jan 26 at 8:26
Ok. Thank you for your help. – JakeTheFish Jan 26 at 8:37
feedback

Number 2 with varnish for the reverse proxy would be the fastest. Don't forget to use either apc or eaccelerator. When using one of those you'll need a handler that supports op-code caching. DSO or FCGI would be good. DSO isn't as secure in most situations but does use less memory.

Sphinx works well especially for better search results. Enterprise has built in support for Solr so if Ent that's probably a better choice for you.

Here's a quick and easy way to performance test: http://www.magespeedtest.com

For front end performance and other metrix (google pagespeed / yslow): http://www.gtmetrix.com

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.