Install WordPress on your cPanel hosting
WordPress installs in a few minutes on a cPanel hosting: you need a database, the WordPress files in your site's folder, then a wizard to fill in in the browser. This article describes the manual installation, which works on any cPanel hosting, whether or not your account offers an automatic installer.
Before you start
- You can log in to cPanel (see Log in to cPanel).
- Your domain points to the hosting (see DNS propagation if you have just changed it).
- Decide where to install WordPress: at the root of the site (
public_html, see The public_html folder) or in a subdomain (see Create a subdomain in cPanel). The chosen folder must be empty, or contain only the placeholder page. - Prepare a strong administrator password and the site name.
- Check your domain's PHP version: on wordpress.org, WordPress states the PHP and MariaDB or MySQL versions it requires. To change it, see Change the PHP version and its limits in cPanel.
Steps
1. Create the database
Create a MySQL database and its user, with all privileges on that database: see Create a MySQL database and its user in cPanel. Write down the database name, the user name and the password: the WordPress wizard will ask for them. The database server is localhost in the vast majority of cases (see Connect your PHP site to MySQL).
2. Download WordPress
On the official wordpress.org site, download the latest version of WordPress: a .zip file.
3. Send the files to the hosting
- In cPanel, open the File Manager (see Use the cPanel File Manager) and go to your site's folder.
- Upload the
.zipfile with Upload, then right-click the file and choose Extract. - The archive creates a
wordpressfolder. Open it, select all its contents, then move them one level up, into the site's folder (Move File(s)). Theindex.phpfile must sit directly in the site's folder, not in awordpresssubfolder. - Delete the
.zipfile and the now-emptywordpressfolder.
Another option: upload the files by FTP (see Publish your site by FTP with FileZilla).
4. Run the installation wizard
- In your browser, open your site's address. The WordPress wizard starts: choose the language, then click Let's go.
- Enter the database name, the username and the password you noted in step 1, the database host (
localhost) and a table prefix. Keepwp_or choose another one. Submit. - Click Run the installation.
- Fill in the site title, an administrator username (avoid
admin), a strong password and your email address, then click Install WordPress. - Log in to the administration at
https://your-domain.com/wp-admin.
Expected result
Your site's address shows a WordPress site, and the /wp-admin address opens the dashboard after login.
After the installation
- Switch to HTTPS: see Enable a free SSL certificate on your site, then Redirect a page or force HTTPS.
- Keep everything up to date: WordPress, themes and plugins. Delete the ones you do not use.
- Back up regularly (see Back up your site, emails and databases in cPanel).
- Read our advice: Securing a WordPress Site: Key Habits to Adopt.
If something goes wrong
- "Error establishing a database connection". One of the database values is wrong. Go over the database name, user and password again (cPanel often prefixes the database and user names with the account name), and check that the user was added to the database with all privileges.
- The wizard does not start and the browser shows a file list or a 404 error. The files are in the wrong place:
index.phpmust be in the domain's folder. Go back to step 3. - A blank page or a 500 error appears. The PHP version may not suit your WordPress: see Change the PHP version and its limits in cPanel.
- The wizard cannot write
wp-config.php. It then shows the file's content: copy it into awp-config.phpfile created with the File Manager, at the root of the site. - The site shows without styling after switching to HTTPS. The addresses stored in WordPress are still
http://: fix them in Settings › General in the administration.
Frequently asked questions
Can I install WordPress in a subfolder?
Yes: upload the files into the subfolder (for example blog), and open https://your-domain.com/blog to start the wizard.
Can I install several WordPress sites on the same hosting?
Yes, with one database and one folder per site. An additional domain or a subdomain has its own folder (see Add an extra domain or an alias to your cPanel hosting).
Where are my theme and plugin files?
In the site's wp-content folder: themes for themes, plugins for plugins.
I already have a WordPress site elsewhere: how do I move it?
See Move your website from another host to Atlas Hoster.
Related articles
- Create a MySQL database and its user in cPanel
- Enable a free SSL certificate (AutoSSL, Let's Encrypt) on your site
- Securing a WordPress Site: Key Habits to Adopt
A WordPress site to host? See our web hosting plans.