WordPress is quite a memory hog, and I’ve been thinking of using nginx rather than apache.
The one major consideration before doing that is if there are any plugins which will stop working. I have tested a few and they seem to work, but I need to find out if there are any which might break.
I unfortnately have no experience with this but evidently it can be done as these articles and plugins address some of the issues:
Also are you familiar with WP Engine WordPress hosting? They are evidently using it in a hybrid form with Apache, probably as a front-end proxy.
Hope these help.
Small world :). You won’t see a lot of issues with Nginx and Apache + WordPress. We use it for our company as well, and we have no problem getting one server to serve 200k uniques/month and over a million pageviews/month for one site. Nginx + W3 Total Cache, you get some very remarkable numbers.
The biggest difference is rewrite rules, but there are plenty of guides out there (such as the ones Mike linked) that provide you with equivalent rewrite rules.
From a plugin perspective, unless the plugin is doing something really crazy, then it shouldn’t know the difference. All internal rewrite rules and that sorta stuff is handled at the WordPress level, independently of your HTTPD.
In short, go for it.
Using Nginx will not make WordPress use less memory. If you’re concerned about memory, you can save some server-wise by optimizing your Apache configuration to only load the modules you need and do other configuration that will reduce the memory apache needs.
Next to that, Apache has caching modules as well worth to consider, so to save all memory WordPress would have used when invoked. Since WordPress output get’s cached, WordPress does not need to run any longer and you save the memory.
When WordPress detects that mod_rewrite is not loaded it falls back to pathinfo ie:(/index.php/%postname%/) permalinks in Permalink Settings page. You can use the nginx Compatibilityplugin to force WordPress to use pretty permalinks then add rewrite rules to your nginx server file:
The docs are written in Russian and somewhat vague. Sometimes you’re wondering if the translation is bad or if the docs are just not very explicit in the first place. So finding answers is sometimes time-consuming and/or requires trial-and-error testing.
However, the author seems very engaged with the community, explaining configuration options. And NginX itself gives you some feedback, such as “you can’t use this option here.”
I have done research for Ngnix, varnish caching enabled wordpress setup.
Nginx Virtualhost configuration for wordpress.
Install varnish open file /etc/default/varnish, configure like below.
Check the running port.
if netstat command not found.