Question

I'm trying to figure out what would be the most performing configuration to host a PHP website on Amazon EC2.

Which webserver? (Apache, Lighttpd, nginx)? Which PHP module? mod_php, FastCgi? Which OpCache? (xcache, APC, eAccelerator, Varnish)

What would you recommended setup would look like?

Was it helpful?

Solution

  1. It depends on your application running on the server. Needs much more memory or cpu or both?

  2. Nginx + PHP-FPM + Varnish-Cache is a good solution if you can use them effectively.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top