WordPress Tutorial

How to Install WordPress

Introduction

WordPress is a free open source software, which you can install on your hosting account. Webmasters use WordPress to create any kind of websites. From simple blogs to complex e-commerce websites – anything can be built using WordPress. Due to its simplicity and versatility, WordPress has become one of the most popular CMS. Effortless installation is another reason why WordPress is so popular.

Installation Steps:

  1. Download WordPress files.
  2. Upload WordPress files to your hosting account.
  3. Create MySQL database and assign user for it.
  4. Complete WordPress configuration using 5-minute install wizard.

That would be manual way to setup WordPress. It’s worth to mention that, many premium web hosting companies like Hostinger have an option to install WordPress by using auto installers. It literally takes just a few mouse clicks to have WordPress up and running on your hosting account.

If you’ve decided to create a WordPress website, this tutorial is for you. You will learn how to install WordPress by using auto installers as well as how to manually install WordPress with the famous 5-minute WordPress installer.

What you’ll need

Before you begin this guide, you’ll need the following:

  • Access to your hosting control panel.
  • FTP client (optional).

How to Install WordPress On Hostinger

Option 1 – Installing WordPress With Hostinger Auto Installer

Setting up WordPress on Hostinger WP hosting with Auto Installer is a quick process. It won’t take more than a few minutes to have a running WordPress site:

  1. Access Hostinger control panel and click on Auto Installer icon.
  2. Enter WordPress in the search field. You will be presented with the latest version of WordPress. Click on it.
  3. Fill in the required details:
    • URL – Address of your WordPress website. Leave it blank if you want to setup WordPress on domain name root.
    • Language – Choose WordPress language.
    • Administrator Username – You’ll have to use this username to log in to WordPress dashboard.
    • Administrator Password – The password you’ll have to enter to log in to WordPress admin area.
    • Administrator Email – Your email address. It’s recommended to enter a working email address here, as it’ll be used for notifications and password reset.
    • Website Title – Your WordPress website title.
    • Website Tagline – Your website slogan, used to explain what website is about.
  4. Press Install button.

And that’s it! You can now log in to the administrator dashboard and begin creating your website.

Option 2 – Installing WordPress Manually

If for some reason automatic WordPress installer is not suitable for you or you simply want to learn how this CMS works, you can install WordPress manually. The steps you’ll have to take in order to complete manual WordPress installation:

  1. Download WordPress installation files.
  2. Use FTP client to upload WordPress files to a hosting account.
  3. Create a MySQL database.
  4. Open your domain in the web browser and run the WordPress 5-minute installation wizard.

Step 1 – Download WordPress installation files

Firstly, download the latest version of WordPress. WordPress installation files are compressed in the .zip archive. Extract the archive to any folder on your computer. You’ll end up with a folder named WordPress. This folder contains WordPress installation files.

Step 2- Use FTP client to upload WordPress installation Files

Secondly, upload the extracted WordPress files to a hosting account. There are quite a few ways to do this, but the most convenient way is by using FTP. At Hostinger, FTP details can be found in FTP Access section. If you need help with connecting to FTP, see this tutorial.

Hostinger FTP Access Section

Open wordpress folder in your FTP client and upload all files from it to the hosting account.

NOTE: We are using File Zilla to upload files, but you can use any other FTP client.

Step 3 – Create MySQL Database

WordPress generates content dynamically every time visitor enters the website. All information is stored in the database. Thus, you’ll need to create one.

You can create a MySQL database on Hostinger control panel –> MySQL Databases section. Access this section and enter the following details:

  • MySQL database name.
  • MySQL username.
  • Password.

IMPORTANT: Be sure to write down MySQL credentials – you will need them later.

Step 4 – Run WordPress 5-minute Installation Wizard

At this step all WordPress files should be uploaded to the server and MySQL database should be created. Now you can proceed with the installation wizard. Access it by opening your domain name with a web browser.

WordPress 5-minute installation wizard has 6 steps in total:

  1. Select your language and press Continue.
  2. WordPress will ask to collect MySQL details. Since you already have them, press Let’s go! button.
  3. On this screen enter your MySQL database credentials and MySQL hostname. You can check what your hostname is in Hostinger Members area -> MySQL Databases section. Press Submit button once you are done.
  4. WordPress will check whether it’s possible to connect to MySQL database. If there are no errors, press Run the install.
  5. At this step enter the main website and administrator information and press Install WordPress:
    • Site Title – Your website title.
    • Username – Administrator username.
    • Password – Administrator password.
    • Your Email – Administrator email address.
    • Search Engine Visibility – If you check this option, WordPress will try to prevent search engines from crawling your website.
  6. That’s it, WordPress installation has been completed. Press Login button to access the WP admin area.

How to Install WordPress on cPanel Hosting

If your hosting provider uses cPanel for account management – this part of the tutorial is for you. Below you will find 2 different ways to setup WordPress on cPanel based hosting.

Option 1 – Installing WordPress with Softaculous Auto Installer

Because of its easy installation and maintenance, Softaculous is a popular auto installer on hosting providers who use cPanel. With Softaculous you can install a handful of different CMS and Apps with just a few mouse clicks.

Follow these steps to install WordPress with Softaculous:

  1. After accessing cPanel, find the Softaculous icon and click it.
  2. Click on WordPress icon. It should be on the very first page of Softaculous.
  3. You will see Softaculous WordPress installation window. It has quite a few different settings:
    • Choose Protocol – Choose protocol for your WordPress site. If you have SSL installed, it’s highly recommended to install WordPress on HTTPS protocol.
    • Choose Domain – If you have subdomains or add-on domains in your cPanel, you can select them here.
    • In Directory – Enter WordPress installation directory. If you want to install WordPress on root domain name, leave it empty.
    • Site Name – Enter the name for your WordPress site.
    • Site Description – Your WordPress site description goes here.
    • Enable Multisite – Choose whether or not to enable WordPress Multisite. This feature allows creating multiple WordPress sites using the same WordPress installation.
    • Admin Username – Choose the username for your administrator account.
    • Admin Password – Password for your WP administrator account.
    • Admin Email – Enter your email address here. Be sure to enter a working email as it will be used to send notifications and password reset requests.
    • Select Language – WordPress supports a lot of languages. Choose your language here.
    • Select Plugins – Choose plugins you want to pre-install.
  4. Press Install button and Softaculous will begin installing WordPress.

Option 2 – Installing WordPress Manually on cPanel

To setup WordPress manually on cPanel, you will have to follow these steps:

  1. Download WordPress installation files.
  2. Upload WordPress files using cPanel’s File Manager.
  3. Create a MySQL database.
  4. Run WordPress 5-minute installation wizard.

Step 1 – Download WordPress installation

The latest version can be downloaded from the official page here. Click Download WordPress button in order to start the download. Save .zip archive to your computer. You will need it in the next step.

Step 2 – Upload WordPress files using File Manager

As you may already know there are quite a few ways to upload WordPress files to hosting account. One of them is by using cPanel’s File Manager:

  1. Access cPanel and open File Manager.
  2. Open public_html directory and press Upload button.
  3. Press Select File and choose WordPress .zip archive you have downloaded in the first step.
  4. Once the upload is completed status bar will turn green. Press Go Back to “/home/username/public_html” button.
  5. Select .zip archive, press Extract button and Extract File(s) to proceed.
  6. WordPress files are in the folder named wordpress. Unless you want to access your blog via http://yourdomain.com/wordpress you need to move WP files to the public_html directory. In order to do so, access wordpress folder, select all files and click on Move button.
  7. Delete wordpress from file path that you want to move files to and press Move File(s) button.
  8. Finally, select wordpress folder and .zip archive while holding the SHIFT key and press Delete button.

Step 3 – Create MySQL Database

There are 2 ways to create a MySQL database on cPanel. You can either do this manually on MySQL Databases section (see this tutorial for more information) or use MySQL Database Wizard. The second option is more user-friendly:

  1. Head to cPanel and click on MySQL Database Wizard icon.
  2. Enter the name for your MySQL database.
  3. On this step enter username and password. It’s recommended to use Password Generator tool as it’ll generate random, secure password for you. Once you are done, hit Create User button.
  4. You would want to assign all privileges for your user. Select ALL PRIVILEGES and click on Next Step.
  5. That’s it, MySQL database along with the user has been created successfully.

IMPORTANT: Write down MySQL database credentials. You will need them in the next step.

Step 4 — Run WordPress 5-minute installation wizard

At this step, all WordPress files must be already uploaded and MySQL database must be created. Let’s go ahead and start the installation process. Open your domain name in a web browser and follow these steps:

  1. Choose preferred language and press Continue button.
  2. On the next screen, you will be asked to gather all required information for manual WordPress installation. You can proceed and press Let’s Go button since you already have everything you need.
  3. Now enter information of the MySQL database you created in Step 3 and press Submit button.
  4. WordPress will check if MySQL credentials are correct. Press Run the install.
  5. On the next screen, you will be asked to enter your blog and administrator account details. Enter all required details and press Install button. It is strongly recommended to enter your real email address as it will be used to reset WordPress admin area password in case you lose it.
  6. Congratulations, you have just manually installed WordPress.

How to Install WordPress Ubuntu 16.04 VPS

If you have a VPS running Ubuntu 16.04 and you need a quick, resource-efficient way to create a blog, installing WordPress is the best way to do so.

VPS is particularly useful if your web site receives heavy traffic, or has many web pages that require additional resources.

Before proceeding with WordPress installation the following software must be installed on your Ubuntu VPS:

  • Apache Web Server
  • MySQL
  • PHP

You will also need an SSH client to connect to your VPS and nano text editor to edit WordPress configuration files.

Step 1 – Install Apache Web Server

Use the following commands to install the Apache 2 Web Server on your Ubuntu VPS:

To test whether Apache has been installed properly, visit your server address:

http://serverip_or_domain

You should see default Apache2 page. Default Apache2 Page

Step 2 – Installing PHP

Executing the following command will install PHP and the required libraries on your Ubuntu System:

To check whether PHP is properly installed and working, lets create a basic PHP file named test.php in the Apache directory /var/www/html:

The nano editor window will open up. Paste the below PHP code into the window:

Hit CTRL+O to save the file. Then press CTRL+X to exit.

Now visit the link http://server_address/test.php. You should see the words “This is a test” on the screen. If you see the message, then your PHP installation was successful.

Step 3 – Installing MySQL Database Server

To install the MySQL server which will save your WordPress records, execute the command below:

You will be asked to set the root (administrator) password for managing databases. Enter a strong, secure password and press ENTER to continue.

It is recommended that you secure your installation before proceeding. Executing the command below will install certain plugins (including the validate_password plugin). Answer Y (Yes) for all questions except the one which asks you to whether you want to change the root password. Enter N (No) for this question and hit ENTER.

Step 4 – Installing WordPress

First, we must download and unpack the install files. Do so by executing the following:

Now, we must move the folder to the Apache Server directory.

Next, take ownership of the WordPress files:

Step 5 – Setting up the WordPress Database

Login to the MySQL shell:

To create the required database, we need to execute several commands. Type in each command and hit ENTER. Please note, that you need to fill in your own valid values for the placeholders db_name , db_user  and db_user_password :

Rename wp-config-sample.php to wp-config.php:

Now update the settings using nano text editor:

with the required settings for your database name, MySQL username, and password. Please note that these must match what you set earlier (db_name , db_user  and db_user_password).

Restart Apache and MySQL:

Step 6 – Finishing WordPress Installation

Open your browser and visit your server address. You should be greeted with the famous WordPress 5 minutes install screen. Now simply provide required details and complete WordPress installation.

WordPress 5 Minute Installation on Ubuntu 16.04 VPS

Congratulations! WordPress is set up on Ubuntu 16.04!

Post Installation Setup

Now that you’re done with the WordPress installation, the real fun begins. Installing WordPress is only the first step in your journey as a web owner, and a flurry of opportunities await you ahead.

As part of the WordPress philosophy, you are free to customize your website in a variety of ways. Whether you are on the look-out for quality third-party plugins to make your site more robust, or want to overhaul the look and feel of your site, you won’t be left disappointed at the number of options available.

Installing WordPress Themes

A good place to start your WordPress website’s customization is choosing a theme for it. Selecting an appropriate theme for your site is critical. And while the default WordPress theme is not the worst option, you’d want a more suitable choice according to the content of your site for maximum user retention. It will also let your users know that you pay attention to detail – a quality that will make your site stand out in a sea of other options.

Intall WordPress Themes

Luckily, a popular feature of WordPress’ thousands of free and premium themes. The easiest way to install new themes is via the official WordPress Theme Directory. Here, you can browse for your free themes, and quickly add it to your site through simple steps. To do so, simply go to your WordPress admin panel, and go to the Appearance section. You should be taken to the Themes page – click on the Add New button. Now search, download and install a new WordPress theme. For a more detailed look at installing WordPress themes, follow this tutorial.

Installing WordPress Plugins

In addition to getting your website a classy look, you may also be tempted to add more functionality to your site. While WordPress is fairly feature-rich out-of-the-box for a standard content management system, it is far from ideal if you want to squeeze every bit of juice out of the framework.

Installing WordPress Plugins

Plugins are extensions for your WordPress site, that could be used for a number of reasons. Whether you are looking for more control in the admin panel, better SEO optimization, better site stats and analytics, speeding up website performance or enhancing your site’s overall functionality, there is a plugin waiting for you in WordPress’ Plugin Directory. Similar to installing new themes, the simplest route to installing plugins is through the admin panel. In the dashboard area, choose Plugins, and press the Add New button. We also have a step-by-step guide on installing WordPress plugins, which is worth checking out.

Conclusion

By finishing this tutorial you’ve learned how to install WordPress manually and by using auto installers. Before starting your first blog, you may want to check other useful WordPress tutorials:

8 Comments

Click here to post a comment

Join thousands of subscribers worldwide

and get awesome deals & the newest tutorials to your email

Please wait...

Thank you for sign up!

Start saving now!

All-in-one web hosting & domain name from

$2
15
/mo
More in WordPress Tutorial
How to Prevent Search Engines from Indexing WordPress Blog
How to Prevent Search Engines from Indexing WordPress Blog

Close