Fine-tuning a LNMP stack

Posted by Norman on Server Fault See other posts from Server Fault or by Norman
Published on 2010-06-16T21:28:11Z Indexed on 2010/06/16 21:33 UTC
Read the original article Hit count: 305

Filed under:
|
|
|

I'm in the process of setting up a server with 4GB RAM and 2 CPUs. The stack will be CentOS + NGINX + MySQL + PHP (with APC) and spawn-fcgi. It will be used to serve 10 Wordpress blogs, 3 of which receive about 20,000 hits per day. Each Wordpress instance is equipped with the W3 TotalCache.

I have a few variables to play with:

  • NGINX (How many worker_processes, worker_connections, etc)
  • PHP (What parameters in php.ini should I change? What about apc?)
  • Spawn-fcgi (Right now I have 6 php-cgi spawned. How many of them should I have?)

I realize it's hard to tell without testing, but if you could please provide me with some ballpark numbers, that would be helpful too.

© Server Fault or respective owner

Related posts about mysql

Related posts about php