How to install nginx with Plesk for a WordPress blog

Hamza asked:

I have a WordPress website running on a Plesk 10.4 server and only this website on the server, and it started receiving huge traffic recently. How can I install nginx as a reverse proxy for the WordPress website?

Current config:

  • Centos 5
  • Plesk 10.4
  • PHP 5
  • MySQL
  • Apache2

My answer:

If you’re getting traffic spikes on a WordPress website, switching to nginx is probably not the first thing you should do.

The first thing to do is to install some WordPress-specific caching mechanism. My favorite is the W3 Total Cache plugin. This will help you by creating static cached pages of your site which Apache can serve much faster to anyone who isn’t a logged in WordPress user.

It also has a lot more features, including memcached support, database and object caching support, CDN support, and many other potentially confusing things, but you don’t have to set those up immediately. Just doing the static page caching will help a lot if you aren’t already doing it.

If you’re already caching as much as you can through solutions like this, then it might be appropriate to consider switching to nginx, upgrading your server, etc.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.