Did you know that you can install and run WordPress on your Windows PC/Laptop.? If not, there is a way to do it. Almost all WordPress Developers who create Themes and Plugins install WordPress locally on their computer to test and work with it. And users like you can test Plugins/Themes and/or make changes on your site without making it live to visitors.
WordPress is the best Content Management System (CMS) that is freely available to use. Majority of sites on the Internet is built using Self Hosted WordPress platform. The main advantage of using WordPress is because it is free and the support from all the WordPress developers who are actively contributing to the WP Community. This website that you are reading now is built using Self Hosted WordPress and I must say that it is best CMS that I have ever used. Hundreds of thousands of good WordPress themes and WordPress Plugins makes it easy to manage your website without even touching a single line of code.
Especially, If you are a beginner who is just getting started with WordPress, then you can easily learn and experiment with various stuff in it. Here in this article, you will find How to Install and Setup WordPress locally on your Windows computer using WAMP.
How to Install WordPress in Windows
WordPress can be locally hosted in Windows by creating a server environment. There are a few Free and Open Source programs that let us create a server environment in our computer. We will be using a software called WAMP or XAMPP to get the job done.
Why do you need to locally host WordPress?
WordPress is a standalone Content Management System. This is web-based software and you are required to install it in a server with necessary configurations. Generally, a server will have PHP, Database and other few key elements in order to make the site live. If you are just getting started with WordPress then the perfect bet for you is to first locally host and learn WordPress and after that host the site online by buying a hosting. This way you can learn WordPress and try different Themes and Plugins with spending any money on Hosting and Domain registration. Once you are done learning the basics of WordPress and script installation then you can buy Hosting and Domain to make your site online. Similarly, you can also use some sort of site migration plugin to copy the exact same site that you create in your local environment to Online.
What is WAMP?
WAMP is a simple software that will let you create a Server environment on your Windows computer. You will need WAMP software in order to install and run WordPress on your computer as localhost. XAMPP is another alternative to WAMP specially developed for Windows platform.
- Firstly, Download the WAMP Server software from its official website by clicking on the link mentioned below.
- On the download page, you will see WAMP for different versions of Windows and architecture, Download one that is compatible with your device.
- Once the download is completed, simply open the Installer and follow the on-screen instructions to install it.
- Once the installation is completed, Open WampServer.
We have installed WAMP on our computer, the next step is to create a database for a WordPress installation.
Create a WordPress Database
Step 1: Once WAMP is launched, click on the WampSerser icon on the taskbar and click on “phpMyAdmin”
Step 2: Now phpMyAdmin settings will be opened in a new browser window. Click on “Databases” option in phpMyAdmin to create a new Database for a WordPress installation. Choose a name for the database and simply click on the create button.
Now, we have successfully created a database, next is to install WordPress
Installing WordPress on Windows
1. First of all, Download a fresh new updated copy of WordPress from WordPress.org.
2. The downloaded file will be in a zip format. Extract the Zip file and copy the WordPress folder.
3. Now go to C:\wamp\www and paste the WordPress folder there. You can rename the WordPress folder to any name like IPEEWorld, mysite, etc as per your wish. For the sake of this tutorial, I’m naming it “mysite”
4. Open any Web Browser and type the below-given address in the Address bar.
http://localhost/mysite (Change “mysite” with your folder name)
5. Now WordPress will display a message telling that it cannot find a wp-config.php file. Simply click on the “Create a Configuration File” button to create a new one.
6. Now you need to provide the Database information that you created earlier. Type a Database name.
7. Default username will be “root” and leave the password field as blank. Click on the Submit button and WordPress will create a new configuration file.
8. Now you will see a screen saying that WordPress has successfully created the configuration file. Click on the “Run Install” button to continue the installation.
9. Now fill up your site details like Site Title, Admin Username, and Password, Email and click on the “Install WordPress” button.
10. Once the installation is completed, you will see a success message. Click on the login button to log in to your WordPress Admin Dashboard.
Now you can use your new WordPress site like as usual in your PC. You can also run it offline, but for installing plugins and themes you just need an active internet connection.
WAMP is a Windows-based software to create a server environment in our computer. For any reason, if WAMP doesn’t get it right for you then you can try XAMPP, a WAMP alternative. The main differentiating factor here is that WAMP is only available for Windows while XAMPP is a cross-platform application that works with macOS, Linux, and Windows.
You can download XAMPP from here.
That’s it, We have successfully installed WordPress on our Windows computer with WAMP Software. This Installation will be great for newbies to get started with WordPress. The site you created will only be visible to you and no one can access it other than the administrator. If your computer is connected to a local network created by you then the site will be visible to all the devices within the network. After you are done with the experiment, you can install any migration plugin and copy-paste the whole content to a server to make it live on the Internet.