NỘI DUNG:
Phần lớn các nhà cung cấp Shared Hosting đều sử dụng phần mềm quản lý Hosting là cPanel, Direct Admin. Tuy nhiên chúng đều là những phần mềm thương mại và chi phí bỏ ra mỗi tháng để sử dụng vô cùng đắt đỏ. Nếu bạn là 1 người dùng cá nhân, có 1 vps hay dedicated server, nhưng lại chưa có nhiều kinh nghiệm sử dụng command line hoặc muốn sử dụng 1 phần mềm quản lý Hosting cho đơn giản và tiện dụng. Vậy mình xin giới thiệu 1 phần mềm quản lý Hosting mới là CyberPanel.
I. Giới thiệu CyberPanel – Web Hosting Control Panel
Giới thiệu CyberPanel – một web hosting control panel miễn phí được phát triển và hỗ trợ bởi OpenLiteSpeed. có nhiều tính năng, tốc độ, hỗ trợ SSL miễn phí. CyberPanel có 2 phiên bản miễn phí và thương mại.
II. Các tính năng CyberPanel
- Hỗ trợ nhiều ngôn ngữ, bao gồm cả Tiếng Việt
- Giao diện web hiện đại, hỗ trợ responsive cho mobile
- Hỗ trợ OpenLiteSpeed hoặc LiteSpeed Enterprise.
- Hỗ trợ nhiều loại Cache: Memcached và Redis.
- Hỗ trợ nhiều phiên bản PHP.
- Hỗ trợ CSDL MariaDB, MySQL
- Hỗ trợ tự động gia hạn miễn phí SSL – Let’s Encrypt.
- Tích hợp sẵn Lightweight DNS Server, Email Server ( Rainloop Webmail ), giao diện Command Line, FirewallD, SpamAssassin, ModSecurity, …
- Cài đặt WordPress, Drupal, Magento, .. chỉ trong một click chuột.
- Hỗ trợ Git ( Github, Gitlab )
III. Cấu hình tối thiểu để cài đặt
- HDH Centos 7.x (Phiên bản CentOS Minimal được khuyến nghị)
- Python 2.7
- RAM bằng hoặc hơn 1024MB
- Dung lượng bằng hoặc hơn 10GB Disk Space
IV. Hướng dẫn cài đặt CyberPanel
1. Cài đặt
[root@sv ~]# sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1802 100 1802 0 0 1359 0 0:00:01 0:00:01 --:--:-- 1360 Checking and installing curl and wget Initializing... Fetching latest data from CyberPanel server... This may take few seconds... Branch name fetched...v2.1.2 Checking root privileges... You are runing as root... Valid IP detected... Checking server location... Desktop OS not detected. Proceeding System: CentOS 7 detected... Checking virtualization type... Initialized... CyberPanel Installer v2.1.2 1. Install CyberPanel. 2. Exit. ###Chọn 1 để cài CyberPanel Please enter the number[1-2]: 1 CyberPanel Installer v2.1.2 RAM check : 117/1837MB (6.37%) Disk check : 1/29GB (5%) (Minimal 10GB free space) 1. Install CyberPanel with OpenLiteSpeed. 2. Install Cyberpanel with LiteSpeed Enterprise. 3. Exit. ### Chọn 1 để cài Webserver OpenLiteSpeed Please enter the number[1-3]: 1 Install Full service for CyberPanel? This will include PowerDNS, Postfix and Pure-FTPd. ### Chọn Y để cài đặt DNS, Mail và FTP Full installation [Y/n]: y Full installation selected... Do you want to setup Remote MySQL? (This will skip installation of local MySQL) ### Chọn Y để cài Remote SQL (Default = No) Remote MySQL [y/N]: y Remote MySQL selected... ### Nhập vào IP máy chủ Remote MySQL Hostname: 123.123.123.123 ### Nhập vào chữmysql
Remote MySQL Database that contains meta information regarding MYSQL. (usually mysql): mysql ### Nhập vào username làroot
Remote MySQL Username: root ### Đặt mật khẩu root cho mysql Remote MySQL Password: Password: ### Nhập vào Port MySQL mặc định là3306
Remote MySQL Port: 3306 ### Nhấn Enter để tiếp tục Press Enter key to continue with latest version or Enter specific version such as: 1.9.4 , 2.0.1 , 2.0.2 ...etc Branch name set to v2.1.2 Please choose to use default admin password 1234567, randomly generate one (recommended) or specify the admin password? ### Nhấp r để random mật khẩu quản trị CyberPanel Choose [d]fault, [r]andom or [s]et password: [d/r/s] r Admin password will be provided once installation is completed... # Chọn Y để cài đặt các Extension Do you wish to install Memcached process and its PHP extension? Please select [Y/n]: y Install Memcached process and its PHP extension set to Yes... Do you wish to install Redis process and its PHP extension? Please select [Y/n]: y Install Redis process and its PHP extension set to Yes... Would you like to set up a WatchDog (beta) for Web service and Database service ? 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): y Loaded plugins: fastestmirror Cleaning repos: base extras updates Cleaning up list of fastest mirrors Loaded plugins: fastestmirror No Match for argument: epel-release No Packages marked for removal Loaded plugins: fastestmirror Determining fastest mirrors
2. Các bước cần thực hiện sau cài đặt
2.1. Thay đổi mật khẩu của Panel Admin.
adminPass <your_password>
3. Truy cập tới CyberPanel

4. Cấu hình CyberPanel
4.1. Thay đổi địa chỉ IP mặc định
Lưu ý: Chỉ sử dụng khi bạn đổi IP máy chủ.
Sửa file:
/etc/cyberpanel/machineIP
4.2. Thay đổi giới hạn Upload cho PhpMyadmin
Setting các tham số như ảnh bên dưới.
- upload_max_filesize
- post_max_size

Truy cập vào server thông quá SSH
Chạy lệnh để restart lại lscpd service
systemctl restart lscpd
Xem thêm:
- Hướng dẫn cài đặt SSL lên Cyber Panel
- Cách fix lỗi .htaccess 404 trên Cyber Panel nhanh nhất
- CyberPanel Not Working After Reboot VPS OpenVZ