WordPress is the most widely used content management systems out there. Most hosting providers have a dedicated option to install WordPress and get started easily. However, if you wanted to install WordPress in cPanel manually, you will have to download the WordPress package on your computer and then upload it to your hosting account. Below is a quick guide to installing WordPress manually.
How to Install WordPress in cPanel Manually
- Download the WordPress package from the website: https://wordpress.org/download/
- Unzip the file to your computer and upload it to your hosting account. For that, log in to your cPanel account and go to File Manager. Then click on Upload in the Settings pane and select the file on your computer.
- After uploading, create a MySQL Database and User in the hosting account. Enter the database username and password as desired, and note the details for later use.
- Go to the File Manager in cPanel again and expand the public_html Look for the wp-config-sample.php file in the folder containing the WordPress installation.
- Right-click on the wp-config-sample.php file and rename it to wp-config.php. When done, right-click on the wp-config.php file and select Code Edit.
- Look for the below code in the file:
define(‘DB_NAME’, ‘database_name_here’);
/** MySQL database username */
define(‘DB_USER’, ‘username_here’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘password_here’);
Change the “database_name_here”, “username_here”, and “password_here” fields with the database name, username, and password you created earlier. When done, click on the Save Changes button and close the file.
- Now open a new browser window and go to http://your-domain.com/wp-admin/install.php to run the WordPress installation. Change the “your-domain” in the URL to where you have uploaded the script. This will show you a page saying, “Welcome to the famous five minute WordPress installation process!”
- Complete the installation by entering the site name, username, password, and email address. Click Install Now and let the process complete. When done, you will see a message saying, “Success! WordPress has been installed.”