Knowledge Base

Your Go-To Resource for Expert Insights and Solutions

Knowledge Base

How to Install WordPress on Your Hosting, VPS, or Dedicated Server Using the Command Line

WordPress is the most popular Content Management System (CMS) globally, powering over 40% of the internet. Whether you’re launching a blog, business website, or e-commerce store, WordPress is a reliable, flexible choice. Follow this guide to install WordPress on your hosting environment seamlessly.

Step 1: Check Your Server Requirements

Ensure your server meets the minimum requirements for WordPress:

  • PHP 8.0 or higher
  • MySQL 5.7 or MariaDB 10.3 or higher
  • HTTPS support

Step 2: Prepare Your Server

First, update your server to ensure everything is up-to-date:

Code copied to your clipboard!

Step 3: Download WordPress

Visit the official WordPress Download Page and download the latest version as a ZIP file.

Alternatively, you can download it directly to your server using the following command:

Code copied to your clipboard!

Step 4: Extract WordPress

Extract the WordPress ZIP file into your web server’s document root:

Code copied to your clipboard!

After extraction, you should see a new `wordpress` directory in your document root.

Step 5: Configure Database

Create a new MySQL database for your WordPress installation:

Code copied to your clipboard!

Once in the MySQL shell, run the following commands:

Code copied to your clipboard!
Code copied to your clipboard!
Code copied to your clipboard!
Code copied to your clipboard!

Step 6: Configure WordPress

Rename the sample configuration file:

Code copied to your clipboard!

Edit the configuration file to add your database details:

Code copied to your clipboard!

Step 7: Complete Installation via Browser

Navigate to your server’s IP or domain in a browser (e.g., http://your-server-ip/wordpress) and follow the WordPress installation wizard.

Congratulations! WordPress is now installed. Customize your site and start building your dream website today.

How to Install Joomla 5 on Your Hosting, VPS, or Dedicated Server Using the Command Line

Joomla 5 is one of the most powerful and flexible content management systems available today. Whether you are setting up a small business website or a large-scale application, Joomla 5 has the tools you need. In this guide, we'll walk you through the steps to install Joomla 5 on your hosting, VPS, or dedicated server.

Code copied to your clipboard!

Step 1: Install LAMPP (Linux, Apache, MySQL, PHP, phpMyAdmin)

First, you need to install the LAMPP stack (Linux, Apache, MySQL, PHP, and phpMyAdmin) on your server. This will allow Joomla to run smoothly on your system.

Code copied to your clipboard!

This command will install Apache, MySQL, PHP, and phpMyAdmin on your server. You can manage your MySQL databases using phpMyAdmin through your browser.

Step 2: Create a MySQL Database for Joomla

Before installing Joomla, you need to create a database for it in MySQL. Log in to your MySQL database server via command line.

Code copied to your clipboard!

Then create a database for Joomla:

Code copied to your clipboard!

Once the database is created, grant privileges to a user for the Joomla database:

Code copied to your clipboard!

Flush privileges to apply the changes:

Code copied to your clipboard!

Step 3: Download Joomla 5

Next, you'll need to download the latest stable version of Joomla 5.

Code copied to your clipboard!

Step 4: Extract the Joomla Archive

After downloading the Joomla archive, extract it to the web server's root directory:

Code copied to your clipboard!

Step 5: Set Permissions for Joomla Files

Ensure the correct permissions are set for Joomla files and directories:

Code copied to your clipboard!

Step 6: Complete the Installation via Web Browser

Now open your web browser and go to http://your-server-ip to begin the Joomla installation process. During the installation, you will need to enter the database details you created earlier.

Once the installation is complete, you can log in to your Joomla admin dashboard and start configuring your website.

Congratulations!

You have successfully installed Joomla 5 on your server. Enjoy building your website with one of the best content management systems available!

How to Install cPanel on Your VPS or Dedicated Server

cPanel is one of the most popular web hosting control panels. It simplifies server management, making it ideal for both beginners and advanced users. In this guide, you'll learn how to install cPanel on your VPS or dedicated server running Ubuntu 22.04.5 LTS (Jammy Jellyfish), CentOS, or AlmaLinux.

Prerequisites

Before starting, ensure the following:

  • Your server has a fresh installation of Ubuntu Jammy, CentOS, or AlmaLinux.
  • You have root access or sudo privileges.
  • At least 2 GB of RAM and 20 GB of disk space.
  • Your hostname is properly configured (e.g., yourdomain.com).

Step 1: Update Your Server

Start by updating your server packages to ensure compatibility:

Code copied to your clipboard!

Step 2: Install Required Packages

Install the required packages for your operating system:

For Ubuntu Jammy:

Code copied to your clipboard!

For CentOS/AlmaLinux:

Code copied to your clipboard!

Step 3: Download and Run the cPanel Installer

To install cPanel, download the official installer script and execute it. Note that cPanel requires a valid license.

Run this command on any of the supported operating systems:

Code copied to your clipboard!

Step 4: Access cPanel

Once the installation is complete, you can access cPanel from your web browser. Use the following URL:

https://your-server-ip:2087

Log in using the root username and password.

Important Notes

  • Ensure that ports 2083 and 2087 are open in your firewall to access cPanel and WHM.
  • You can obtain a trial cPanel license from the official cPanel website.

Conclusion

Congratulations! You've successfully installed cPanel on your VPS or dedicated server. With cPanel, you can efficiently manage your websites, databases, email accounts, and much more. Start exploring its features to unlock the full potential of your hosting environment.

How to Create a New User and Add Them to Sudoers

In this tutorial, we will guide you through the process of creating a new user and giving them sudo privileges on a Linux system.

 

Step 1: Create a New User

To create a new user, use the useradd command:

Code copied to your clipboard!

Step 2: Set a Password for the New User

Next, set a password for the newly created user:

Code copied to your clipboard!

Step 3: Add the User to the Sudoers Group

To grant the new user sudo privileges, add them to the sudo group:

Code copied to your clipboard!

Step 4: Verify the User's Sudo Access

To check if the user has been added to the sudoers group successfully, use the following command:

Code copied to your clipboard!

Conclusion

You've successfully created a new user and granted them sudo privileges. The new user can now execute commands as a superuser by prefixing commands with sudo.

STAY TUNED
Image