Migrate WordPress from Apache to Nginx

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:

  1. You need to know how to install Nginx - not just Nginx, because it will not handle your PHP code.
  2. 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, this is currently integral part of PHP (if PHP version > 3.3).
  3. You need to clone PHP configuration from the original (Apache) web site. You need to pay attention to all config files before migration.
  4. Optionally, you install APC (or some other similar caching tool). This will cache the PHP opcode(s) - will not interpret PHP files all the time.

PS. This migration tutorial is similar for other CMS systems like WordPress.

tags: & category: -