Install WordPress on Windows Cloud Servers

2020-01-03 By Aaron 6653 Views windows wordpress cms_application
6 reviews

WordPress is a widely used CMS (Content Management System) application, which is based on PHP and MySQL. It is the most popular and the simplest way of creating a website or a blog.


This guide outlines the basic steps of installing WordPress application in a Windows server, assuming that the server already has a web service (IIS), database service (MySQL/MariaDB) and PHP installed in it.


Create WordPress database

The first step before installing WordPress in the server would be to create a database which would be used to store the WordPress data.


  1. Login to the database server by executing the below command.

    # mysql.exe -u root -p
    

    wordpresswin1

    Note: Here, the path where the MySQL service is installed in the server is C:\Program Files\MySQL\MySQL Server 5.5.

  2. Create the WordPress database and an associated database user.

    # CREATE DATABASE lswp_db;
    
    # CREATE USER 'lswp_usr'@'localhost' IDENTIFIED BY 'wpusrpwd';
    

    wordpresswin2 In the above example commands, lswp_db is the database name, lswp_usr is the database user associated with lswp_db and wpusrpwd is the password for the user lswp_usr.

  3. Grant permissions for the database user to access the WordPress database.

    # GRANT ALL ON lswp_db.* TO 'lswp_usr'@'localhost' IDENTIFIED BY 'wpusrpwd';
    

    wordpresswin3

  4. Exit the MySQL/MariaDB database server.

    # FLUSH PRIVILEGES;
    
    # quit;
    

    wordpresswin4


Installing WordPress

For installing WordPress, the latest WordPress installation archive file first needs to be downloaded. This can be done from the official WordPress downloads page https://wordpress.org/download/.


  1. Navigate to the path under which WordPress application is to be installed. This can be under the default IIS website or under any website.

    In the below example, WordPress is being installed under the default IIS website (C:\inetpub\wwwroot).

    wordpresswin5

  2. Download the latest WordPress installation archive file and copy over the archive file to the path under which WordPress is to be installed.

    https://wordpress.org/latest.zip

    wordpresswin6

  3. Extract the ZIP archive by right clicking on the file and then on Extract All… (latest.tar.gz), which will create a folder with the same name as the ZIP archive containing the installation files.

    wordpresswin7

  4. Inside the newly created folder, there will be a folder named wordpress. Move this folder over to the default IIS website path (C:\inetpub\wwwroot).

  5. The WordPress installation page can now be browsed using a browser.

    http://ipaddress/wordpress (if wordpress installed under default IIS website)
    (or)
    http://websitename/wordpress (if wordpress installed under a website)
    

    wordpresswin8

  6. Select the preferred installation language and click on Let’s go! in the next page to continue with the WordPress installation wizard.

wordpresswin9

  1. In the next page, fill in the details of the database that was created earlier. The WordPress default data would be loaded into this database. The Database Host and Table Prefix fields can be left changed.

    wordpresswin10

  2. Click on Run the installation to proceed.

    wordpresswin11

  3. Type in additional details required such as Site Title, Username, Password and Email address. Make sure that a strong password is used and the user credentials are saved safely. Once all details are filled in, scroll down and click on Install WordPress.

    wordpresswin12

  4. Once the installation has been completed, a Success! notification will be shown.

    wordpresswin13

  5. Click on the Log In button to access the login page of WordPress. Type in the user credentials to access the WordPress dashboard, which can be used to further develop the website.

    wordpresswin14

    wordpresswin15


Related Tutorials

What do you think about this article?

Rate this article
LayerStack Promotion
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.