wpherocoder.com Website

How to Install WordPress on Windows 10

How to install WordPress on Windows 10

This tutorial will show you how to install WordPress locally on Windows 10 and how to setup the Internet Information Services (IIS) on Windows 10, which will allow you to run a WordPress website on your computer.

IIS is a flexible and secure Web server provided by Microsoft.

If you want to create a testing site (sandbox) where you can learn more about WordPress, you can install WordPress on your computer.

Once you complete this tutorial, you will have a fully functioning WordPress install that you can test and learn how WordPress works, you can use the sandbox to install and test different themes and plugins. And if you are interested in programming you can use the sandbox as a development platform to create themes and plugins.

When you install WordPress on your computer, also known as “localhost”, it will not be accessible to anyone but you.

Below is a summary on How to install WordPress on Windows 10:

  1. Enable Internet Information Services (IIS) on Windows 10.
  2. Start the Internet Information Services (IIS) Manager.
  3. Test the Internet Information Services (IIS) Webserver.
  4. Install MySQL and Create a MySQL Database.
  5. Download and Unzip the contents to your computer.
  6. Configure the wp-config.php file.
  7. Run the WordPress Install.

Step 1: Enable Internet Information Services (IIS) on Windows 10.

To install the Windows 10 web server feature, you do not have to download a special package, it is already available on your computer, you just need to enable it.

Go to Control panel-> Select Program-> Turn Windows features on and off.

Now, scroll down and select “Internet Information Services (IIS)” and expand the additional categories of IIS.

Select Internet Information Services to choose the default features for installation.

1. Expand the Web Management Tools category, then expand the IIS 6 Management Compatibility, select the features shown below:

2. Expand the World Wide Web Services category, select the features shown below:

When you select the IIS management console the Web Management Tools and Word Wide services along with HTTP features, performance features, security, system status and diagnostics are automatically going to be install.

Press OK button to install the options, then click Restart to make the changes to the computer.

Step 2: Start the Internet Information Service (IIS) Manager.

Go to Windows 10 Search box and simply type IIS and you will see the IIS Manager application, click on the IIS Manager app.

Finally, you will see the IIS manager with many options to operate and handle different Web server application tasks.

Step 3: Test the Internet Information Service (IIS) Webserver.

After the installation of IIS, Windows will automatically start the webserver services on default port number 80. Next, you need to check whether it is functioning properly, open your internet browser and type http://localhost and you should see the following:

By default, the IIS shows the local HTML page to show everything is working fine.

Now you need to create a folder on your computer where you will store your WordPress Websites. Add a folder to your system drive called “WpWebSites” (C:\WpWebSites). Then add a folder under WpWebSites called “MyFirstWebsite”, this is where you will install WordPress and setup your first website.

Before you install WordPress, you need to setup a few more things, open the IIS if you do not have it open.

Click on the Applications Pools, then click on “Add Application Pool”, enter NoManagedCode as the name, select “No Managed Code” for the .NET CLR version, then click “OK”.

Next, right-click on Default Web Site and select “Add Application”. Type MyFirstWebsite for the Alias, click on the “Select” button then change the Application Pool to NoManagedCode, enter C:\WpWebSites\MyFirstWebsite for the physical path, then click “OK”.

Next, you need to install some software on your computer, PHP, Python, and MySQL.

  1. Web Platform installer 5.1

Access the website: https://www.microsoft.com/web/downloads/platform.aspx

Download the Web Platform Installer and install PHP 7.3.7

  1. Phython 3.7.4 (64-bit)

Access the website: https://www.python.org/downloads/

Under “Looking for a specific release?”, find the release version “Phython 3.7.4”, then click on the download link, scroll down to the list of files, then install the Windows x86-64 version.

  1. MySql v5.648 (windows)

Access the website: https://dev.mysql.com/downloads/windows/installer/

Click on the “Looking for previous GA versions?”, select version: 5.6.48, then download the “mysql-installer-web-community-” file.

Note: Use the defaults when installing the above software. When you install the MYSQL software, remember to write down the password for the username root, you will need this information when you modify the wp-config.php file in WordPress.

Step 4: Install MySQL and Create a MySQL Database.

  1. You can set up MySQL in 5 different types as shown below. Selecting the Developer Default will install all products needed for MySQL development purposes. Click on Next.
  1. Next you will see the check requirements: Based on your Windows configuration, it may prompt you like “One or more product requirements have not been satisfied”. You can just click on YES, then click on Execute.
  2. Upon execution of the previous step, the installer grasps all recommended products in place and asking for your approval to execute the product installation process. Click on Execute.
  3. Upon successful execution of all required products, now the MySQL allows you to configure the server settings. Click on Next to configure the server.
  4. This step allows you to configure the server. You can set the server in two different modes; one is a standalone mode, and another is a cluster mode. You do not want to make it as a cluster because you are installing MySQL for development purpose therefore, select the Standalone MySQL server and click on Next.
  5. Choose the Development Computer option from Config Type drop-down. You can find the following controls like TCP/IP, Port and X Protocol Port. If you wish to configure your port, you can change here, but for now, use the default configuration, click Next.
  6. You will be prompt to select the authentication method, use the default recommended method and click on Next.
  7. Next, you will need to set your MySQL root user password. Note: Remember your password! If, you wish to create a new user, you can click on Add User button under MySQL user accounts section, but for now just click on Next.
  8. Leave the service details as default and click on Next.
  9. Press Execute to apply the configurations on the previous step.
  10. Upon execution, you will see green colored ticks on every configuration option and finally you will get Finish button.
  11. Click on Finish and you just installed MySQL on your Windows 10 operating system.

If you would rather have a pictorial view on How to Install MySQL on Windows 10 Step-by-Step, click here.

Now that you have MySQL installed, you need to create MySQL database for you WordPress website.

Use MySQL Workbench and Create a Database

  1. To create a database, you first need to open MySQL Workbench (under windows start) using the username root and password you created above.
  2. Choose the database server you have access to and connect to it.

The following screen will be displayed. The default view is for general server Administration. Clicking on the Schemas tab will display the MySQL databases.

  1. To create a new database click on the icon for creating a new schema in the Workbench toolbar.
  1. Name the database, you can use alpha-numerical characters, and replace spaces with an underscore (_). Name your database myfirstdbase, then click Apply.
  1. You will be asked to review the SQL Script to be Applied on the Database, click Apply. Then click Finish to create the schema.
  1. The MySQL database is created, click on the Schema tab to display your database.
  1. Exit the MySQL Workbench.

Note: no need to create the tables in your database, this will be done when you install WordPress.

Now you are ready to install WordPress:

Step 5: Download and Unzip the contents to your computer.

You need to download the latest version of WordPress from https://wordpress.org:

The WordPress application is a downloadable Zip file, which contains the files you need to upload to your web server. Click the Get WordPress button and save the Zip file to your computer.

Next, unzip the file contents to the folder C:\WpWebSites\MyFirstWebsite you created on your computer.

Before you can install WordPress, you will need to rename the file wp-config-sample.php to wp-config.php in the MyFirstWebsite folder.

Step 6: Configure the Wp-config.php file.

Now edit the wp-config.php file and change the following things given in red color… In short, add the database details.

// ** MySQL settings – You can get this info from your web host ** //

/** The name of the database for WordPress */

define( ‘DB_NAME’, ‘database_name_here‘ );

/** MySQL database username */

define( ‘DB_USER’, ‘username_here‘ );

/** MySQL database password */

define( ‘DB_PASSWORD’, ‘password_here‘ );

/** MySQL hostname */

define( ‘DB_HOST’, ‘localhost‘ );

For example: database_name_here = myfirstdbase, username_here = root, password_here = “the root password you entered when installing MySQL”, and localhost = note: “leave as localhost”

Next scroll down to


 * Authentication Unique Keys and Salts.

You need to change the unique phrases! The following shows the default settings:

You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service.

Enter the link https://api.wordpress.org/secret-key/1.1/salt/ in your browser.

Then copy and paste the keys to the wp-config.php overwriting the defaults.

Next, save the changes to the wp-config.php.

Step 7: Run the WordPress Install.

Open the browser and point it to http://localhost/MyFirstWebsite/, you should see the WordPress install wizard.

Select your language and click on the Continue button to proceed.

Next, you need to give your WordPress site a title and enter the information necessary to create your admin account, username, password, and email.

Click on the Install WordPress button to continue. WordPress will set up your website and finish the installation.

You should see the Success screen, click on the Log In button, you just learned how to install WordPress. You can log into your brand-new WordPress install by going to http://www.yourdomain.com/wp-admin.

After a successful login the WordPress dashboard is displayed:


Now that you have successfully installed WordPress, here are a few things to get started with your new WordPress site.

What’s next: Things to do After Installing WordPress