How to set up cPanel on Webdock
Last updated: September 4th 2024
Introduction
cPanel is a web hosting control panel software. It provides a graphical interface and automation tools designed to simplify the process of hosting a web site to the website owner or the "end user". It enables administration through a standard web browser using a three-tier structure.
Prerequisites
- A fresh Webdock cloud Alma Linux 8 instance (or other supported OS). A server with at least 2GB of RAM recommended(as per official cPanel system requirements).
- You have shell (SSH) access to your VPS.
- A paid licence with cPanel (though you can try cPanel for free for 15-days)
With AlmaLinux and CentOS images disabled on our platform, installing cPanel on an AlmaLinux server is no longer supported. However, at this point, cPanel supports Ubuntu as well. So Ubuntu must be your choice if you want to install cPanel on Webdock servers.
Create new shell user and SSH to your server
Create new shell user. After creating the shell user, on the right side, enable "Passwordless Sudo" and apply the settings.
Creating root password
WebSSH into your Webdock server.
Switch to root user by executing:
$ sudo su -
Change your root password using:
# passwd root
Enabling EPEL repo
Enable the EPEL repo by installing epel-release.
# yum install epel-release
# yum repolist
Installing dependencies
# yum install chrony
# systemctl enable chronyd
Chrony is required by cPanel to set system date.
Setting hostname
Set hostname by executing:
# hostnamectl set-hostname hostname.example.com
"hostname" can be anything you like. For example, if it's cpanel, then your fully qualified domain name (FQDN) looks like cpanel.example.com. Also, make sure that your hostname points to your Webdock server's IP address. If you use Cloudflare switch proxy to off when adding the A record.
Installing cPanel
Now, run the installation command shown in the official CPanel documentation.
Once the installation completes you will be shown a URL. Visit the URL to set up CPanel.
Login to the CPanel store if you already have an account with them, else you can signup for an account. If it's the first time you signed up for an account, CPanel gives you 15-day trial after which you should purchase a licence.
Proceed through the setup. Choose your nameservers and add the necessary A records to your DNS setup.
Post-installation Steps
By default cPanel disables NetworkManager, which disables network on your server after a reboot. The workaround to this is to enable NM again right after installing cPanel. To do so, run the following commands.
# systemctl enable NetworkManager # systemctl start NetworkManager
Now even after a server reboot network works as usual.
Conclusion
Once done, restart the server by clicking "You must reboot the server to apply software updates." → Reboot.
After reboot, visit https://hostname.example.com:2087 and enter root for username and password is the root password you set.
Please note: At the moment, Filesystem Quotas won't work as our VPS filesystem is ZFS. So, things like setting limits on users' disk space usage is not possible.
Feel free to ask any questions regarding the setup in the comments below or contact Webdock support.
Related articles
-
How to install OpenLiteSpeed on Webdock
In this article we show you how you can install the OpenLiteSpeed web server on Ubuntu Jammy.
-
How to Deploy your First Node.js Application on your Ubuntu Web Server
-
How to set up WireGuard on your Webdock Server
This article details how you can quickly and easily install WireGuard on your Webdock Server.
-
How to set up OpenVPN on your Webdock Server
This article details how you can quickly and easily set up a VPN on your Webdock server.
-
How to Install and configure aaPanel on Ubuntu
-
How to install azuracast on Webdock
This guide shows you how to work around certain issues when installing azuracast on Webdock.
-
How to set up Ploi on Webdock
This article details the steps you need to go through in order to install Ploi on a Webdock server.
-
How to install and create pipelines in Jenkins
-
Basic WordPress site setup with aaPanel
In this guide, we will install and setup a basic WordPress site with aaPanel.
-
How to use Nginx as reverse proxy and secure connections with SSL certificates
Using Nginx to proxy pass your site with SSL security.
-
Setting up monitoring with Netdata on your Webdock server
-
How to Setup Python Web Application With Flask Gunicorn and Nginx
A simple Python Flask web app hosting with Gunicorn and Nginx
-
How to Daemonize an Application with Systemd
Using systemd to autostart your application on system startup.
-
Set-up New Relic Monitoring on Your Webdock Server
This guide provides step-by-step instructions to install New Relic to monitor your VPS.
-
Getting Started with Ruby on Rails on Webdock
In this guide, we will show you how to get started with Ruby on Rails on your Webdock server
-
How to Install VaultWarden on Your Webdock Server
-
How to Install the Latest Version of HTOP on Ubuntu Server
Instructions to install latest htop package on your Ubuntu server
-
How to Install ImageMagick 7 on Ubuntu LEMP/LAMP stacks
Simple instructions to install ImageMagick 7 along with the PHP extension
-
A Quick Guide to Installing Rust on Ubuntu
-
How To Install Proxmox on Your Webdock Server
This article provides instructions on how to install Proxmox on your Webdock server
-
How To Run Nextcloud on Your Webdock Ubuntu Server
Instructions to Install Nextcloud on your server with Docker
-
The Ultimate Guide to Setting Up Mastodon server
A detailed guide with instructions to set up Mastodon on your Webdock server
-
A Guide To Setting Up Mindustry Game Server on Ubuntu
Step-by-step instructions to set up your own Mindustry server
-
A Guide to Installing ERPNext on Your Webdock Server
Step-by-step instructions to install ERPNext - a resource planning software - on your server
-
A Beginner's Guide to Installing Apache Kafka on Ubuntu
Detailed instructions to get Kakfa running on Ubuntu!
-
A Quick Guide To Installing Rocket Chat on Ubuntu
Instructions to install Rocket Chat on your Ubuntu server
-
How to Install Ghost CMS on a Webdock Server
Easily install Ghost CMS on your Webdock server with these instructions!