Shifting WordPress From Apache to nginx Web Server puts any level of user to the challenge of keeping the permalink right. Here is how to shift. If you are new to these web server software, Apache and nginx; you should read the minimally written theoretical part on Apache Web Server and nginx Web Server. With a video guide, we have shown how to install nginx on Rackspace Cloud server. You can read this updated text guide as well. There are many reasons to think to shifting WordPress from Apache to nginx instead of remaining on Apache2 for WordPress – one of them is speed of rendering the web pages.
Shifting WordPress From Apache to nginx Web Server : Introduction
We need to know some basic differences between nginx and Apache2 before we can realize the shifting WordPress from Apache to nginx Web Server as a project. Nginx works perfectly well with a wide variety of applications and WordPress is certainly one of them. NginX’s configuration language is very powerful. Understand the fact – you have to add the rules manually – when WordPress detects that mod_rewrite is is not loaded, which is the case with nginx, it falls back to using PATHINFO permalinks, which inserts an extra ‘index.php’ in front. The equivalent is :
Steps for Shifting WordPress From Apache to nginx Web Server
Shift WordPress materials (posts, comments etc.) from old website in this way. Excellent guide is itself written on official WordPress Codex :
So, let us list the to do things :
- You are installing nginx and other components for proper environment to run WordPress. Install PHPMyAdmin for GUI based access to MySQL database.
- Install WordPress.
- Shift WordPress materials (posts, comments etc.) from old website in this way
- So, your permalinks are lost but you’ll not get 404 errors
- Now, you need to fix the permalinks. This is the point will discuss.
There are lot of nginx Plugins for WordPress :
Another official guide is important :
These, just for information can help you a lot. W3 Total Cache now automatically drops a nginx.conf file on the WP root; all you need to do is to include it. Very easy. We will suggest to use IP address only (without pointing the domain), so that the live site with domain suffers the least. With the usage of nginx, automatically you’ll learn the nginx way and you’ll see the actual benefit of using ngnix is more.
move wordpress from apache to nginx , wordpress apache with nginx