How to Install WordPress: The Quickest and Easiest Methods
WordPress is a free, open-source content management system (CMS), well known for its versatility and ease of use. There are a few different ways to learn how to install WordPress, from using an installer offered by a website hosting service to manually with the help of an FTP client.
This beginner-friendly guide has detailed instructions on how to install WordPress CMS without any technical knowledge. We will also go over some common problems that you might encounter and the ways to fix them.
It’s possible to install WordPress on Ubuntu, a popular VPS operating system. That said, this installation tutorial will mainly focus on shared hosting.
Important! Remember – to install WordPress, you need to have a web hosting service and a domain name – you can purchase them from WordPress hosting providers and domain registrars.
How to Install WordPress – Video Tutorial
Learn how to install WordPress and start your online journey with ease with our video tutorial.
Which WordPress Installation Method Is Best for You
Each method suits different needs and levels of technical knowledge. Check out the table below to see which one is right for you.
|Installation Method||Best for|
How to Install WordPress With Auto Installer
Learn how to install WordPress as quickly as possible by looking for a web hosting provider that can perform the installation for you. Some hosting providers, including Hostinger, offer a quick and easy installation method using an Auto Installer.
Therefore, we recommend looking for WordPress hosting instead of shared hosting if you are sure to use the CMS.
Our WordPress plans, for example, are specifically optimized for this content management system and let you complete the installation in just a few clicks.
Here’s how to use Hostinger’s Auto Installer:
- Log in to your web hosting account and click Websites on the main menu.
- Click on the Manage button near the domain name of your new WordPress-powered website.
- On your hPanel Dashboard, locate the Auto Installer button under the Website section.
- Under Auto Installer, choose WordPress and click the Select button.
- Fill out the Install WordPress form:
- Create a WordPress Website Title.
- The Administrator Username, Password, and Email are for the WordPress login. They do not need to be the same as the web hosting login information. Make sure to choose a strong password to prevent security breaches.
- Choose your preferred Language and Application version.
- Select the Always update to latest available version option for automatic updates.
- After filling out all the necessary information, hit the Install button.
- Hostinger will show Installed Applications. Click on the three dots next to your WordPress URL. Select Manage to go to My WordPress Dashboard.
- On the WordPress Dashboard, click the Edit Website button to access WordPress Administration Dashboard.
- Another way to access the WordPress Admin Dashboard is by clicking the Overview button near WordPress on hPanel.
Important! If you don’t notice any changes on your WordPress site after following these instructions, clear browser cache.
How to Install WordPress with Softaculous
Another quick and easy way to install WordPress is using Softaculous, a popular Auto Installer for cPanel, Plesk, DirectAdmin, InterWorx, and H-Sphere.
In this tutorial, we will use cPanel:
- Log in to your web hosting control panel and access your cPanel account.
- Head to Softaculous Apps Installer and click WordPress.
- Locate and click the WordPress Install Now button.
- Make sure to fill in your Site Name, Site Description, Admin Username, Password, Email, and choose your preferred language.
- This form also provides additional options to help get your WordPress site started:
- There is a Select Plugin(s) option, including the Limit Login Attempts, Classic Editor, and Install LiteSpeed Cache plugins.
- Here, you should also install a WordPress theme for your site. Click on Show All Themes to search for it in the directory.
- To get all of your installation details, fill out the Email installation details to the field.
- Once you finish filling out the form, click Install.
To access the installed WordPress Admin, click on the WP Admin icon under Current Installations.
How to Install WordPress Manually
Whether the previous options do not work, the hosting provider does not have an Auto Installer feature, or you simply prefer to do it by yourself, it’s possible to manually install WordPress.
This method involves manually uploading WordPress to your hosting account. Although it’s a longer process, it is still straightforward to follow, even for beginners.
1. Prepare to Set Up WordPress
Before we begin to install WordPress manually, let’s set up a few things first:
- Make sure your hosting plan meets the WordPress system requirements:
- PHP version 7.4+
- MySQL version 5.7+ or MariaDB 10.3+
- HTTPS support
- Download WordPress from the WordPress.org official website. Make sure to download the latest version and extract it from the ZIP file.
- Upload your website files from the extracted WordPress folder into your public_html file using Hostinger’s File Manager or an FTP Client like FileZilla.
- If you are using an FTP Client, find the Create a New FTP Account section on your web hosting account control panel beforehand.
2. Create MySQL Database and User
To proceed with manually installing WordPress, we need to create new MySQL credentials:
- Log in to your hPanel and go to Management in the Databases section.
- Create a new MySQL database name, username, and password. After filling out all the necessary information, click the Create button.
Make sure to copy the MySQL credentials complete with the alphanumeric string, you will need them late
3. Configure wp-config.php
wp-config.php is a configuration file that lets WordPress know your database server settings. It is made specifically for you. Follow the instructions below to configure your WordPress files:
- Log in to your hosting account. On your hPanel, click on File Manager under the Files section.
- Click and expand public_html and open the folder containing the WordPress installation.
- Locate the sample configuration file, wp-config-sample.php, and rename it to wp-config.php
- Right-click on it, and select the Edit button.
- Once open, look for the information that says:
// ** 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' );
- Replace database_name_here, username_here, and password_here with your MySQL credentials created earlier. Remember to include the alphanumeric strings.
- When you’ve finished editing, click the Save & Close button.
4. Run WordPress Install Script
To install WordPress script, type in your domain name in a browser to proceed to install WordPress manually. You can also do this by going to yourdomain.tld/wp-admin/install.php. This will open up the WordPress setup page:
- WordPress will first ask you to select the language for your site. Do so and press Continue.
- Fill in your website and administrator information:
- Create a new Site Title for your WordPress site.
- Set the WordPress Username, Password, and Your Email which will later be used to login to the WordPress Admin Dashboard.
- We suggest only checking the box next to Search engine visibility if you don’t want the website to be visible on search engines.
- Click the Install WordPress button to finalize the process.
- Then, fill in your login information and press the Login button to access WordPress Admin.
Sometimes, WordPress might also ask to collect your MySQL details after selecting the language. Since you already have them, press Let’s go!
- Enter your MySQL database credentials. Leave the Database Host and the Table Prefix fields as they are. Only change them if you wish to run multiple installations with one database. After filling in all the necessary information, click Submit.
- WordPress will check whether it’s possible to connect to the MySQL database you have created. If there are no errors, select Run the installation.
If you wish to install WordPress locally on Windows or macOS, refer to this guide to learn how to install WordPress locally.
Common WordPress Installation Problems
As you follow this installation tutorial, you might come across a few problems with the WordPress installation script. The following are some of the most common issues encountered when installing WordPress.
Directory Listing Instead of a Web Page
Instead of regular pages, people will see a list of files and directories on your site. This problem occurs when a web server isn’t viewing the index.php file. When this happens, the site becomes vulnerable to cyberattacks.
To fix this, head to the hPanel Dashboard → Advanced → Folder Index Manager to disable the directory listing.
Then choose public_html for the directory and select No index next to Choose a new indexing type.
Another way to fix this is to upload an index.php file via your File Manager to the public_html folder.
Headers Already Sent Error
This error is caused by introducing a syntax error when editing a wp-config.php file.
To fix this error, begin by downloading the wp-config.php file over again. Open it in a text editor and check that the first line is <?php and the last line is ?> with nothing after it. Save the file, re-upload it and reload the page.
WordPress Site Page Looks Like Gibberish
If the source code of your page is filled with <?php ?> tags everywhere, your PHP is not working correctly.
To fix this error, check if PHP is installed correctly and no errors appear when it’s being configured. Head to PHP Configurations → PHP Options, and make sure to disable zlib.output_compression.
If problems persist, contact your web host’s customer support team for additional help.
Error Connecting to Database
If an error pops up when connecting to the database, it means your site could not retrieve the necessary information to render the page.
To fix this problem, check the login credentials on wp-config.php and make sure they match your MySQL credentials.
If you’re positive that you have entered the correct database information, try resetting your MySQL password. Head to Databases → Management, click on the three dots icon and select Change Password.
If the solutions above still do not work, create a new database and user on MySQL Databases.
This tutorial has showcased how to install WordPress for beginners, both automatically and manually.
If you run into some of the common WordPress installation problems, we’ve also provided some simple fixes to them.
Now, it is time to install your new WordPress site. Feel free to leave a comment below and let us know if you have any questions.
Learn What Else You Can Do With WordPress
How to Login to WordPress
Guide to WordPress Security
How to Create a Multilingual WordPress Site
How to Launch a WordPress Site
How to Move My WordPress to A New Domain
How to Add a New Post in WordPress
How to Edit Categories in WordPress
How to Add Social Media Icons in WordPress
How to Use WordPress Gallery
How to Install WordPress FAQ
Why Should I Choose WordPress?
WordPress is easier to use even by beginners. It’s customizable, scalable, and search engine-friendly thanks to its massive library of plugins and themes. Compared to other CMSs like Drupal and Joomla, the open-source platform is free to use, share, and modify for various purposes.
Is WordPress Free?
Yes, WordPress.org is a free, open-source CMS. However, keep in mind that you still need hosting and a domain name to build a website with it.
How Do I Install WordPress?
1. Login to your Hostinger account
2. Nagivate to Websites menu
3. Locate Auto Installer and Choose WordPress
4. Fill in the settings and credentials for your WordPress
5. Click Install
6. Once it’s done, login to your WordPress through https://yourdomain.tld/wp-admin
Do I Need to Install WordPress On My Computer?
You don’t need to have WordPress installed on your computer, but it’s great for learning and testing different things out before pushing your updates to the live version of your website. You will need to install WordPress to your hosting provider, however.