Let's forse Nginx work with PHP. Make sure you have php5-fpm installed on your system: apt-get install php5-fpm. Linux sockets should be faster than TCP sockets, however TCP sockets are used by default in Nginx. How to change that? Typically you will comment the default line listen = 127.0.0.1:9000 inside the config file /etc/php5/fpm/pool.d/www.conf and switch to use the … [Read more...] about WordPress, Nginx and 502 Bad Gateway error message
If Apache has some advantages over Nginx — well that would be the ease you can enable PHP. Nginx has no out-of-the-box-modules for PHP. So my wild guess — you would probable use PHP-FPM. PHP-FPM (FPM = "FastCGI Process Manager") integrates well with Nginx. And it is fast and scalable. As of PHP 5.3.3 PHP-FPM is in its core so you don't need special install. To determine … [Read more...] about What is PHP-FPM (with Nginx in mind)?
Some facts about the Nginx Nginx or "engine X" is popular HTTP server (plus more). It is known for high performance, stability, rich feature set, simple configuration, and low resource consumption. Here are all the configuration files for Nginx: ( rpm -qc … [Read more...] about Basic Nginx HTTP server architecture tips
You migrate WordPress from Apache to Nginx. Migration is never a simple process, so here are some ideas you need to think before you even start to migrate: You need to know how to install Nginx - not just Nginx, because it will not handle your PHP code. In order to work with PHP on Nginx you need to have PHP-FMP. PHP-FPM is a module that can interpret PHP files. However, … [Read more...] about Migrate WordPress from Apache to Nginx