This brief tutorial shows students and new users how to install CloudPanel on Ubuntu 20.04 | 18.04.
CloudPanel is an opensource, PHP based host control software built for the cloud that helps you manage hosted services, including email, domain, FTP, etc. It also supports major cloud services for seamless integration.
With CloudPanel you get free, opensource software for life, intuitive management panel, Nginx support and more.
If you’re currently using an alternative host control panel and you want to switch, CloudPanel should be a great place to start.
CloudPanel doesn’t not fully support Ubuntu, and there’s not an easy installation script yet. It is built for Debian Buster. But the steps below will help you get it in Ubuntu.
To get started with installing CloudPanel in Ubuntu, follow the steps below:
Prepare Ubuntu
Before installing CloudPanel make sure to update Ubuntu and install required packages.
sudo apt update && sudo apt upgrade && sudo apt install curl wget sudo
After updating and installing the above packages, continue below to installing CloudPanel.
Install Postfix
CloudPanel requires Postfix mail transport agent to handle emails. To install Postfix on Ubuntu, run the commands below:
sudo apt install gnupg apt-transport-https sudo apt install postfix
During the installation you’ll be prompted to select the configuration settings. Choose Internet Site
┌──────┤ Postfix Configuration ├───────┐
│ General type of mail configuration: │
│ │
│ No configuration │
│ Internet Site │
│ Internet with smarthost │
│ Satellite system │
│ Local only │
│ │
│ │
│ <Ok> <Cancel> │
│ │
└──────────────────────────────────────┘
You’ll also be prompted to enter your mail server name. For this post, we’re using mail.example.com
Install various repositories
CloudPanel requires PHP, Node.js Percona and others. Use the steps below to add these repositories to make packages available to Ubuntu so CloudPanel can
Add Node.js
curl -s | sudo apt-key add - curl -sS | sudo apt-key add - echo 'deb focal main' | sudo tee /etc/apt/sources.list.d/nodesource.list echo 'deb stable main' | sudo tee /etc/apt/sources.list.d/yarn.list
Run each of the commands above one line at a time.
Add PHP
sudo add-apt-repository ppa:ondrej/php sudo apt-get update
Add Percona
wget -sc)_all.deb sudo apt install ./percona-release_latest.$(lsb_release -sc)_all.deb sudo percona-release setup ps57
Install CloudPanel Dependencies
Now that you have added the repositories above, install these dependencies to support CloudPanel.
cd /tmp wget wget wget wget wget wget sudo dpkg -i *.deb
Install CloudPanel
Now you’re ready to install CloudPanel. First add the CloudPanel’s Debian Buster repository to Ubuntu.
echo "deb buster main" | sudo tee /etc/apt/sources.list.d/packages.cloudpanel.io.list sudo curl -Lks key.gpg | sudo apt-key add - sudo apt update
After adding the repository above, run the commands below to download CloudPanel file.
wget
Finally install by running the commands below:
sudo apt install ./cloudpanel.deb
That will prompt you to create a root user password. Type and confirm it to continue.
If you get an error after the installation, simply run the commands below to force install.
sudo apt install -f
When you’re done, open your web browser and browser to the server hostname or IP address followed by 8443.
That should bring up CloudPanel portal.
Conclusion:
This post showed you how to install CloudPanel on Ubuntu. If you find any error above please use the form below to report.