WordPress Installation Using CPanel: WordPress is one of the most commonly using CMS in the websites. WordPress has the compatibility to work with MySQL DB & Linux OS. In this tutorial, we added the information about installing WordPress using CPanel manually. Follow the instruction to do:
- What is CPanel?
- Manually Install WordPress using CPanel
- WordPress Download
- Upload WordPress in CPanel
- Create MySQL DB
- Create DB Users
- Assigning Permissions
- WordPress Configuration
- WordPress Unique Keys & Salts
- Test Your WordPress
- Completing Installation
What is CPanel?
CPanel is the web hosting server account and you are the administer. Most of the CPanel comes with WordPress as a default option otherwise automatic scripts such as Softaculous and Fantastico help you install WordPress. If your CPanel misses WordPress, then follow the below instructions to install WordPress manually.
Manually Install WordPress using CPanel:
Below are the essential steps you need to follow without skipping any step:
You need to download the latest version of WordPress from their official website.
Once you downloaded the WordPress.zip file. You need to upload the zip file into the CPanel. Follow the next steps.
Upload WordPress in CPanel:
Now, you need to open your CPanel account. If you are unable to find the CPanel login, kindly open the link “https://www.example.com/cpanel“. Replace “example.com” with your owned domain. Now logging into your account. Go to the “File Manager” option.
You can find the File Manager option under the”Files” section.
You have two options available to install WordPress and they are:
- Install WordPress in the public domain root directory
- Install WordPress in a custom directory
Install WordPress in the public domain root directory:
You can install WordPress in the Domain Root Directory (https://www.example.com/). To do, you need to upload the WordPress files in the public root domain directory.
Install WordPress in a custom directory:
You can install WordPress in a custom directory. Simply you need to create a new directory (e.g: https://www.example.com/blog/). Then upload the WordPress files inside the “blog” directory.
Once you chose the location and upload the WordPress files. Extract the zip file. Now you need to delete the WordPress.zip file from your server.
Now you need to initiate the WordPress installation process. Follow the instructions:
- Open your domain in new tab “https://www.example.com/wordpress“
The WordPress installation contains the following steps:
- Create MySQL DB
- Create MySQL DB Users & Credentials
- A DB host
- Run multiple websites in a single DB using a table prefix
- Create unique salt keys
Create MySQL DB:
Now you need to access the MySQL Database Wizard to create the new DB.
- Provide the name to your new database.
Click the Next Step button to create the Database. Follow the next instructions.
Create DB Users:
In the next step, you need to create the user for the database. Enter the username, password and click the “Create User” button to create the new users to the database.
The created new user does not have any access to your website database. You need to assign and give permission to the user to handle WordPress DB.
Find the Add User To Database section of the page. Under the User drop-down menu, select your newly created user. Choose your newly created database under the Database drop-down menu and click Add. Now you need to assign the permissions of the user to the database. You need to check in the “All Privileges” option. Now, click the “Make Changes” option to complete the process.
You can verify the process by accessing the newly created DB with authorized users. The user has been added to the list of DB authorized users. Now you need to go back to the WordPress installation URL. https://www.example.com/wordpress.
Yay, you have successfully completed creating DB and authorized users. Now you need to complete the WordPress Configuration. To complete the process, find the file “wp-config-sample.php or wp-config.php” and edit the file with a text editor. You need to add the instructions about your newly created Database and newly created authorized user in the wp-config.php file and save the file.
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'mydomain_new_wp_db'); /** MySQL database username */ define('DB_USER', 'adminsam'); /** MySQL database password */ define('DB_PASSWORD', 'Created*Password'); /** MySQL hostname */ define('DB_HOST', 'localhost');
- You need to replace the mydomain_new_wp_db with the DB name of your website
- You need to replace the adminsam with the username of your DB
- You need to replace the Created*Password with the password of your DB
- You don’t need to replace the option DB_HOST option.
Once you do the changes, then save the file. Follow the next instruction.
WordPress Unique Keys & Salts:
In this step, you need to enter your WordPress unique keys and salts. You need to add the unique keys and salts information on the wp-config.php file. Create unique keys and salts from the official WordPress website: https://api.wordpress.org/secret-key/1.1/salt/
Copy those codes and paste the codes in the wp-config.php file. Now save the file and close it. You are all set to go.
Test Your WordPress:
You can test whether WordPress is successfully installed or not! open the following link in the new tab “https://www.example.com/wp-admin/install.php” (Replace example.com with your own domain). You will see the WordPress DB connection configuration wizard as we showed in the below image, which means you have successfully installed the WordPress on your website.
Completing WordPress Installation:
After connecting the WordPress, you need to finalize the installation process.
Enter the required information and click the “Install WordPress” button to complete the installation process. You can access the WordPress dashboard using the following URL “https://www.example.com/wp-admin/“.
That’s it. This is how you manually install the WordPress CMS using CPanel. Kindly follow all the instructions that we mentioned above. If you have any queries related to this topic and then feel free to comment us below.
For more articles, Kindly visit our HomePage