1

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?

2
  • what is apache apache + nginx nginx?
    – bakytn
    Jan 26, 2012 at 6:22
  • changed to be more clear. Jan 26, 2012 at 6:49

2 Answers 2

2

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.

2
  • might be there some benchmarking? Jan 26, 2012 at 8:23
  • 1
    @JakeTheFish benchmarks are always depend on particular environment. Always.
    – bakytn
    Jan 26, 2012 at 8:26
1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .