Disclaimer: This is a user generated content submitted by a member of the TheOmniBuzz. The views and writings here reflect that of the author and not of TheOmniBuzz. If you have any complaints regarding this post kindly report it to us.

How To Install WordPress On VPS Hosting?

WordPress is used by 30.3 percent of the top 1000 websites on the internet. These figures say much about WordPress’s popularity and choice. Not only that, but WordPress websites have a higher Google ranking.

It may surprise you to learn that WordPress handles 80-90 percent of Google’s crawling concerns. It might be a bit difficult, but not impossible, to install WordPress on your VPS hosting server.

We’ll go through how to install WordPress on your VPS server in this blog. This may be done using cPanel, automated installation, or CWP. Let’s get this party started right immediately.


(Related – Best Cheap Wordpress Hosting Services)

How to manually install WordPress on a VPS using cPanel?


Step 1: Install WordPress on your computer.

It’s a really easy and uncomplicated procedure. Begin by going to their official website and downloading the most recent version of WordPress.


Step 2: Install WordPress on your VPS.

  • You must provide a zip file containing the components necessary to install WordPress. To begin the installation, go into your cPanel account. If you’ve just purchased the plan, keep in mind that you’ll need to set up your cPanel.


  • You may also use tools like CyberDuck, WinSCP, Bitkinex, and others to upload these files.


  • The cPanel file management tool is the finest, in my view, but you may use whatever works best for you. cPanel is ideal for those unfamiliar with or unable to use FTP software.


  • Log into your cPanel account and select File Manager from the drop-down menu.


  • Go to the public HTML directory and double-click it.


  • You’ll need to create a website folder if this is your first time doing it. If you’ve previously made a folder, you may skip this step.


  • Select +Folder from the menu.


  • Give the folder a name, and then click on it to open it. Select “Upload” from the menu.


  • Now, select the option – Select file & upload the zip file you already downloaded.


  • To upload a file to “/home/newhostitsmart/public html,” go to “/home/newhostitsmart/public html.”


  • After the zip file has finished uploading, go return to “home/newhostitsmart” by clicking the link at the bottom (just an illustration). It will take you to the appropriate file directory.


  • When you go to the previous page, click refresh, and the zip file you uploaded will appear. Select the zip file and select Extract from the drop-down menu.


  • A window will now show on your screen, requesting confirmation of the extract location. When selecting an extract location, exercise extreme caution. When you’ve found the right location, pick the extract file option.


  • WordPress will now be in your file directory. It’s okay to remove the zip file from the directory at this time.


Step 3: Files from WordPress should be moved to the root directory.

  • Bravo, you now have access to all WordPress files, but the task is far from finished. It would be best if you relocated them to the proper spot.


  • Select all of the files within the WordPress folder.


  • Move all files into the public HTML directory with the move option.


  • After you’ve chosen a suitable place, pick the move files option.


Step 4: Make a whole new database.

  • Patience is a virtue, my buddy. We’re almost done; it’s time to start with a new database again. Go to cPanel and select MySQL Database Wizard from the drop-down menu. The database must be given a name.


  • Go to the MYSQL Wizard page.


  • Choose a memorable name for your projects, such as WP2022 or something similar, because you’ll need it to complete the stages that follow.


  • After giving the database a name, click the Next step button.


  • Now you must establish a database login and password.


  • Click the Create User button once you’ve completed these steps. The following step is to choose the account’s privileges. To do so, select the option – All privileges, then click the Next step button.


You’ve constructed the database, which is fantastic.


Note: You’ll need the database name, username, and password to connect WordPress to the database, so write them down.


Step 5: Make changes to the file wp-config-sample.php.

All of your hard work creating a database will be for naught if WordPress cannot access it. You must change the wp-config-sample.php file for WordPress to use the database.


What is the procedure for editing the wp-config-sample.php file?

  • Select the wp-config-sample.php file from the public HTML directory. Right-click the file and select Edit from the menu that appears.
  • A popup will appear on your screen, with choices such as download, view, Edit, move, and copy. Click the edit button to continue.
  • To verify that it links with the database you established, you must locate and update three precise lines inside the same file.
  • To begin, locate –


define(‘DB NAME’, ‘database name here’); define(‘DB NAME’, ‘database name here’); define(‘DB NAME

Then, change the database name here to your database’s name.

Identify –

define(‘DB USER’,’username here’); define(‘DB USER’,’username here’); define(‘DB USER’,

Now, change your username here with your new username.

Finally, look for –


if (‘DB PASSWORD’, ‘password here’); if (‘DB PASSWORD’, ‘password here’); if (‘DB

Replace the password here with your new password.

It gets us to the final obstacle after identifying and replacing everything. Copy and paste a new set of Salt keys from the WordPress API. Copy the whole contents of the Salt Key Generator.

Then, in the wp-config-sample.php file, replace the salt key lines with the contents you copied from the Salt Key Generator and save the modifications.


Finally, you must save the file. It is no longer a sample after setup. As a result, you must rename it to wp-config.php.


 Step 6: WordPress should be installed.

You deserve a pat on the back. All you have to do now is go to your website and install WordPress after all of your hard work.

To get started, go to yourwebsite.com/wp-admin/install.php.


So, You now know how to install WordPress on a VPS server manually.








Back to top button