How to install WordPress on cPanel
In this tutorial, we’ll show you how to install WordPress on cPanel in a straightforward way, using Softaculous, the File Manager, or FTP, along with a MySQL database managed through phpMyAdmin.
WordPress is a free, open-source content management system (CMS) known for its versatility and ease of use. There are several ways to install WordPress, from using the Softaculous installer to doing everything manually through the File Manager or with an FTP client.
Contents
How to install WordPress with Softaculous
Prerequisites
To begin, you’ll need your domain/website already set up in MigraCloud’s infrastructure.
- Access to the cPanel control panel
How to install WordPress with Softaculous
A quick and easy way to install WordPress is with Softaculous, a popular Automatic Installer for cPanel.
Step 1: Find the Softaculous installer
Once you’re in the control panel, find the Softaculous App Installer section and click the WordPress icon.
Step 2: Installation and domain setup
Click the Install button for WordPress.
On the next screen, you’ll see some fields related to your WordPress settings.
- Choose the installation URL: By default, the site is accessed over https. Choose the domain where you want to install it;
- Choose the version you want to install: Select the WordPress version. The latest version is recommended;
Step 3: Enter the site settings
Below the settings, you’ll find the fields for your site’s configuration.
1 – Fill in the site settings:
- Site Name: Enter the name of your site;
- Site Description: Write a short summary of what your site is or does;
- Disable WordPress Cron: If selected, WordPress’s built-in cron is disabled, and a cron job is added to your control panel to run twice an hour.
2 – Fill in the administrator account details:
- Admin Username: Set the username for accessing the WordPress dashboard;
- Admin Password: Enter a password for the user you’re creating. Tip: click the key icon next to the field to generate a strong password. Copy it and save it for later use;
- Admin Email: Enter an email address to receive WordPress notifications. It’s important that the email address exists. You can use any email address you have access to, even one outside the domain of the site you’re creating;
3 – Choose the language
Select the default language, as shown in the image below.
4 – Select the plugin(s)
In the Select Plugin(s) section, you can choose the plugin(s) you want to install along with WordPress.
Advanced Options
After filling in the information from the previous steps, you’ll find Advanced Options. To view them, click the + icon.
We recommend keeping the default settings that are already filled in, unless you want to change the database name or set up automated backups.
After filling in all the information correctly, click the Install button and wait for the installation to finish. When it’s done, your WordPress site details will be displayed on the screen.
How to install WordPress with the File Manager
This method involves manually uploading WordPress to cPanel. Although it’s a longer process, it’s also simple and direct to follow, even for beginners.
1. Prepare the WordPress installation
Download WordPress from the official site, WordPress.org. Be sure to download the latest version and extract it from the ZIP file.
Once you’re in the control panel, find the Files section and click the File Manager icon.
Then, when the manager opens, select the directory where WordPress will be installed. If you want to install WordPress directly at the root of your site, select the folder “public_html”. If you want to install it on a subdomain, select that subdomain’s directory.
In our example, we’ll install WordPress at the root of the site, that is, in the public_html directory.
So, after opening the directory, upload the file you downloaded in the previous step. To do this, click the Upload button, as shown in the image below.
Then, on the page that opens, select the file or drag it there.
The file will be uploaded to the chosen directory. Once the upload is complete, the progress bar turns green, and you can go back to the directory.
Extract the Files on the Server
Now that the compressed file is on the server, we’ll extract, that is, unzip, the WordPress files on your server.
To do this, select the compressed file in the directory, right-click it, and select the “Extract” option.
Then, just confirm by clicking “Extract file(s)”.
Finally, the WordPress files are now on your server. However, notice that the files are all inside a new folder called wordpress, not directly in your directory.
So, open that folder, select all the files, right-click, and choose the “Move” option.
Now just select the folder in the directory above. In our example, that would be the public_html folder. Finish by clicking “Move file(s)”.
Finally, the files are unzipped on your server!
2. Create the MySQL Database and User in cPanel
WordPress needs a database to work. So, let’s create a MySQL database for it, along with a user for that database. Be sure to save all the information, such as the database name, user, passwords, and so on.
So, through our cPanel, let’s access the databases. Find the Databases section and click the “MySQL Databases” option in your cPanel, as shown in the image below:
Now create a database. Just type a name for your database and select the “Create Database” option. See the example in the image below:
Next, you’ll need to create a username and password to access this database. So, on the same database page, scroll down to “MySQL Users.” In this part, define a username and a password. Be sure to save this information. Click “Create User.”
Now, you’ll need to assign this user to the database you created. To do this, scroll down to “Add User To Database.” Select the user you created and the database, and then click “Add.”
Now select the “ALL PRIVILEGES” option; all options will be selected automatically. Finish by clicking “Make Changes.”
Now your MySQL database and user are created. Let’s move on to the final step of installing WordPress!
3. Run the WordPress Installation
Now that all the WordPress files have been added manually through cPanel, and we’ve created our database, it’s time to finally install WordPress.
This step is quick and simple!
In your browser, go to your domain. The first time you access the domain after completing the previous steps, you’ll see the WordPress installer.
First, choose the language and click the Continue button.
After choosing the language, WordPress will show you some requirements. If you followed the steps correctly up to this point, you don’t need to worry about them, so move on to the next part.
At this stage, WordPress will ask for the database information we created earlier. Enter all the details, including the username and password you created. On the server, you can leave it as “localhost.” Finally, choose a prefix for the tables that will be created, or leave the default. Then just click “Submit.”
Now WordPress will verify all the database credentials. If everything is correct, just click “Run the installation.”
Finally, you’ll need to enter the details to create your site’s administrator account. Be sure to enter a real email address, since you may use it later.
Done! We’ve now finished installing WordPress manually using cPanel!
Accessing your site’s WordPress admin dashboard
To access your site’s admin dashboard, type your domain name followed by /wp-admin.
For example, if my domain is “yourdomain.com,” then to access the admin dashboard, I would type this URL in the browser: “yourdomain.com/wp-admin.”
When you open this URL, a screen like the one in the image below will appear.
Just enter the username and password you registered during the installation, and you’ll have access to your WordPress site’s admin dashboard!
How to install WordPress with FTP
To install WordPress via FTP, you must already have:
-
Created a database. If you haven’t done this, see how to do it
-
An FTP username and password. If you haven’t created them yet, see our article: How to get FTP details and access FTP in cPanel
-
Download WordPress: Click here
-
Unzip the .zip file and then upload the files to your hosting in the root folder or in a folder you created on your FTP server, as shown in the example image below:
After unzipping and uploading the content via FTP, open your URL, for example: http://yourdomain.com, or if you installed it in a directory, open http://yourdomain.com/directory. When you access it, follow the steps to complete the installation.
Conclusion
This tutorial showed how beginners can install WordPress, either manually or automatically.
Now it’s time to set up your new WordPress site.