How to Install WordPress

How to Install WordPress

Are you looking for a way to install WordPress on Localhost XAMPP? Then, you’ve found the right article. Not only on Localhost XAMPP, but this article will also discuss how to install WordPress with various other methods, from installing WordPress on cPanel to installing WordPress on a subdomain.

How to Install WordPress on Localhost XAMPP?

XAMPP is useful for running PHP scripts on localhost or computer without an internet connection. For example, by installing WordPress on XAMPP, you can test a website offline without worrying about the script being tampered with by others. 

Some steps to install WordPress on Localhost using XAMPP are:

  1. Create MySQL Database;
  2. Downloading WordPress;
  3. Performing a WordPress Installation.

To be clear, the following is a discussion of the steps to install WordPress on Localhost using XAMPP.

1. Step: Create Database

Before establishing WordPress, you need to create a MySQL database first. To get started, please access the following link  http://localhost/phpmyadmin.

Please click on the Databases tab, then enter the database name in the Create database column. In this tutorial, we created a database named WP. After that, please press the Create button.

You can also like this post: How to Verify Google Search Console in WordPress

2. Step: Download and Manage WordPress Database Details

Download the WordPress installation file first via the following link.

Then copy the WordPress installation files into the htdocs folder,  C:\xampp\htdocs.

To install WordPress on Localhost XAMPP, you need to extract files using WinRAR.

Then rename the WordPress folder as desired. For example, in this tutorial, we changed it to WP. 

Please open the WP folder, then select the wp-config-sample.php file and rename it to wp-config.php.

Open the file, then scroll until you find the detailed database code as below.

Please change a few lines of code according to the database details that were previously created.

Replace “database_name_here” with the name of your Database. In this example, it is WP.

Replace “username_here” with “root”, and for “password_here” please leave it blank.

Please save the file.

3. Step: Install WordPress

At this step, you can already install WordPress. First, please open your browser, then type the following URL http://localhost/wp/.

Please select the language you want. When finished selecting the language, press the Continue button.

In the next step, please enter the following details.

  • Database Name: filled with the name of the Database. This tutorial is filled with  WP.
  • Username: filled with root.
  • Password: blank.
  • Then click the Submit button.

Please click the Run the install button.

Please enter details about your WordPress website, then click the Submit button.

  • Site Title: The main title of your website
  • Username: the username that will be used to login into the WordPress dashboard
  • Password: the password that will be used to login into the WordPress dashboard
  • Email: your active email address.

If the installation process is successful, you can log in to the WordPress dashboard by clicking the Login button and entering the username and password you created earlier.

You can also like this post: What Is a Shortcode?

install wp on cpanel

How to Install WordPress on cPanel

Installing WordPress on cPanel can be done in two ways: manual and using the Softaculous auto-installer. At this point, we will discuss how to install WordPress manually first.

Follow the four easy steps below:

1. Step: Download the WordPress Installation File

First, download the WordPress installation file on the official website. Save the ZIP file without extracting it first. This ZIP file will be used in the next step.

2. Step: Upload Files Using File Manager

The second step is to upload the previously downloaded WordPress ZIP file using the cPanel File Manager.

  1. Access File Manager in your cPanel
  2. Open the public_html directory in the left column, then click the upload button in the menu bar.
  3. Please wait until the file upload bar is green, then click Go Back to below it.
  4. Select the WordPress ZIP file, then right-click and select “Extract.”
  5. Once extracted, the ZIP file will be in the WordPress folder. To access your blog via, you need to move all files in the WordPress folder to the public_html directory.
  6. Select all the files in the WordPress folder, then right-click and select move. After that, you will be provided with the destination public_html/WordPress. Remove word WordPress, and you will get a destination to public_html directory, then click move.
  7. After moving all the WordPress files to the public_html directory, you can delete the WordPress folder and its ZIP files.

3. Step: Create a MySQL Database

Creating a database in MySQL can be done using the MySQL Databases or the MySQL Databases Wizard. For example, in how to install WordPress using FTP, we have used MySQL Databases.

This time we will use the MySQL Databases Wizard. Not too much different from MySQL Databases, you need to fill in information such as database name, username, and password. Then click Create User.

You can also like this post: How to Fix The upload_max_filesize Error in WordPress

After filling in all the information above, you need to grant access rights to your User by selecting ALL PRIVILEGES, then click Next Step.

The stage of creating a database in MySQL has been completed.

4. Step: Run the WordPress Installation

Well, after uploading all the WordPress installation files and creating a MySQL database, it’s time for you to open your domain in your browser to continue the installation process.

  1. Select the language you will use in WordPress
  2. Click Let’s Go to start filling in the MySQL database information that you created earlier.
  3. In this section, you are asked to fill in the MYSQL database information created previously, from the database name, username, password, database host to the table prefix.
  4. WordPress will continue the installation process if there are no errors in filling out the database information. Click Run to Install
  5. In this section, you will be asked to fill in the website and administrator information:
  1. Site Title: Your Website Title
  2. Username: Administrator username
  3. Password: Administrator password
  4. Your Email: Administrator’s email address

Search Engine Visibility: WordPress will prevent search engines from reading your website if this section is checked.

5. Step: Installation Complete

If there are no errors, you can directly log in to your WordPress admin.

install with softaculous

How to Install WordPress with Softaculous Auto Installer?

As mentioned earlier, you can also install WordPress on cPanel using the Softaculous auto-installer. Softaculous is popular and easy to use to install various applications.

Here are the steps:

1. First Step

Go to the cPanel home and find the Softaculous Apps Installer menu.

2. Second Step

Click the WordPress icon below it.

3. Third Step

You need to fill in the data as below:

Choose Protocol

If you already have SSL installed, it is recommended to install WordPress on the HTTPS protocol. You can check out our article about how to install an SSL certificate to WordPress to see how it works also.

You can also like this post: How to Disable Cropping in WordPress

Choose Domain

If you have subdomains or add-on domains in your cPanel, you can select them here.

In Directory

Enter your WordPress installation directory. If you have WordPress installed on your primary domain, this section can be left blank.

Site Name

Write the name of your WordPress website.

Site Description

Also, include a brief description of your website.

Multisite Email

This feature makes it possible to create multiple WordPress websites using the same WordPress installation. Click if you want to use this feature.

Admin Username

Fill in your website administrator username.

Admin Password

Fill in the password for the administrator account above.

Email Admin

Enter your active email address here. The email address you enter here is helpful for receiving notifications and password reset requests.

Select Language

Select the language you want to use in WordPress

You can also add any plugins you want to add to your website. The final step is to click install, and Softaculous immediately starts installing WordPress for you.

install wordpress on a subdomain

How to Install WordPress on a Subdomain

Installing WordPress on a subdomain is relatively easy. First, make sure that you have created a subdomain in cPanel.

Time needed: 30 minutes.

Here are the steps to install WordPress on a subdomain:

  1. First Step: Open cPanel

    Open cPanel, then click the WordPress menu in Softaculous Apps Installer.

  2. Second Step: Click Install Now

    Click Install Now and then select the subdomain where you want to install WordPress.

  3. Third Step: Fill Data

    Then fill in the website data as usual, from the website name, website description, username, password, language, to the theme. After that, click Install, and the WordPress installation on the subdomain is complete!

    You can also like this post: Useful WordPress Plugins: Some of Our Picks

FAQs About How to Install WordPress 

What can I use for running PHP scripts on localhost?

For running PHP scripts on localhost, you can use XAMPP.

How can I install WordPress? 

You must create a MySQL database before installing WordPress

How can I make a database in MYSQL? 

You can make a database in MySQL by applying the MySQL Databases Wizard or the MySQL Databases.

How can I prevent search engines from reading my website? 

To prevent search engines from reading your website, Search Engine Visibility must be checked.

How can I install WordPress on cPanel? 

You can install WordPress on cPanel using the Softaculous auto-installer.

How to Install WordPress in Short

Thus the article on how to install WordPress for free on various platforms. The platforms we have mentioned include Localhost, cPanel, Softaculous, and through a subdomain. If you request to discuss how to install WordPress on another platform or use another method, you can contact us or leave a comment below.

We think that you may also be interested in which is our previous post about Software Support.
Click to rate this post!
[Total: 27 Average: 5]
Diego Manson

Posts: 232

My name is Diego Manson, or as people call me, Seodiego. I'm an SEO enthusiast and blogger. Because of my interest in the internet, I wanted to make it a better place for myself. That's why I'm into SEO. I try to share all I know and learn with everyone to help people improve their online skills.

No comments to show.

Your email address will not be published. Required fields are marked *