How to set up Cyberpanel on Webdock
Last updated: December 9th 2023
Introduction
Cyberpanel is an open-source control panel. It makes site deployments easier and uses a lightweight web server called OpenLiteSpeed.
Prerequisites
- A fresh Webdock cloud server using Ubuntu Focal (Ubuntu 20.04) or any other OS supported by CyberPanel.
- You have shell (SSH) access to your VPS.
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.
Note: Cyberpanel works out-of-the-box on Ubuntu Focal. If you are installing Cyberpanel on any other OS, you need to do the fstab change as mentioned in this guide.
Installing Cyberpanel on your Webdock server
WebSSH into your Webdock server.
Become root user by executing:
$ sudo su -
Run the below command to start Cyberpanel installation.
# sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
When asked for prompt, enter 1 to install Cyberpanel.
Then enter 1 or 2, as per your requirement.
Answer the on-screen questions based upon your requirement.
Once installation completes you will see several login credentials. Copy all of that to a safe place and then choose y to restart your server (only if you're on Ubuntu Focal). Now, you can manage your server by visiting the URL's and logging in with the credentials you copied.
Note: Do not restart your server if you've to modify the fstab file. So choose N when prompted and follow the steps below.
Modifying the Fstab File
Note: This step is only needed if you're installting on any OS other than Ubuntu Focal (Ubuntu 20.04).
Once the installation is finished and you hit N for the restart prompt, you'll need to comment all the lines added to the /etc/fstab file.
Open the file using nano (or vi if you prefer it)
$ sudo nano /etc/fstab
Comment all the lines as shown in the screenshot below.
Once done, save the changes. Now you can restart the server and use Cyberpanel.
Upgrading Cyberpanel
Note: If this is the first time you are installing Cyberpanel you can simply skip this step.
You can upgrade Cyberpanel using the below command.
# sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)
Problems with dovecot
We have observed that CyberPanel is installing an older version of Dovecot on Ubuntu 20.04, preventing Dovecot from running. In order to fix this, you need to manually remove the existing installation of Dovecot and install the latest packages by following the instructions from Dovecot's official documentation.
Another issue: If dovecot doesn't start and you see an error similar to the following when running journalctl -xe
-- The unit tmp.mount has entered the 'failed' state with result 'exit-code'. Oct 28 15:35:19 infographics systemd[1]: Failed to mount /tmp. -- Subject: A start job for unit tmp.mount has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support
Then simply mask the tmp.mount unit and enable/start dovecot:
systemctl mask tmp.mount systemctl enable dovecot systemctl start dovecot
We have no idea why Cyberpanel wants to mount /tmp as it's already mounted and writeable in our environment. It doesn't make sense why they would want to do this, but if you know the rationale behind this, please let us know as we are curious.
It does not seem this workaround has any ill effects from what we can see.
Email Setup
For emails, any Webdock server profile (except the Nano4) provides Postmark email feature as an addon. You can view that in the Webdock control panel by clicking the "three vertical dots" and go to Manage Email.
Connect your domain to Postmark and add the records to your DNS setup.
Wait for 15 minutes to receive verification email from Postmark.
You can then enter Postmark SMTP credentials in an SMTP client for emails to work (for example, you may host a WP site so you install SMTP plugin in WP and enter Postmark SMTP credentials in order to send emails).
Conclusion
Hopefully, the installation might have completed without any errors. For documentation you can have a look at the Cyberpanel Github repo.
If you have any issues with the setup feel free to comment 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.
Last updated: March 29th 2023
-
How to Deploy your First Node.js Application on your Ubuntu Web Server
Deploy a Node.js application on your Ubuntu server and how to issue SSL certificates for your Node application.
Last updated: July 19th 2023
-
How to set up WireGuard on your Webdock Server
This article details how you can quickly and easily install WireGuard on your Webdock Server.
Last updated: July 21st 2024
-
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.
Last updated: November 10th 2022
-
How to Install and configure aaPanel on Ubuntu
Install aaPanel on Ubuntu as well as building a LEMP stack, pointing your domain to your server and setting SSL certificates with Let's Encrypt.
Last updated: November 10th 2022
-
How to install azuracast on Webdock
This guide shows you how to work around certain issues when installing azuracast on Webdock.
Last updated: November 10th 2022
-
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.
Last updated: November 10th 2022
-
How to install and create pipelines in Jenkins
This guide describes the step-by-step procedure of installing Jenkins and creating pipelines in Jenkins.
Last updated: November 10th 2022
-
Basic WordPress site setup with aaPanel
In this guide, we will install and setup a basic WordPress site with aaPanel.
Last updated: January 23rd 2023
-
How to use Nginx as reverse proxy and secure connections with SSL certificates
Using Nginx to proxy pass your site with SSL security.
Last updated: July 19th 2023
-
Setting up monitoring with Netdata on your Webdock server
Setting up monitoring on your server to receive alerts and to know real-time resource consumption on your server.
Last updated: July 19th 2023
-
How to Setup Python Web Application With Flask Gunicorn and Nginx
A simple Python Flask web app hosting with Gunicorn and Nginx
Last updated: July 19th 2023
-
How to Daemonize an Application with Systemd
Using systemd to autostart your application on system startup.
Last updated: July 19th 2023
-
Set-up New Relic Monitoring on Your Webdock Server
This guide provides step-by-step instructions to install New Relic to monitor your VPS.
Last updated: July 29th 2024
-
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
Last updated: July 19th 2023
-
How to Install VaultWarden on Your Webdock Server
This guide provided step-by-step instructions to Vaultwarden, an open-source Password Manager on your Webdock Server.
Last updated: July 19th 2023
-
How to Install the Latest Version of HTOP on Ubuntu Server
Instructions to install latest htop package on your Ubuntu server
Last updated: July 29th 2024
-
How to Install ImageMagick 7 on Ubuntu LEMP/LAMP stacks
Simple instructions to install ImageMagick 7 along with the PHP extension
Last updated: November 1st 2023
-
A Quick Guide to Installing Rust on Ubuntu
Instructions to install Rust
Last updated: December 18th 2023
-
How To Install Proxmox on Your Webdock Server
This article provides instructions on how to install Proxmox on your Webdock server
Last updated: July 29th 2024
-
How To Run Nextcloud on Your Webdock Ubuntu Server
Instructions to Install Nextcloud on your server with Docker
Last updated: February 13th 2024
-
The Ultimate Guide to Setting Up Mastodon server
A detailed guide with instructions to set up Mastodon on your Webdock server
Last updated: February 20th 2024
-
A Guide To Setting Up Mindustry Game Server on Ubuntu
Step-by-step instructions to set up your own Mindustry server
Last updated: November 4th 2024
-
A Guide to Installing ERPNext on Your Webdock Server
Step-by-step instructions to install ERPNext - a resource planning software - on your server
Last updated: May 28th 2024
-
A Beginner's Guide to Installing Apache Kafka on Ubuntu
Detailed instructions to get Kakfa running on Ubuntu!
Last updated: June 20th 2024
-
A Quick Guide To Installing Rocket Chat on Ubuntu
Instructions to install Rocket Chat on your Ubuntu server
Last updated: July 2nd 2024
-
How to Install Ghost CMS on a Webdock Server
Easily install Ghost CMS on your Webdock server with these instructions!
Last updated: September 2nd 2024
-
How to Install cPanel on a Webdock Ubuntu Server
Instructions for setting up cPanel on an Ubuntu server
Last updated: September 23rd 2024