How to Install WordPress in Control Web Panel

Install WordPress with Control Web Panel (CWP)
Install WordPress with Control Web Panel (CWP)

WordPress is the most popular self-hosted website builder today. It’s a great choice for building a powerful website that can scale to include customer management and project management functionality. Below we’ll cover how to install WordPress on Control Web Panel (CWP), formerly known as CentOS Web Panel.

Install WordPress in Control Web Panel

  1. Log into Control Web Panel.
  2. On the left select “New Account.”
  3. Add the WordPress domain name along with a CWP username, password, and email address. 
  4. Choose the “default” package if you’ve not created others. 
  5. Select “Create” at the bottom. This will also create a MySQL user for the account linked with the user’s password.
    Create a New CWP Account
  6. On the left select “MySQL Manager.”
  7. At the top select “Add new database.”
    CWP MySQL Manager
  8. Select the new CWP user account, specify a database name, and select “Save.”
    Create a MySQL database in CWP
  9. At the top select “Terminal” and “Simple Terminal” to open a new window.
  10. Navigate to the new user’s public root directory, replacing “USER” with the CWP username:
    cd /home/USER/
  11. Download the latest version of WordPress:
    wget https://wordpress.org/latest.tar.gz
  12. Extract the tar file:
    tar -xvzf latest.tar.gz
  13. Remove the default CWP index file:
    rm index.html
  14. Move all the files from the new “/wordpress” directory to the current directory:
    mv wordpress/* ./
  15. Remove the now empty “/wordpress” directory and tar file:
    rm -rf wordpress latest.tar.gz
  16. Change the owner of the website files from root to the CWP user, replacing “USER” with the CWP username:
    chown -R USER:USER *

Configure WordPress

  1. Visit your WordPress domain in a web browser. You’ll be redirected to the setup wizard.
  2. The first page will show the WordPress logo and available languages. Select your primary language and continue.
    Choose a language
  3. The next page states what info you’ll need from the database you created earlier. Select “Let’s go!”
    WordPress installation preparation
  4. Add the database name, database owner/user, and CWP user password. Select “Submit.”
    Add MySQL database info
  5. If there are no issues you’ll see a short success message. Run the installation.
    Database connection success
  6. Add a WordPress site title, admin username, password, and email account. If you wish to discourage search engines from indexing this site, you should install a maintenance mode plugin later on to better prevent unauthorized access. Install WordPress.
    Add WordPress site details
  7. The success page will show your admin user. Log into WordPress.
    WordPress installation successful

Update PHP in CWP

Notification to update PHP version

If your dashboard includes a notice to update PHP, open “PHP Version Switcher” in CWP.

This option changes the PHP version for the entire server. You’ll need CWPpro to specify different PHP versions for different users in PHP Selector. Select the latest version in the drop-down menu.

The page will refresh to show PHP modules to install. The default options will suffice. Select “Save & Build” at the bottom. 

CWP PHP Version Switcher from 5.6 to 8.1.1

The page will refresh but the installation will take up to five minutes to complete in the background. You can open the CWP terminal to check the PHP installation progress: 

tail -f /var/log/php-rebuild.log

Get Started with WordPress

Here are a few ideas to get you going in your new WordPress site.

  1. Install an SSL certificate.
  2. Install a maintenance mode plugin if you need to restrict access during development.
  3. Install a WordPress security plugin.
  4. Install a WordPress backup plugin.
  5. Install a search engine optimization (SEO) plugin such as All in One SEO.
  6. Consider an analytics application. We have a guide for installing Matomo in CWP.
  7. Know how to repair WordPress databases.

Learn More

Learn to do more with your website from our WordPress Education Channel.

Or, learn more about how to harden your cloud server.

Make sure your business, agency, or reseller clients are always connected and powered on with our optimized Managed VPS Hosting.
InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!