Before you read on, I want to make note that every developer has their own personal preferences on environments. This post is intended to show you how I created my own development environment. I will be showing you how to create a local web server with a working WordPress install. Now you may be asking; why? Well, simple, try out different plugins, layouts, and other scripts before making them public. I started with a running Windows 2012 R2 Standard Virtual Machine with the name ‘DEVbox’ but you don’t necessarily need a server operating system to create a development box. You can use any platform but in this article, we are mainly focusing on creating one in Windows.
The first step, download and install XAMPP server (click here)
Next, you will need access the phpMyAdmin portal http://localhost/phpmyadmin/ to setup a database and create an administrator account.
Go to the tab Databases and under the ‘create database’ text give a unique name and click on create.
Next, go to the User accounts tab. Scroll down and click on Add user account.
Now create a username:
- I used the same name as the database: wp935
- Hostname: Drop down and select Local
- Go to password: Type in a password: password
- Re-type the password.
- Scroll down and check off Global privileges. (This is a development server. I would highly suggest not doing this on a public server.)
- Click on to go.
Time to tie the user account with a Database. Click on the Database button that is located next to Global.
Add privileges on the following databases(s): select your database. Click on go after.
- Next page: Click on data-specific privileges, Check all and click go.
Now our database is all set up and it is time to install WordPress. Download WordPress here (click here).
Navigate to the folder, C:\xampp\htdocs in the file explorer and extract the WordPress zip file into a new folder. (wp935)
Next, in your web browser navigate to http://localhost/wp935/wp-admin/install.php
If you have not received any error messages. You will be greeted with a Welcome to WordPress. Enjoy!