Tiếp tục Series Control CyberPanel với bài này mình sẽ hướng dẫn bạn thực hiện cài đặt control lên máy chủ CentOS.
Sau khi VPS bạn đã đáp ứng đủ điều kiện của Control Panel bạn tiến hành truy cập vào máy chủ và bắt đầu cài đặt như sau
Các hướng dẫn sau sẽ cài đặt CyberPanel (với OpenLiteSpeed), nó hoàn toàn miễn phí và không yêu cầu bất kỳ loại giấy phép nào, bạn có thể cài đặt bằng một lệnh duy nhất.
Bạn thực hiện chạy update hệ thống với lệnh sau
yum update -y
Say đó bạn chạy lệnh sau để cài đặt
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
[root@aztazd ~]# 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 1304 100 1304 0 0 889 0 0:00:01 0:00:01 --:--:-- 889 Checking and installing curl and wget Initializing... Valid IP detected... Checking server... Checking OS... Detecting CentOS 7.X... Checking virtualization type... OpenVZ detected... Checking root privileges... You are runing as root... CyberPanel Installer v2.03 1. Install CyberPanel. 2. Addons and Miscellaneous 3. Exit. Please enter the number[1-3]: 1 CyberPanel Installer v2.03 RAM check : 18/2048MB (0.88%) Disk check : 835/30GB (3%) (Minimal 10GB free space) 1. Install CyberPanel with OpenLiteSpeed. 2. Install Cyberpanel with LiteSpeed Enterprise. 3. Exit. Please enter the number[1-3]: 1 <========= để cài Openlitespeed Install Full service for CyberPanel? This will include PowerDNS, Postfix and Pure-FTPd. Full installation [Y/n]: y <========= đồng ý cài các dịch vụ trên Full installation selected... Do you want to setup Remote MySQL? (This will skip installation of local MySQL) (Default = No) Remote MySQL [y/N]: n <========= chọn N nếu bạn không cần Remote SQL 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] r <========= Để random mật khẩu Admin password will be provided once installation is completed... Do you wish to install Memcached extension and backend? Please select [Y/n]: y <========= Cài đặt thêm Memcached Do you wish to install Redis extension and backend? Please select [Y/n]: y <========= Cài thêm Redis Installing necessary components... Loaded plugins: fastestmirror Cleaning repos: base extras updates Cleaning up list of fastest mirrors Loaded plugins: fastestmirror Determining fastest mirrors * base: centos-hcm.viettelidc.com.vn .................................
Quá trình cài đặt chỉ mất khoản 15 đến 20 phút, sau khi hoàn tất sẽ hiển thị thông báo như sau bao gồm Link truy cập, User và Password để bạn đăng nhập.
Build process completed successfully Installing '/usr/local/lsws/lsphp73/lib64/php/modules/timezonedb.so' install ok: channel://pecl.php.net/timezonedb-2019.3 configuration option "php_ini" is not set to php.ini location You should add "extension=timezonedb.so" to php.ini Admin password successfully changed! [OK] litespeed: stopped. [OK] litespeed: pid=21876. LSWS service is running... ################################################################### CyberPanel Successfully Installed Current Disk usage : 4/23GB (22%) Current RAM usage : 275/992MB (27.72%) Installation time : 0 hrs 22 min 30 sec Visit: https://103.221.220.143:8090 # Link đăng nhập quản trị Panel username: admin # User đăng nhập Control Panel password: 7TkrYMMwQ2t0eDXX # Passwd đăng nhập Control WebAdmin console username: admin # user đăng nhập vào console WebAdmin console password: erc67jQA5IrRMJCA # Password đăng nhập vào console Please change your default admin password If you need to reset your panel password, please run: adminPass YOUR_NEW_PASSWORD If you change mysql password, please modify file in /etc/cyberpanel/mysqlPassword with new password as well Website : https://www.cyberpanel.net Forums : https://forums.cyberpanel.net Wikipage: https://docs.cyberpanel.net 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 <==== Chọn Y để khởi động lại
Giao diện đăng nhập
Giao diện quản trị admin Cyber Panel
