CyberPanel 是 OpenLiteSpeed 的免費開源控制面板,是目前與 Nginx、Apache 兩者霸佔前三名網頁伺服器的選手!有分為開源版本及企業版本,具體功能差異可以看這篇,這邊假定你已經知道 OpenLiteSpeed 是什麼東西ㄌ。
安裝前首先你必須有台主機,並且符合以下規格:
- 作業系統:Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, Ubuntu 22.04, CentOS 7.x, CentOS 8.x, CloudLinux 7.x, CloudLinux 8.x and AlmaLinux 8.x…(實際測試 Debian 不支援安裝腳本)
- 記憶體:1024MB (含)以上
- 儲存空間:10GB 空閒空間(含)以上
那接下來,請以 root 身份登入安裝,以下系統將採 Ubuntu 20.04 為例。
第一步:執行安裝腳本
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
當看到
1. Install CyberPanel.
2. Exit.
就可以輸入「1」點選 Enter 開始安裝
RAM check : 119/3935MB (3.02%)
Disk check : 2/75GB (3%) (Minimal 10GB free space)
1. Install CyberPanel with OpenLiteSpeed.
2. Install Cyberpanel with LiteSpeed Enterprise.
3. Exit.
在確認記憶體、儲存空間都足夠後,正常人都是會選擇免費的「1」,如果你有企業版序號當然也可以點選「2」來安裝(但我沒有,所以只能「1」ㄌ)
Install Full service for CyberPanel? This will include PowerDNS, Postfix and Pure-FTPd.
Full installation [Y/n]:
這邊是要問你要不要裝完整的週邊服務,像是 PowerDNS(DNS 管理)、Postfix(郵件) 跟 Pure-FTPd(FTP 檔案管理),這邊可以自己選擇,在這邊就直接「Y」吧!
Do you want to setup Remote MySQL? (This will skip installation of local MySQL)
(Default = No) Remote MySQL [y/N]:
你的資料庫是在其他主機上的話請點「y」來輸入資訊連線到你的資料庫主機,否則預設是「N」,也就是安裝資料庫在這台主機上。
Press Enter key to continue with latest version or Enter specific version such as: 1.9.4 , 2.0.1 , 2.0.2 ...etc
沒要特定版本的人直接點 Enter 安裝最新版本即可
Please choose to use default admin password 1234567, randomly generate one (recommended) or specify the admin password?
Choose [d]fault, [r]andom or [s]et password: [d/r/s]
這邊看你要在這邊先設定密碼,還是你也可以等等安裝完成後再更改密碼也行。(因為我是懶惰鬼所以直接選 d 設定密碼為 1234567)
Do you wish to install Memcached process and its PHP extension?
如果你覺得你會用到 Memcached 這個 php 套件,請打「y」(如果你會用到 WordPress,建議一率安裝)
Do you wish to install Redis process and its PHP extension?
如果你覺得你會用到 Redis 這個 php 套件,請打「y」(通常 Memcached 跟 Redis 會二選一,但這裡我全都要)
The watchdog script will be automatically started up after installation and server reboot
If you want to kill the watchdog , run watchdog kill
Please type Yes or no (with capital Y, default Yes):
watchdog 的用意在於說如果系統突然有未知錯誤,那就會自動幫你重啟相關服務,這邊我也要「y」
以上設定流程總整來說大概會是以下:

大概會裝個 5 – 30 分鐘,視主機效能而定。當你看到以下訊息的時候,就代表安裝完畢,可以前往 CyberPanel 開發他的功能咯!
###################################################################
CyberPanel Successfully Installed
Current Disk usage : 6/75GB (9%)
Current RAM usage : 363/3935MB (9.22%)
Installation time : 0 hrs 42 min 0 sec
Visit: https://xx.xx.xx.xxx:8090
Panel username: admin
Panel password: 1234567
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/
Enjoy your accelerated Internet by
CyberPanel & OpenLiteSpeed
###################################################################
If your provider has a network-level firewall
Please make sure you have opened following port for both in/out:
TCP: 8090 for CyberPanel
TCP: 80, TCP: 443 and UDP: 443 for webserver
TCP: 21 and TCP: 40110-40210 for FTP
TCP: 25, TCP: 587, TCP: 465, TCP: 110, TCP: 143 and TCP: 993 for mail service
TCP: 53 and UDP: 53 for DNS service
Would you like to restart your server now? [y/N]:
為了需要讓系統正確運作,輸入 y 按下 Enter 來重啟主機,之後便可透過 https://xx.xx.xx.xxx:8090 來登入你的 Cyber Panel 咯!
如果之後有更新需求,一樣可以透過下方腳本達成一鍵更新
sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)