Create your droplet in digital ocean
Create your droplet, for my example I used Ubuntu 22.04 LTS
then go to your droplet via ssh from your terminal:
ssh root@[your droplet IP]
once inside, update server packages
sudo apt update && sudo apt upgrade -y
probably a message related with ssh will appear, just choose keep the local version currently installed
Install Cyberpanel
switch to root user in case you are not:
sudo su –
create a custom folder to install your files:
mkdir /data && cd /data
sudo su -
install cyberpanel
wget -O installer.sh https://cyberpanel.net/install.sh chmod +x installer.sh sh installer.sh
choose option 1 to install cyberpanel
then choose option 1:
then install Full installation option:
then choose Remote SQL option to No:
then press enter to install latest version of Cyberpanel:
then Yes for Memcached option:
then Yes for Redis process:
then Yes to WatchDog:
then CyberPanel is installed and credentials given in the console:
e.g.
CyberPanel Successfully Installed Current Disk usage : 9/25GB (41%) Current RAM usage : 326/957MB (34.06%) Installation time : 0 hrs 7 min 0 sec Visit: https://139.162.255.83:8090 Panel username: admin Panel password: 9spyrAwMdc0jmCVT Run cyberpanel help to get FAQ info Run cyberpanel upgrade to upgrade it to latest version. Run cyberpanel utility to access some handy tools . Website : https://www.cyberpanel.net Forums : https://forums.cyberpanel.net Wikipage: https://docs.cyberpanel.net Docs : https://cyberpanel.net/docs/
then log in into https://[your-ip]:8090/
With your new credentials:
One click installation
Go to Website option:
select Create website:
Fill the form with next data:
Then wizard installation will start running:
Then once it is finished, press Go Back
then go to List Websites:
Choose your newly added domain and choose Manage option and it will redirect you to site options
Manual installation
Redirect all traffic to another domain
Websites
from the sidebar, and click on the domain you need to manage.
Manage the domain and navigate to Rewrite Rules
under the configuration section.
Enter the following rewrite rules:
RewriteEngine On RewriteRule ^(.*)$ https://yournewdomain.com/ [R=301,L]save changes, and that’s it
Add custom domain to cyberpanel dashboard
Note: If your domain is behind Cloudflare it will not work since CloudFlare blocks port 8090.
If you want to access CyberPanel on SSL you can do so by issuing Lets Encrypt SSL for the hostname, before continuing further make sure you have created website with a domain you want to access CyberPanel as.
If you want to access CyberPanel on: https://panel.yourdomain.com:8090 , create an account with a domain panel.yourdomain.com. While creating an account you can check SSL or not, it is optional.
If domain still does not point to the server, again a self-signed SSL will be issued.
To issue the Hostname SSL for your CyberPanel. Go to SSL->Hostname SSL
Select the website for which you want to issue the hostname SSL
Block login via IP
You go to this file:
/usr/local/CyberCP/CyberCP/settings.py
Replace * with your url:
ALLOWED_HOSTS = ['*']
Like this:
ALLOWED_HOSTS = ['my.domain.tld']
Restart cyberpanel:
systemctl restart lscpd