Do you know that you can install WordPress on your computer for learning purposes and testing? Yes, It’s true. Working with WordPress on your computer is a great way to test plugins, do some updates, change site design and other website upgrades before pushing them your live websites.
On these tutorials, we’ll show you how to install WordPress locally using WAMP.
The process of installing WAMP on your computer is also known as setting up a local server environment (“localhost”). Most of theme designers and plugin developers install WordPress on their local server environment to speed up their development phase time.
It’s a good idea to use WordPress on a local computer, in order, to test any major/minor changes to your site. This way, you can immediately fix any issues before it reaches your live website.
Let’s take a look, now, on how to install WordPress on your computer using WAMP.
What is WAMP?
WAMP stands for W for Windows, A for Apache, M for MySQL and P for PHP. WampServer is one of the software for Windows computers to be a local server environment. You will need WAMP to be able to start and use WordPress on Windows environment. There are other clients for Windows such as XAMPP, but on this tutorial, we’ll use WAMPServer. It is free and easy to use.
First, Installation of Wamp Server on your PC
Visit my previous tutorial on how to install WAMP on your computer.
Once you are done with the installation, launch WampServer.
2. Set a Database for WordPress
Next, we’ll need to create a blank MySQL database for WordPress.
WampServer comes with phpMyAdmin, a web-based application to manage MySQL databases. Click on the Wampserver icon in windows taskbar and then click on phpMyAdmin.
The phpMyAdmin login screen will open in a new browser window. By default, the Username will be root, and you can leave the password field blank.
Once you’re logged in, click on Databases in PHPMyAdmin to create a new database for WordPress. You will be asked to choose a name for your database (we used “Jan-test”). After that click on the Create button.
3. Installation Process for WordPress
Now, we’re going to install WordPress. You will need to download a copy of WordPress from WordPress.org. After downloading the zip file, you have to open and extract it from the downloaded folder.
After that, you need to navigate the folder where you installed WAMP.
On this tutorial, we installed it at E:\wamp64, so we’ll refer to that folder going forward. Keep in mind, it may be different on where you installed the program.
Paste the WordPress folder into the DRIVE-LOCATION:\wamp64\www folder.
You can rename the WordPress folder to anything you want, we manage to set as under DRIVE-LOCATION:/wamp64/www/WordPress/January/test. This will be the URL of your local WordPress site, so be sure to choose something you’ll remember easily. For the sake of this tutorial, we renamed our WordPress directory to /WordPress/January/test.
Now open your web browser and go to //localhost/WordPress/January/test
The WordPress database setup will start automatically. First, it will ask you to select your language.
After that, it will show you some information about setting up your database. Just click the Let’s Go button when you’re ready.
On the next screen, you’ll need to provide your database information. The database name will be the one we made earlier, on this tutorial. In our case, we named it as “Jan-test”.
Your default database username will be root and you can leave the password blank. Just let the table prefix, as it is.
Next, click on the submit button and WordPress will automatically create a configuration file on the designated WordPress folder you’ve made earlier.
After this, you will see on your browser informing you that, WordPress has successfully connected to your database, and you can proceed with the installation.
Go ahead and click the Run the install button.
Next, you can fill out the installation Information form. You will need to set your site title, admin username/password, and admin email address for local website details.
Once you’re ready, press the Install WordPress button. Then, it will redirect to login information box.
After logging in, it will proceed to your WordPress Dashboard. It means you have successfully installed WordPress on your computer using WampServer.
Congratulations! You deserve a pat at your back. Hooray! xoxo
Below are some additional tips and tricks:
1. Troubleshooting Skype Error
If you have already a Skype installed and running on your computer before the WampServer installed, then it may not be able to work properly due to a conflict with Skype. The caused was both Apache and Skype using the same port 80. Here is the simple fix for this. Open Skype and go to Tools » Options. Click on Advanced and then Connections. Uncheck the box that says Use port 80 and 443 as alternatives for incoming connections. Save options and restart Skype.
2. Enabling Permalinks
Permalinks will not work by default on your local server environment. All your URLs will look like localhost/sample_site/?p=18. If you go to Settings » Permalinks and use one of the other options, then it will show you “page not found” errors. We have already written about a solution here that will show you how to enable custom permalinks in WAMP.
3. Migrating from local server to Live server
Here’s a separate guide on how to push WordPress from local server to a live site. Hopefully, you’ll find it helpful when you are ready to deploy your local site to production site.