Nowadays, people are using one-click WordPress installation, apart from filling in the details, you don't need to put any extra manual effort.
But not every web hosting company offers such a feature. Low-budget web hostings still use the manual WordPress installation, especially for the starter plan.
Even though you have a web hosting, which offers some amazing services, you need to know the manual method. WordPress has a vast history, and you need to be ready for every change.
In this tutorial, you're going to learn about installing WordPress without using any built-in tool, which also requires the creation of the database.
When you install WordPress using any built-in software, you don't need to create the database manually; the software does that for you.
Download WordPress then Upload it to Your Server
The first step is to download WordPress from its official website.
As you can see, there is a big button to download the file; you can also download WordPress in a TAR file. Keep the ZIP file safe on your computer.
Now follow the steps.
Login to your web hosting cPanel account and open the file manager, that's where you're going to have all of your site's data.
Open public_html from the left-hand sidebar. Click on the Upload option from the cPanel's navigation menu.
A new tab opens up in the browser, where you can spot a button to choose a file from your computer. Once the WordPress file upload process gets completed, return to the public_html directory.
Now you can see a ZIP file. Right-click and choose extract.
You can see a popup to confirm the location to extract the content inside the ZIP file. As you're already in public_html, click on the Extract File(s) button.
A new popup appears showing the extraction results. Click on the Close button.
As you can see, there is a WordPress folder along with the ZIP file. Now if you keep the installation inside this folder, the website URL will consist /WordPress/, which isn't right.
So you have to move all files and folders outside the WordPress folder to public_html.
Open the folder, select all, right-click and choose the move option.
A popup appears, where you have to choose the extraction location, fill in public_html and click on the Move File(s) button.
You have done half of the work.
Create and Assign the Database User to the Database
As you know, WordPress runs a MySQL database, so you need to create a new database and its user. Go back to the main cPanel and open MySQL Databases.
There are three steps you need to follow.
Create a new database. Scroll down, and you can see a heading, fill in the name and click on the Create Database button.
Once you create the database, you need to create a new user for it. Scroll down, and you can see a few empty fields to fill in.
Choose the database user and its password. Click on Create User.
Once you create the database and its user, you need to assign the database to the user you just created. Choose from the drop-down menu for each.
Click on Add.
You're almost done.
Connect the Database to Your WordPress Installation
This is the vital step most of the people forget and get "Error Establishing a Database Connection." Right now, there is no connection between the database and your WordPress installation.
So, you require to edit the wp-config.php file. Go to public_html and look for the file. Right-click to edit.
Scroll down and you can see a few coding lines related to the database name, database user etc.
/** The database name*/ 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');
All you need is to fill in the database details so that WordPress knows about it. Click on the Save Changes.
Now if you open your website's URL on the browser, you see the similar WordPress installation page you see usually. Fill in the site title and some necessary details.
Just go on, and within a few minutes, you will have your WordPress website ready.
I Hope it's Not Hard as People Think
WordPress installation used to be challenging a few years ago. Because of the one-click installation software, everything has changed.
But you should never forget the original way to accomplish a task. You can use the manual WordPress installation wherever you want.
Think it like a backup plan. In case one of your clients' web hosting doesn't support one-click installation; you can always use the manual method.
I hope you have understood the concept.