Install cyberpanel on Ubuntu 20.04

Basically, we can install cyberpanel just by executing a command as root:

sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

After that, we can log in by https://<ServerIP>:8090 with username admin and a chosen password


Q: How do I remove port 8090, eg I want to use panel.example.com instead of ServerIP:8090.
A: Follow the guideline here:

  1. create a website for the domain. Eg: panel.example.com
    • configure an A record for panel of example.com to point to <ServerIP>
    • create a new website with domain panel.example.com
      • Select issue SSL option
  2. Update lsws service:
    • append to file /usr/local/lsws/conf/httpd_config.confextprocessor cyberpanel { type proxy address https://panel.example.com:8090 maxConns 100 pcKeepAliveTimeout 60 initTimeout 60 retryTimeout 0 respBuffer 0 }
    restart service: systemctl restart lsws.service
  3. Update rewrite rule:
REWRITERULE ^(.*)$ HTTP://cyberpanel/$1 [P]

FAQ:

  • Get the detault admin password of rainloop with command:
cat /usr/local/CyberCP/public/rainloop.php
  • Change/Reset the admin password of CyberPanel
oot@localhost:~# adminPass 'Newp@55w0rd!'
Admin password successfully changed!