Do you look for the best free alternative to cPanel? In this tutorial, you will learn how to install this free cPanel alternative on Oracle cloud-free VM instance.
CyberPanel is much better than Virtualmin which is another free alternative to cPanel. The big problems of the Virtualmin are complexity, hard to use and there is no updated technology.
CyberPanel is an online web hosting panel that is easy to use and more user-friendly interface like cPanel. CyberPanel comes with open lite speed which makes your Apache WordPress site 10x speed and faster than a normal webhosting server.
There are so many additional features of CyberPanel you need to consider.
- Unlimited website hosting on one Panel
- Lite Speed free cashing
- Quic transfer protocol
- One-click automatic Let’s Encrypt SSL
- Multiple PHP versions
- Build in DNS and SMTP Email servers
- Web-based command-line interface
- Mutiple WordPress hosting sites
- Google drive backup system and much more.
Oracle Cloud Login for New Users
First, you have to register on Oracle Cloud Free Tier which gives 2 free VPS for lifetime use. After the registration, you can go to the next step.
If you want a powerful cheap VPS server, check these providers.
If you want a top level domain for the CyberPanel and your website, you can use these providers to get it.
Setup VM Instance on Oracle Cloud
In the Oracle Cloud dashboard, click the “Create VM Instance” button to enter this window. Here you can customize your VM instance. If you want you can change the instance name. Under “Image and Shapes”, click the “Edit” button to select the OS of the instance.
Then Click the “Change image button”, you will see the available list of Operation Systems. Select Canonical Ubuntu 20.04 as your OS, not the minimal version.
Under “Networking”, click the “Edit” button to change network type. Make sure you selected both “create new virtual cloud network” and “Create new public subnet”.
You have to pass SSH keys to the instance. It is very important to connect to the server using the terminal. Select the “Paste public key” option to add a key. You have to install the Putty App to generate an SSH key pair.
After the installation of the Putty app, open Puttygen to generate new SSH keys. Click the “Generate” button and move your cursor in this area. Select the whole public key and copy the key into the instance.
After that deploy the server by pressing the “Create” button. Save the “Private key” in a safe place, it is very important to connect to the server.
Add Firewall Rules to Open Ports
While deploying the server, let’s go to the firewall section to open essential ports for this server. You can see there is a link call subnet, right-click and open it in a new tab. Click on the subnet name, you can add all ports here.
In this section, you can add rules by clicking the “Add ingress rules” button at the corner. Enter this IP parameter (0.0.0.0/0) as the source that allows all IP ranges to connect CyberPanel through the internet
You have to add all these TCP CyberPanel ports as destinations.
- 8090 – CyberPanel
- 80, 443 – Web Server
- 21, 40110-40210 – FTP
- 25, 587, 465, 110, 143, 993 – Mail Service
- 53 – DNS service
You have to add another rule to open CyberPanel UDP ports as well. Enter the same IP (0.0.0.0/0) parameter as the source and enter these two destinations.
- 443 – Web Hosting Server
- 53 – DNS Service
I have forgotten to change the IP protocol TCP to UDP for the first time. Now I corrected the protocol for these two ports. Remember to change the protocol at the first entry, then you don’t have to worry.
After adding firewall rules, go back to the “Instant Details” page. Now this server is up and running.
Install CyberPanel Web-Based Control Panel
First, Open the Putty app that you installed earlier. It allows you to connect the VPS using the terminal remotely. Paste the external IP address of the server as the hostname.
Under SSH, click “Auth” to add the private key that you saved in the previous step. Go back to the “Session” tab and saved your session using any name that you preferred. It is helpful to connect the server again without entering the credentials.
Putty App open the terminal like this, you can proceed by typing “Ubuntu”.
Get the root access before the adding Swap file.
You have to enter this long command to add Swap space to the server.
This command adds a 5024 MB Swap file to the system, you can add more memory by changing the number. Swap space is a virtual memory that assists the RAM to get better performance. This process takes time, wait until it is finished.
sudo dd if=/dev/zero of=/mnt/swap.0 bs=5024 count=1048576 && sudo mkswap /mnt/swap.0 && echo "/mnt/swap.0 swap swap defaults 0 0" >> /etc/fstab && swapon /mnt/swap.0 && sudo swapon -s
You can check the available memory by typing this command. Swap file added to the system successfully.
If you want you can set the hostname for this server. It is important if you plan to host an SMTP server using the CyberPanel. You just want to install CyberPanel this is optional.
Use this command to set the hostname. Remember to replace the domain name with your domain. Only Subdomains can use as the hostnames, not the root domain.
hostnamectl set-hostname sub.yourdomain.com
You can check the hostname by typing this.
Oracle Cloud set up an IP table inside the VM instances. Enter this command to get access to the server through the internet.
iptables -P INPUT ACCEPT && iptables -P OUTPUT ACCEPT && iptables -P FORWARD ACCEPT && iptables -F
Update and Upgrade the list of packages in the system using this command.
sudo apt-get update && sudo apt-get upgrade
Before running the CyberPanel installation script, get super user access by typing this command.
sudo su -
Install CyberPanel now. It will ask few questions before the full installation.
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
Before running the CyberPanel installation script, get super user access by typing this command. Install CyberPanel now. It will ask few questions before the full installation.
Select option 1 to proceed with the installation. The free option is CyberPanel with Open Lite Speed. Type “Y” to proceed with the full installation.
It asks to set up a MySQL server at the remote site, we have to install it in the server. So, select type “N” for that.
Press “Enter” to proceed with the lasted version of the CyberPanel. You can set the password for the control panel.
There are 3 options, default password, random password or you can set your password.
I chose to set the password. Enter a password and confirm it by retyping.
I don’t want to install Memcached and Redis for this server.
Type capital “Y” to proceed with the setup. This installation takes a long time, wait until it is finished the installation.
I speed up the installation process. After the installation, all the information related to the server will be displayed. Copy these details to a notepad before restarting the server.
You can connect to the server by typing your Public IP address and the 8090 port.
https:<IP Address>:8090 Username: admin Password: 1234567 (or the password you set)
After restarting the server, IP table rules are applied again then you are unable to connect the CyberPanel through the internet. Connect to the server again by restarting the session or using the saved session. Get the root access again to continue.
Enter the IP table released command again. Now you can refresh the window, it will redirect to the login panel.
iptables -P INPUT ACCEPT && iptables -P OUTPUT ACCEPT && iptables -P FORWARD ACCEPT && iptables -F
Use “admin” as the username and previously set password to login into the dashboard.
CyberPanel has so many features to explain and use. In future tutorials, you will learn how to host a fast WordPress site and SMTP mail server using CyberPanel.
Thank you for the reading. If you have any question, ask directly on MineX Tuts community Forum.
Thank you for this tutorial.
I successfully installed it about 3 months ago
Unfortunately, it is no longer possible to install Cyberpanel. I did everything correctly.
After cyberpanel install command line, this error comes up: unable to detect your OS… I know I have Ubuntu 20.4 Image.
Check this thread: https://www.minextuts.com/question/why-this-happen-desktop-os-not-detected-proceeding-x86_64-system-is-required/
502 Bad Gateway
fix plz help
repeat the process and chose aparche server not the nginx one.
ubntu+Cyber Panel I install at VirtualBox…. final result page (https::8090 ) not showing, system its automatically restarting, how salve the problem and how to see cyber-panel access IP address
(I use commends for ubuntu thermal)
Please open a question at the forum with more details, we may able to help you.
[…] The best aaPanel and cPanel alternative is CyberPanel which is completely free to setup and use. You can check this tutorial for more details. Check Here. […]
I’m getting this error:
Fetching latest data from CyberPanel server…
This may take few seconds…
Branch name fetched…v2.1.2
Checking root privileges…
You are runing as root…
Valid IP detected…
Checking server location…
Desktop OS not detected. Proceeding
x86_64 system is required…
And it won’t install. Any idea why? I’m using Ubuntu 20.04
Most of them get this error you can use Oracle cloud AMD server instead of Ampere one. If there any update, you will see on MineX Tuts Community Forum.
[…] charge to utilize it. In this video, I’ll teach you how to install Webmin and Virtualmin, a free cPanel alternative and opensource web hosting control […]
[…] subdomain that’s why the mail server is the same as the subdomain. If you use the root domain to install CyberPanel your mail server will be mail.your […]
i’m getting error during installation of cyber panel on Ubuntu 20 version.
[10.11.2021_16-58-21] [ERROR] We are not able to run apt-get -y install openlitespeed return code: 100. Fatal error, see /var/log/installLogs.txt for full details.
Please help me to get it resolved.
Check the error log using given pathway. You may able to find the cause.
[…] and 1/8 OCPU each of the VM instance. You can use this virtual server for free vps hosting, cloud hosting of web applications and other uses. Let’s go to the […]
[…] CyberPanel Install for Free Web Hosting – cPanel Alternative […]