Best configuration for 512mb -1Gb Ram VPS running Wordpress Smoothly
I've found this post from
If you follow my guidelines in previous post, RAM usage will be increase up to 400 MB then running out in 1 – 2 weeks even you turned on swap. How to minimize memory usage on LAMP to prevent your server crash?
I’ve setup a working VPS Ubuntu 12.04 LTS, LAMP server in 512MB of memory and it hasn’t gone into swap yet. It typically runs in just over 256 – 378Mb of memory and performs really well. So I thought I’d share the process of setting it up.
Determining Free Memory and Swap Activity
Setup LAMP Server in a Low Memory Situation
Stop, Disable unused services
Tune Apache to only have a small number of spare children running.
Only load the modules you require
Optimize MySQL server
Things We Can Disable
Turning MySQL Server Parameters
Key buffer size
The Query Cache
Maximum Number of Connections
The Table Cache
Third Party Configuration Wizard for MySQL
MySQL Server Monitor
Optimize PHP & Caching
Alternative PHP Cache
As you see, 0.23% of the users got Connection Timeout when my website has 42,735,587 hits/day (WoW), may I have somethings to do but I’m feel pleasure with my server.