How to set up a dedicated server with cPanel

How to Set Up a Dedicated Server with cPanel

Setting up a dedicated server with cPanel/WHM gives you complete control over your hosting environment while enjoying the ease of a powerful control panel. Follow these step-by-step instructions to prepare your dedicated server, install cPanel/WHM, and configure it for optimal performance.


1. Prepare Your Dedicated Server

a. Choose a Supported Operating System

  • Recommended OS:
    cPanel/WHM is compatible with CentOS, AlmaLinux, or CloudLinux. For a fresh installation, use one of these OS versions.
  • Fresh Install:
    Ensure your server has a minimal, clean installation to avoid conflicts with existing software.

b. Set a Fully Qualified Domain Name (FQDN)

  • Set Hostname:
    Use a unique FQDN for your server. For example:

    hostnamectl set-hostname server.yourdomain.com
    

    Replace server.yourdomain.com with your desired hostname.

c. Update Your System and Disable SELinux

  • System Updates:
    For CentOS/AlmaLinux:

    yum update -y
    
  • Disable SELinux:
    Edit /etc/selinux/config and change:

    SELINUX=enforcing
    

    to

    SELINUX=disabled
    

    Save the file and reboot the server:

    reboot
    

2. Obtain a cPanel License

  • Purchase a License:
    Acquire a valid cPanel license from cPanel’s website or through your hosting provider. Your license is required during and after installation.

3. Install cPanel/WHM

a. Log in as Root

  • SSH Access:
    Connect to your dedicated server via SSH as the root user.

b. Download the cPanel Installer

  • Download Command:
    Change to the home directory and download the latest installer:

    cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest
    

c. Run the Installer

  • Start Installation:
    Execute the installer script:

    sh latest
    

    Note: The installation process may take 30–60 minutes depending on your server’s performance and internet speed.


4. Configure WHM

a. Access WHM

  • Open Browser:
    Once installation is complete, navigate to:

    https://your-server-ip:2087
    

    Replace your-server-ip with your server’s IP address.

b. Log in to WHM

  • Use Credentials:
    Log in using the root username and password.

c. Complete the Initial Setup Wizard

  • Follow the Wizard:
    The WHM wizard will guide you through:

    • Accepting the End-User License Agreement (EULA)
    • Entering your cPanel license information (if prompted)
    • Configuring basic settings such as networking, nameservers, and contact details

d. Secure Your Installation

  • Security Settings:
    Within WHM, set up firewall rules, enable automatic updates, and configure additional security measures to protect your server.

5. Final Steps and Testing

  • Verify cPanel Access:
    Log in to cPanel for a test domain to ensure the installation is functioning correctly.
  • Configure DNS:
    Update your domain’s DNS settings to point to your dedicated server.
  • Monitor and Maintain:
    Regularly check logs, update software, and monitor server performance to maintain a secure and efficient hosting environment.

Final Thoughts

Setting up a dedicated server with cPanel/WHM provides you with a robust hosting platform that is both powerful and user-friendly. By following these steps—preparing your server, obtaining a cPanel license, installing the software, and configuring WHM—you’re well on your way to managing your hosting environment with ease.

Ready to manage your dedicated server like a pro? Get started with these steps and enjoy the flexibility, control, and enhanced performance that come with a dedicated server powered by cPanel/WHM.

Hot this week

Affordable, Fast & Secure Web Hosting in Accra — Tremhost Africa

Accra Businesses Are Going Digital — Tremhost Leads the...

Affordable, Fast & Secure Web Hosting in Lagos — Tremhost Africa

Lagos Businesses Are Going Digital — Tremhost Leads the...

Affordable, Fast & Secure Web Hosting in Nairobi — Tremhost Africa

Nairobi Businesses Are Going Digital — Tremhost is Leading...

Masvingo Businesses Are Going Digital with Tremhost — Hosting From $25/Year

Masvingo businesses are embracing online growth — from schools...

Why Gweru Businesses Are Choosing Tremhost for Fast, Reliable Hosting

Gweru, the heart of Zimbabwe’s Midlands, is experiencing rapid...

Topics

Affordable, Fast & Secure Web Hosting in Accra — Tremhost Africa

Accra Businesses Are Going Digital — Tremhost Leads the...

Affordable, Fast & Secure Web Hosting in Lagos — Tremhost Africa

Lagos Businesses Are Going Digital — Tremhost Leads the...

Affordable, Fast & Secure Web Hosting in Nairobi — Tremhost Africa

Nairobi Businesses Are Going Digital — Tremhost is Leading...

Masvingo Businesses Are Going Digital with Tremhost — Hosting From $25/Year

Masvingo businesses are embracing online growth — from schools...

Why Gweru Businesses Are Choosing Tremhost for Fast, Reliable Hosting

Gweru, the heart of Zimbabwe’s Midlands, is experiencing rapid...

Affordable Web Hosting in Mutare — Why $25/Year Is Just the Beginning

Mutare is rapidly embracing the digital era. Entrepreneurs, creatives,...

Why Bulawayo Businesses Are Choosing Tremhost for Fast, Secure, Local Hosting

Bulawayo, Zimbabwe’s industrial and cultural hub, is seeing a...

Affordable Web Hosting in Mutare — Why $25/Year Is Just the Beginning

Mutare is fast becoming one of Zimbabwe’s most connected...
spot_img

Related Articles

Popular Categories

spot_imgspot_img