Hướng dẫn cài đặt Sentora

BaoMinh

Moderator
Aug 13, 2013
592
6
18
Sentora là một hệ thống quản lý VPS tương tự như Cpanel nhưng là mã nguồn mở và hoàn toàn miễn phí. Sử dụng Sentora giúp bạn sử dụng VPS được dễ dàng, trực quan hơn.

Sau khi Zpanel được bán lại cho HostWinds đã không được cập nhật thường xuyên và ẩn chứa rất nhiều lỗi. Sentora được xây dựng từ các nhà phát triển cũ của Zpanel và được cập nhật thường xuyên, liên tục. Các bạn không nên sử dụng Zpanel nữa mà hãy thay bằng Sentora nhé.
Những tính năng chính của Sentora

[*]Hỗ trợ nhiều người dùng
[*]Có khả năng tạo Reseller Account
[*]Hỗ trợ quản lý số lượng tên miền của từng tài khoản, quản lý băng thông, dung lượng, mail box
[*]Cho phép thay đổi giao diện, brand name
Sentora sẽ tự động cài đặt:

[*]Apache HTTPd
[*]PHP
[*]ProFTPd
[*]MySQL/MariaDB
[*]Postfix
[*]Dovecot
Đây đều là những ứng dụng cần thiết gần như bắt buộc phải có với mỗi VPS để vận hành được. Ngoài ra nếu muốn thêm chức năng, các bạn có thể cài đặt các module được giới thiệu trên forum cộng đồng Sentora.

Trên CentOS 6.x, Sentora sẽ cài đặt PHP 5.3. Nếu bạn muốn dùng PHP 5.4, hãy dùng CentOS 7; PHP 5.5 hãy dùng Ubuntu 14.04.

Cài đặt Sentora
Để cài đặt Sentora bạn cần chuẩn bị một VPS mới tinh. Sentora hỗ trợ cài đặt trên CentOS 6, CentOS 7, Ubuntu 12.04 và Ubuntu 14.04. Trong bài viết này mình cài đặt trên CentOS 6 trên VPS của Vultr.

Tiếp theo hãy chuẩn bị sẵn một tên miền để chạy email service và một subdomain đã được trỏ về IP VPS để làm trang quản lý Sentora.

Bắt đầu cài đặt Sentora với lệnh sau:

Nếu VPS được cài đặt sẵn Apache server hoặc bind thì sẽ gặp thông báo lỗi tương tự như bên dưới:

############################################################
# Welcome to the Official Sentora Installer 1.0.3 #
############################################################

Checking that minimal requirements are ok
Detected : CentOs 6 x86_64
Ok.
DB server will be mySQL
It appears that package httpd is already installed. This installer
is designed to install and configure Sentora on a clean OS installation only!

Please re-install your OS before attempting to install using this script.
Lúc này hãy remove đi với lệnh yum remove -y httpd bind rồi chạy lại lệnh cài đặt bên trên.

1. Lựa chọn TimeZone
Đây là bước đầu tiên, bạn hãy nhập lần lượt các số 5, 49, 1

Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa
2) Americas
3) Antarctica
4) Arctic Ocean
5) Asia
6) Atlantic Ocean
7) Australia
8) Europe
9) Indian Ocean
10) Pacific Ocean
11) none - I want to specify the time zone using the Posix TZ format.
#? 5
Please select a country.
Please select a country.
1) Afghanistan 18) Israel 35) Palestine
2) Armenia 19) Japan 36) Philippines
3) Azerbaijan 20) Jordan 37) Qatar
4) Bahrain 21) Kazakhstan 38) Russia
5) Bangladesh 22) Korea (North) 39) Saudi Arabia
6) Bhutan 23) Korea (South) 40) Singapore
7) Brunei 24) Kuwait 41) Sri Lanka
8) Cambodia 25) Kyrgyzstan 42) Syria
9) China 26) Laos 43) Taiwan
10) Cyprus 27) Lebanon 44) Tajikistan
11) East Timor 28) Macau 45) Thailand
12) Georgia 29) Malaysia 46) Turkmenistan
13) Hong Kong 30) Mongolia 47) United Arab Emirates
14) India 31) Myanmar (Burma) 48) Uzbekistan
15) Indonesia 32) Nepal 49) Vietnam
16) Iran 33) Oman 50) Yemen
17) Iraq 34) Pakistan
#? 49

The following information has been given:

Therefore TZ='Asia/Ho_Chi_Minh' will be used.
Local time is now: Wed Sep 21 08:11:15 ICT 2015.
Universal Time is now: Wed Sep 21 01:11:15 UTC 2015.
Is the above information OK?
1) Yes
2) No
#? 1
2. Sentora subdomain
Tiếp theo hãy lựa chọn subdomain để quản lý Sentora, ví dụ cp.baominh.com

=== Informations required to build your server ===
The installer requires 2 pieces of information:
1) the sub-domain that you want to use to access Sentora panel,
- do not use your main domain (like domain.com)
- use a sub-domain, e.g panel.domain.com
- or use the server hostname, e.g server1.domain.com
- DNS must already be configured and pointing to the server IP
for this sub-domain
2) The public IP of the server.


Enter the sub-domain you want to access Sentora panel: cp.baominh.com
3. Server IP
Check lại public IP của server xem có đúng không (thường là chuẩn) rồi nhấn Enter để tiếp tục

Enter (or confirm) the public IP for this server: 123.456.789.10
4. Xác nhận
Nếu bạn gặp bất kỳ thông báo WARNING nào tại bước này, Sentora có thể không hoạt động. Thường thì thông báo lỗi subdomain chưa được trỏ đến IP, lúc này bạn hãy trỏ lại IP rồi chạy lệnh cài đặt từ đầu.

Nhập y để bắt đầu quá trình cài đặt:

All is ok. Do you want to install Sentora now (y/n)? y
Sau khi cài đặt xong bạn sẽ nhận được thông tin password zadmin, MySQL password, ProFTPd password, Roundcube password… Toàn bộ thông tin cũng được lưu ở file /root/passwords.txt

########################################################
Congratulations Sentora has now been installed on your
server. Please review the log file left in /root/ for
any errors encountered during installation.

Login to Sentora at http://cp.baominh.com
Sentora Username : zadmin
Sentora Password : ah22HSMLcd0VEI1S

MySQL Root Password : MLcBrW3tcDljLtYGi
MySQL Postfix Password : HSMwWSg1StcKLyx
MySQL ProFTPd Password : Pr8FaPOtdabajEYbhXL
MySQL Roundcube Password : WSg2HMSLcd0VEI1S
(theses passwords are saved in /root/passwords.txt)
########################################################
Nhập tiếp y để khởi động lại server

Restart your server now to complete the install (y/n)? y
Sử dụng Sentora
Sau khi khởi động lại server, bạn có thể truy cập vào subdomain sử dụng ở bước trước để vào trang quản lý Sentora. Giao diện login sẽ như sau:



Username mặc định là zadmin, password hiển thị sau khi bạn cài đặt xong ở bước trên. Giao diện trang quản lý Sentora vẫn rất giống Zpanel



Giờ hãy tạo Client và bắt đầu sử dụng Sentora thôi.

Chúc bạn thành công.
 
Last edited: