WordPress is the most popular and best CMS to create a Blog. Just because of its easy to use interface. Before getting started with a WordPress Blog or Website, you must have installed it on your Web Hosting. Almost, all Web Hosting provider offers 1 Click installation feature by many of the automated Script Libraries like Fantastico and Softaculous (Script Libraries that automates the Installation of Web Application on a Web Address within 1-2 minutes). But in this guide, I’m going to show you how you can Install WordPress on any Web Hosting or Web Address using cPanel.
Things required to Manually Install WordPress on any Web Hosting :
- WordPress Software, download the latest version of WordPress from their download page or you can direct download here.
- Credentials (username & password) of your Web Hosting or cPanel.
If you don’t already have any Web Hosting Package and you’re roving or finding Best Web Hosting to purchase one, then we’ll recommend you to go for:
- Bluehost Web Hosting, Recommended by WordPress itself
I’m assuming that you’ve downloaded WordPress latest software & you’ve Web Hosting or cPanel credentials too.
So, let’s get to Install WordPress.
Create Database, User & Link them to each other:
Don’t be confused here, just follow the step-by-step instructions & screenshots complete guide. Now login to your cPanel and click on the MySQL Database Wizard under Database section and create a database.
We’ll change this setting in wp-config.php file later.
Click on Next Step and give a username and password there to create Database User, your password must be strong for some Security reasons. I recommend you to use cPanel inbuilt password generator, it generates a strong and complicated password.
As you’ll click on Create User, It’ll ask you to give privilege permissions, click on all privileges and move on to next step.
And that’s all, we’ve successfully created a DB and Username for your new WordPress Installation. I hope that you’ve noted DB name, Username, and Password in a Notepad file if you didn’t then you should right now. You can copy DB name, Username from the MySQL Databases under Database section and Password is all yours. As these will be needed in the next few steps.
WordPress Manual Installation Starts here:
Note:- I’m performing this manual installation on a Sub-domain of HowToCracker.com (test.howtocracker.com).
Upload the WordPress to your cPanel:
Now, click on File Manager under Files section in cPanel (cPanel>Files>File Manager), open the directory where you want to install WordPress. I’m opening /public_html/test .
On the top of the cPanel File Manager window, click on Upload. Then, browse/select the downloaded WordPress Software. Once you uploaded the .zip file, click on Extract button, it’ll ask you the Extraction path (select the path where you want to install extract WordPress).
But, by default extractor creates a new folder as wordpress and extracts in it. Now, we’ll need to move all the files out of folder wordpress (because we’re installing WordPress on a sub-domain test.howtocracker.com, not on test.howtocracker.com/wordpress/). Browse to folder wordpress using the file manager, select all the files and click on move at the top of the file manager, and move all the files directly under your installation directory.
Tip: After the Extraction of all the Files, you should delete the uploaded wordpress software .zip package and empty folder to speed up your blog.
Now, we’re all set to move on to edit the file wp-config.php.
Editing the wp-config.php file (WordPress Configuration):
Now, it’s time to configure WordPress to work with Database.
- Right click on the wp-config-sample.php file.
- Rename it to wp-config.php.
- Now, right click on the wp-config.php and click on Code Edit (here, we’re going to edit the credentials of the database we’ve created in step 1).
So, we’re going to change a couple of things to associate the WordPress installation to the Database we’ve created. We’ll change the database name, username, and password, we’ve defined while creating Database.
Find the lines of code as shown below:
// ** 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');
So replace the database name, username, and password, what we’ve created in Step 1. And, save the file.
I’ll also recommend you to replace some of the lines of code for more Secure WordPress Installation. *(Optional)
Find the link given below in your wp-config.php file, just copy it and paste it into the browser and hit enter. It’ll generate 8 lines of code.
Just copy all the lines of code and replace with:
define('AUTH_KEY', 'put your unique phrase here'); define('SECURE_AUTH_KEY', 'put your unique phrase here'); define('LOGGED_IN_KEY', 'put your unique phrase here'); define('NONCE_KEY', 'put your unique phrase here'); define('AUTH_SALT', 'put your unique phrase here'); define('SECURE_AUTH_SALT', 'put your unique phrase here'); define('LOGGED_IN_SALT', 'put your unique phrase here'); define('NONCE_SALT', 'put your unique phrase here');
Then find a line of code, shown below:
$table_prefix = 'wp_';
Now, replace the wp with a strong word, whatever you want.
And, that’s all we’ve configured the wp-config.php file, just Save the File.
Till now, we’ve just done all the basic settings which we need to Install WordPress Manually. It’s time to execute the WordPress Installation main Script.
Time to Install WordPress on sub-domain Address by Executing Installation Script:
I’m going to perform the last step to have my WordPress Blog up and running. I’ll give a username and password to the WordPress Admin (/wp-admin) and some general settings.
Go to your add-on or sub-domain address:
NOTE: Replace http://subdomain.domain.com/ with your own web address. As I’m installing on sub-domain of HowToCracker, so, I’m going to test.howtocracker.com.
It’ll ask you for WordPress Installation language. So, First select the language of Installation and click continue.
Give Site Title, Username and a complex password to your WordPress Installation. Try to avoid giving admin as username and password for the security of your WP Blog.
And, that’s all you’ve successfully installed WordPress manually. Now, you can log into your WordPress Admin by going to your installation URL followed by wp-admin:
In case, if you’re still facing any problem in Installing WordPress Manually, feel free to ask via comment.
If this article helped you, please don’t forget to share this article to help others.