CyberPanel, một control panel được phát triển bởi OpenLiteSpeed với giao diện trực quan tối ưu cho nguời dùng với nhiều tính năng đựơc tích hợp vào, giúp người dùng mới trải nghiệm và không gặp nhiều khó khăn để sử dụng. Song song bên cạnh đó CyberPanel cũng trang bị công cụ cli để giúp người dùng thao tác với dòng lệnh. Ở bài viết này hãy cùng mình điểm qua các dòng lệnh để quản trị Controller này nhé.
Website Functions
Create Website
cyberpanel createWebsite --package Default --owner admin --domainName linuxcanban.com --email admin@linuxcanban.com --php 7.3
Optional tuỳ chọn
- –ssl
- –dkim
- –openBasedir
Delete website
cyberpanel deleteWebsite --domainName linuxcanban.com
List website
Có 2 cách để bạn list ra tất cả các website trên này.
- Cách 1: JSON Format
cyberpanel listWebsitesJson
- Cách 2: Tabular Output
cyberpanel listWebsitesPretty
Thay đổi phiên bản PHP
cyberpanel changePHP --domainName linuxcanban.com --php 5.6
Thay đổi Package
cyberpanel changePackage --domainName linuxcanban.com --packageName CLI
Backup/Restore Functions
Backup website
cyberpanel createBackup --domainName linuxcanban.com
Bạn không được thoát cho đến khi quá trình backup hoàn tất
Restore website
cyberpanel restoreBackup --fileName filename
Please note that backup file can be the absolute path to the backup file, or just the file name if the file resides in /home/backup
So if your backup file resides in /home/domain.com/backup/backupfile.tar.gz you will need to give the complete absolute path, otherwise, the file will not be detected.
SSL Function
Issue SSL
cyberpanel issueSSL --domainName linuxcanban.com
Issue Hostname SSL
cyberpanel hostNameSSL --domainName sv.linuxcanban.com
Updating….