How to install Wordpressify on windows

Hello, there. Sorry for my english. Be advised!

There been a long time that I develop themes for Wordpress. And setting up a dev environment is away a pain in the *. So navigating though the web, I found this awsome project with a built-in wordpress environment. But, when I tried to use it, had some dificults because there’s a few documentation, most for windows users. So that’s why I’m writing this article. Learn step-by-step the easy way to install and configure your ready to go Wordpress environment.

  1. Install WAMP. If you’re like me, and loves less job with environment, WAMP already have Apache, PHP and MySQL all ready to go with a simple click to turn it all on. So if you prefer that, jumpt to step 4.
  2. Install PHP. If you don’t want to use WAMP, you can use pure PHP Built-in web server or whatever solution you want for this. But PHP must be installed.
  3. Install MySQL or other Database software. You can follow this nice Installing MySQL on Microsoft Windows tutorial to do that. Or whatever other Database you want. Make sure to have it running to connect it to Wordpress.
  4. Add PHP to windows Path variable. If you do not know how, see this Add PHP to Your Windows Path Variable article. It is directed to WAMP, but it serves for all other kind of PHP instalations, just use the correct path. To test if it worked, open a command promp and type: php -v. It should display your php version installed.
  5. Install Node and NPM. You can see this How to Install Node.js® and NPM on Windows to do that. Very easy. After that, you can use any command prompt to run the others steps.
  6. Install Wordpressify. Run the simple steps 1 to 3 found in Wordpressify.co. Make sure you go to the folder you want to install Wordpressify. It’s best if you use your console with admin rights to avoid any problems. To the next step, use your console to enter the Wordpressify folder.
  7. Install gulp-connect-php npm module. You can do that by simply typing this in your console: npm install --save-dev gulp-connect-php. Make sure you have your WAMP running for the next step (or your chosen PHP installation and Database software).
  8. Create Database and User for Wordpress. If you’re using WAMP, see This Stackoverflow answer to access local MyPHPAdmin and this Creating a MySQL Database for WordPress article to create the database and user for it.
  9. Run Wordpressify. Type in your console: npm run dev. It will open your browser asking for Wordpress set up. Follow the steps as asked. When comes the time to set the database for wordpress, inform your database name, user, password and host (localhost if done with WAMP) and go next. Finally, click in Install. Then you will be redirected to the page we all know of a fresh wordpress installation.

For more details of how to use Wordpressify after installed, see the documentation.

That’s it! Good devs. =)