Home Blogging ResourcesWordPress Tutorials How to Install WordPress on Windows (localhost)

How to Install WordPress on Windows (localhost)

by Pradeep Mamgain
127 views
How to Install WordPress on Windows (localhost)

Do you want to install WordPress on Windows? It’s a great idea because having the ability to run WordPress in the local environment allows you to make a WordPress website locally before migrating to the live server. You can also use it to create a backup copy of the live website. Apart from this, you can also use the local site to test the plugins or themes you have developed. WordPress installed in this way will be fully functional and behave like any other site. In this article, we will learn how to easily install WordPress on Windows using WAMP.

Do you want to install WordPress on Windows? This article walks you through the process of installing WordPress on localhost using the WAMP server.Click to Tweet

Why you should install WordPress on Windows

There are many reasons to install WordPress locally, such as:

  1. Develop a website locally and test it before making it live.
  2. Test plugins and themes locally.
  3. Create a copy of your live website, install it locally, fix or test the issues and then migrate it back to the live server.
  4. Use locally hosted WordPress to develop plugins and themes.

That being said, let’s take a look at WAMP and the prerequisites you need to implement before installing it.

What is WAMP

You need Apache, PHP, and MySQL or MariaDB to install and run WordPress.These packages are separate open-source software and installing them separately is not easy. WAMP is a Windows web development environment that allows you to create web applications with Apache2, PHP, and MySql/MariaDB. Also, it offers phpMyAdmin that gives you the ability to easily manage the databases.

What are prerequisites for Installing WAMP?

Before we install WAMP server (v3+) there are some prerequisites we need to implement for successful implementation:

  1. The WAMP server doesn’t work on FAT32 or exFAT drive. It should be installed on an NTFS disk.
  2. The installer must be run “as an administrator”.
  3. Don’t install WAMP over an existing installation; it will not work. Also, there is a great risk of losing your databases.
  4. Install it in a folder that is at root, for example, c:\wamp or d:\wamp. Also, keep in mind that the path you specify should not include spaces. For example, c:\Program Files\ or c:\Program Files x86)\.
  5. Before you start installing WAMP, you need to disable or close Skype and IIS. It ensures that Skype will not use port 80 or 443.
  6. Before proceeding with the installation of the WAMP, make sure you have the up-to-date versions of the following redistributable packages:
    • 2012 Redistributable: Microsoft Visual C/C++ Redistributable 2012 (VC11)
    • 2013 Redistributable: Microsoft Visual C/C++ Redistributable 2013 (VC13)
    • 2015-2019 Redistributables: Microsoft VC14 and VC15 are replaced by Microsoft Visual C/C++ Redistributable 2015-2019 (VC16)

With all this in mind, let’s take a look at how to properly install WordPress on Windows using WAMP.

How to Setup WAMP and Install WordPress on Windows

There are seven steps to get up and running with your WordPress site for Windows. Follow these steps:

Step #1: Download WAMP Server

First of all, you need to install WAMP on your Windows computer. Navigate to the WampServer website on your browser.

How to Install WordPress on Windows (localhost)

Scroll down to the DOWNLOADS section and then click on the WAMP SERVER 64 BITS (X64) 3.2.0 button. If you have a 32-bit computer click on the WAMP SERVER 64 BITS (X86) 3.2.0 button.

why use wamp server to install wordpress

On doing so, WAMP SERVER 64 BITS (X64) 3.2.0 popup will be displayed. Click on the download directly link; it will take you to WampServer’s SOURCEFORGE page and the download will start automatically. Save the file at the desired location on your hard drive and then run the installation.

Step #2: Install WAMP Server

Right-click on the installation file and then choose Run As Administrator from the shortcut menu. On running the installation, the Select Setup Language window will be displayed. Select the language from the drop-down and then click the OK button.

In the Setup – Wampserver window, select the I accept the agreement radio button.

wamp license agreement

Click Next. Next, change the destination using the Browse button or use the default install location. Click Next. In the Select Components section, select MySQL checkbox and then click Next.

Next, you have to select the Start Menu Folder, change it, or use the default settings and then click Next. Now, click the Install button to install WampServer. When the installation completes, you will see a message box prompting you to choose another browser (default is Internet Explorer). If you want to use IE, click No. I recommend that you use Chrome. To do so, click Yes and then navigate to C:\Program Files (x86)\Google\Chrome\Application and then select Chrome.

Once you select the browser, you will see another message box prompting you to change the Text Editor. Click No to use Notepad.exe and Yes to choose the text editor of your choice.

Next, it will display a warning in the Information section stating that all services might not start on the first launch. If it happens, you need to restart the services.

wamp information

Step #3: Run WAMP Server

Click Next followed by Finish. Now, launch WampSever from the Start menu. If the WampServer icon in the system tray is red or yellow, it means that the services are not running. To start services, click on the green icon and then choose Restart All Services from the menu.

wamp icon in the system tray

Step #4: Make MySQL Default DBMS

Before we proceed farther, we need to set MySQL as the default database manager. WAMP Server supports two database managers namely, MySQL and MariaDB. MariaDB is supported by WAMP server 3.0.8 and higher. By default, MariaDB is the default manager. First, we need to change it.

To do so, right-click on the green icon in the system tray and then choose Tools > Invert default DBMS MariaDB <-> MySQL.

wamp settings

If MySQL is the default manager, it uses port 3306, in which case MariaDB will use port 3307. If MariaDB is the default manager, it will use port 3306, in which case MySQL will use port 3308.

Step #5: Set Up MySQL Database

To setup WordPress, you need to create a blank MySQL database. Click the green WampServer icon in the system tray and then click phpMyAdmin from the menu. This action will open a new tab in the browser (http://localhost/phpmyadmin) and will take you to the phpMyAdmin login screen.

phpMyAdmin

Enter root in the Username field, leave the password field blank, and then set Server Choice to MySQL. Next, click Go to open the phpMyAdmin interface.

The interface is divided into two panes. On the right pane, make sure you are in the Databases tab and then enter mydb in the Database name field. Now, choose Collation from the drop-down located next to the Database name field. Next, click Create; the database is now ready for the WordPress installation.

Step #6: Download WordPress

First of all, you need to navigate to WordPress.org file and download the latest version of WordPress. Navigate to the website and click the GetWordPress button; the download page will be displayed. Now, click the Download WordPress button to download the zip file. Save the file on your computer.

install wamp on windows

Step #7: Install WordPress

Extract the zip file and copy the WordPress folder. Next, using File Browser navigate to the location where you installed WampServer and paste the WordPress folder in the www sub-folder. If you have used the default location for installing WampServer, the location will be C:\wamp64\www.

You can now rename the pasted WordPress folder to anything you want. However, give it a name that you can easily remember. For the sake of this demonstration, change the name to myblog.

Start the Config Wizard

Now, open the browser and navigate to http://localhost/myblog; the Setup Config Wizard will be displayed. Select the language and click Continue. Now, read the information on the next page. Before you proceed, you need to know:

  1. Name of the database.
  2. The username associated with the database. Typically, root.
  3. Database password
  4. The database host (localhost)
  5. Table prefix

You will need table prefix if you want to run more than one WordPress websites from a single database. The information listed above will be stored in a wp-config.php file. Once you are ready, click Let’s go!.

Enter Database Information

In the next page, set Database Name as mydb, Username as root, and Database Host as localhost. Leave the Password empty and Table Prefix to its default value wp_. Now, click Submit.

install wordpress on windows localhost

Finalizing Installation

You are now ready for installation. In the page displayed, click on the Run the installation button. On clicking, you will see the WordPress Welcome page. Here, enter the title of the website in the Site Title field and admin in the Username field. Choose a strong password and then enter your email in the Your Email field. Now, click on the Install WordPress button.

If everything goes well, you will see the Success page. Click on Log In button to open the WordPress login screen.

install wordpress on local host

Enter Username as admin and password what you set in the previous step. Click Login to view the WordPress Dashboard.

Congratulations, you have successfully installed WordPress on your local Windows computer.

Bonus: Install WordPress on Windows using MariaDB

Similarly, you can install WordPress on the MariaDB database. As discussed above if MySQL is the default DBMS, MariaDB will use port 3307. In order for the connections to a database server to be made with MariaDB or MySQL, you must specify the port if it is not the default port 3306. If you don’t want to use MariaDB at all, you can disable it by first right-clicking on the WAMP server icon in the tray and then choosing Wamp Settings > Allow MariaDB. Similarly, you can enable or disable MySQL.

How to Install WordPress on Windows (localhost)

Conclusion

As you can see, setting up a local WordPress site may sound complicated, but WAMP makes it extremely easy for you. Here’s all it takes to install WordPress on Windows locally:

  1. Download WAMP Server
  2. Install WAMP Server
  3. Run WAMP Server
  4. Make MySQL Default DBMS
  5. Set Up MySQL Database
  6. Download WordPress
  7. Install WordPress
Do you want to install WordPress on Windows? This article walks you through the process of installing WordPress on localhost using the WAMP server.Click to Tweet

I hope this article helped you learn how to install WordPress on Windows using the WAMP development server. If you liked this article, please subscribe to our newsletter. You can also connect with us on YouTube, Facebook, Twitter, and Pinterest. If you are a foodie, please check our recipe grid.

Do you have any questions or suggestions about how to install WordPress on Windows? Ask away in the comments section below.

You may also like

Leave a Comment

shares