How to Install WordPress Manually in cPanel
WordPress is one of the most popular content management systems (CMS) in the world, and installing it manually through cPanel is a straightforward process. This guide will walk you through the steps to set up WordPress manually on your hosting account using cPanel.
Step 1: Download WordPress
- Visit the official WordPress website at https://wordpress.org.
- Click the Download WordPress button to get the latest version of the WordPress software.
- Save the downloaded
.zipfile to your computer.
Step 2: Log In to Your cPanel
- Access your cPanel by visiting
https://yourdomain.com/cpanel(replaceyourdomain.comwith your domain name). - Enter your cPanel username and password.
Step 3: Upload WordPress Files
- In cPanel, locate the File Manager under the "Files" section.
- Navigate to the directory where you want to install WordPress:
- For the main domain, go to the
public_htmlfolder. - For a subdomain or addon domain, navigate to its respective folder.
- For the main domain, go to the
- Click Upload at the top of the File Manager.
- Select the WordPress
.zipfile you downloaded earlier and upload it. - Once the upload is complete, go back to the File Manager and extract the
.zipfile by right-clicking on it and selecting Extract. - Move the extracted files from the
wordpressfolder to the root of your installation directory (e.g.,public_html). Delete the.zipfile and the now-emptywordpressfolder.
Step 4: Create a Database
- In cPanel, find the MySQL Database Wizard under the "Databases" section.
- Follow these steps to create a new database:
- Enter a name for your database and click Next Step.
- Create a database user by entering a username and password, then click Create User.
- Assign all privileges to the user and click Next Step.
- Make a note of the database name, username, and password; you’ll need them later.
Step 5: Configure WordPress
- Go back to the File Manager and locate the
wp-config-sample.phpfile in your WordPress installation directory. - Right-click on the file and select Edit.
- Replace the following placeholders with your database details:
define('DB_NAME', 'your_database_name'); define('DB_USER', 'your_database_user'); define('DB_PASSWORD', 'your_database_password'); - Save the changes and rename the file to
wp-config.php.
Step 6: Run the WordPress Installation
- Open your browser and go to
https://yourdomain.com(or the subdirectory where you installed WordPress). - You will see the WordPress installation wizard. Follow these steps:
- Select your preferred language and click Continue.
- Enter your site details, including the site title, admin username, password, and email address.
- Click Install WordPress.
- Once the installation is complete, you’ll see a success message. Click the Log In button to access your WordPress dashboard.
Final Thoughts
You’ve successfully installed WordPress manually through cPanel! From here, you can customize your site by installing themes, plugins, and adding content. If you encounter any issues or need assistance, feel free to contact your hosting provider for support.