Do you want to install WordPress locally on your Windows computer? Working with WordPress on your computer, you can try out new WordPress features, learn how to develop with WordPress and build websites before migrating them to the live server. In this article, we will show you how to successfully install WordPress on Windows using WAMP.
Why should you install WordPress on Windows?
Installing WordPress locally on your computer gives you a test environment that won’t affect your live website or blog. A WordPress installation on your computer is also known as a local server or local host.
Usually, WordPress developers use the local WordPress installation to develop their plugins and themes. Beginners can also install WordPress on their computers to learn WordPress, try out new WordPress themes and plugins, and experiment without affecting a live website.
Notice: If you install WordPress locally on Windows, you can only see this site. If you want to create a website that is open to the public, you must have a domain name and web hosting. We encourage you to follow this guide on how to start a WordPress blog.
Let’s take a look at how to properly install WordPress on Windows using WAMP.
What is WAMP?
WAMP is a compilation of Apache, PHP and MySQL web servers for Windows computers.
They are all separate open source software. However, installing it separately is not easy, even for experienced users. With software like WAMP, you can easily install them and set up a local working environment in minutes.
Step 1. Install WAMP on Windows computer
Note: The link below will take you to a different download than the screenshot shown while the WAMP website is idle
First, you need to download and install the WAMP software on your computer. Just go to the WampServer website and click on the “Start WampServer” button.
You get to the download area. Here you can see two versions: WampServer 32-bit and WampServer 64-bit. You must select the version of WampServer that corresponds to the operating system type of your Windows computer.
To find out if you are using a 32-bit or 64-bit operating system, go to Control panel »System and Security» System on your computer There you can see the type of operating system.
Once downloaded, you can click on the Wamps server executable file to run the installation. Follow the instructions on the installation screen carefully.
During the installation process you need to define the location of the web browser. By default it is Internet Explorer. You can change this in Google Chrome or any other web browser by locating it in the program files on your computer.
After installation, you can launch WampServer to continue.
Step 2. Set up a database for WordPress local settings
Next, create an empty MySQL database. When you start WAMP, you’ll see a green WampServer icon in the lower-right corner of the screen along with other icons. Just click on it and then on phpMyAdmin (a web-based application for managing MySQL databases).
Notice: If the WampServer icon is red or yellow, it means the services (Apache, MySQL, PHP) are not running. You must start the services by clicking the icon before configuring the database.
This will take you to the phpMyAdmin login screen in your web browser. Just enter the username: root and leave the password field blank. These are the default credentials to login to your localhost phpMyAdmin.
Click the Go button to continue.
Once logged in, you need to click Databases in phpmMyAdmin to create a new database for WordPress. You will be prompted to choose a name for your new database (we named ours test_db). Then click on the “Create” button.
Your database is ready, which means you can now install WordPress on localhost.
Step 3. Install WordPress on Windows using WAMP
Next, you need to download the latest version of WordPress from the WordPress.org website. It will be downloaded as a zip file.
You need to extract the zip file and copy the “WordPress” folder.
Now you need to navigate to the folder where you installed WAMP.
In this tutorial, we installed WAMP in C:wamp64 , so we’ll refer to that folder in the future. However, note that this may be different for you depending on where you installed the program.
Paste the “wordpress” folder into the C: wamp64 www folder.
You can change the name of the “WordPress” folder to anything you like, e.g. B. Mysite, Testite, etc. This is the URL of your local WordPress site. So pick something you can easily remember.
For this tutorial, we changed the name of the WordPress folder to mysite.
Then you can open web browser and go to http://localhost/mysite/.
First you will be prompted to select a language and then the database configuration information will be displayed. Once you have read it carefully, click the Get Started button to continue.
After that, you need to enter your database details like database name, username, password, host and table prefix.
The database name is the name you entered in the previous step. In our case we call it “test_db”. The username is “root” and you can leave the password field blank. You can also leave the database host and table prefix unchanged.
Then click the submit button and WordPress will create a configuration file for you in the backend.
A success message will appear on the next screen stating that WordPress is connected to your database and you can proceed with the installation.
Click the Run Install button to continue.
You will be taken to the WordPress splash screen. You’ll need to add a title for your new WordPress site, choose an admin username, enter a strong password, and provide an admin email address.
When you are done, click on the “Install WordPress” button.
Once the installation process is complete, a success message will appear. In the background, WordPress has created new tables in its database and is ready to use.
You can then go to your WordPress dashboard by clicking the “Login” button.
Congratulations, you have successfully installed WordPress on a Windows computer using WAMP.
Step 4. Enable nice permalinks in WAMP
The new version of WordPress will not break your local site by changing permalink settings.
However, if you still see the Page not found error on your pages after changing the permalinks from Configuration »Permalinks In WordPress, just follow our guide on how to enable custom permalinks in WAMP.
Step 5. Troubleshoot WAMP
WAMP is easy to use even for beginners. However, if you are unable to run it, the following troubleshooting tips will come in handy.
Fixed WAMP-Skype conflict
If you have Skype installed and running, WampServer may not be able to function properly due to a conflict with Skype. The conflict is caused by Apache and Skype using the same port 80. There is a simple solution to this problem.
Open Skype and go to tool options. A dialog box will appear. From here you need to click on Advanced and then on Connections.
Clear the Use ports 80 and 443 as alternates for incoming connections check box. Save the options and restart Skype.
Install Visual C++ Redistributable
WAMP requires Visual C++ Redistributable to run Visual Studio 2012. If you don’t have it installed on your computer, you can download and install it from Microsoft’s website.
Bonus: Migrate from WAMP to Live
We also wrote a separate guide on how to move WordPress from local WAMP server to live site. Hope you find it useful when you’re ready to deploy your local production site.
A local server environment is ideal for learning and testing purposes. However, remember that if you want to start a WordPress blog for others to see, you don’t need to install WordPress on your computer. You must install WordPress on a WordPress hosting provider.
We hope this article helped you learn how to install WordPress on Windows using WAMP. You can also read our guide to the 18 most important things to do after installing WordPress.
If you enjoyed this article, subscribe to our YouTube channel to watch WordPress tutorial videos. You can also find us on Twitter and Facebook.