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:
- create a website for the domain. Eg:
panel.example.com
- configure an A record for
panel
ofexample.com
to point to<ServerIP>
- create a new website with domain
panel.example.com
- Select issue SSL option
- configure an A record for
- Update
lsws
service:- append to file
/usr/local/lsws/conf/httpd_config.conf
extprocessor cyberpanel { type proxy address https://panel.example.com:8090 maxConns 100 pcKeepAliveTimeout 60 initTimeout 60 retryTimeout 0 respBuffer 0 }
systemctl restart lsws.service
- append to file
- 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!