I want to be able to work on my app wherever I am. I don’t want to install a Linux OS on another partition, so I’m just going to install a local development environment on my Windows 8 laptop.
It’s been a long process to figure out the best environment for my WordPress-based web-app. I’ll spare you with the details, but in the end it all comes down to this: We want a highly available and scalable infrastructure, so we’re using the technology the big guys successfully built their services on.
Nginx will be our webserver. We’ll use the MariaDB instead of MySQL, not because we see any benefit here yet. In the long run it might save us a few milliseconds. For now it’s just about supporting the project. MariaDB is fully MySQL-compatible so we won’t run into any trouble there. And of course we’ll need PHP and WordPress itself.
So let’s download the latest stable versions of everything we need, before jumping right in:
nginx 1.4.0* – http://nginx.org/en/download.html
MariaDB 5.5.30* MSI Package – https://downloads.mariadb.org/mariadb
PHP 5.4.14* – http://windows.php.net/download/
WordPress 3.5.1* – http://wordpress.org/download/
* These where the latest stable versions when I wrote this tutorial.
My directory structure will be as follows, so make sure to change every path if this isn’t what you want. Extract the downloaded packages accordingly
In the first step we’ll start by installing MariaDB to this folder: