Trang chủ
Bài viết mới
Diễn đàn
Bài mới trên hồ sơ
Hoạt động mới nhất
VIDEO
Mùa Tết
Văn Học Trẻ
Văn Học News
Media
New media
New comments
Search media
Đại Học
Đại cương
Chuyên ngành
Triết học
Kinh tế
KHXH & NV
Công nghệ thông tin
Khoa học kĩ thuật
Luận văn, tiểu luận
Phổ Thông
Lớp 12
Ngữ văn 12
Lớp 11
Ngữ văn 11
Lớp 10
Ngữ văn 10
LỚP 9
Ngữ văn 9
Lớp 8
Ngữ văn 8
Lớp 7
Ngữ văn 7
Lớp 6
Ngữ văn 6
Tiểu học
Thành viên
Thành viên trực tuyến
Bài mới trên hồ sơ
Tìm trong hồ sơ cá nhân
Credits
Transactions
Xu: 0
Đăng nhập
Đăng ký
Có gì mới?
Tìm kiếm
Tìm kiếm
Chỉ tìm trong tiêu đề
Bởi:
Hoạt động mới nhất
Đăng ký
Menu
Đăng nhập
Đăng ký
Install the app
Cài đặt
Chào mừng Bạn tham gia Diễn Đàn VNKienThuc.com -
Định hướng Forum
Kiến Thức
- HÃY TẠO CHỦ ĐỀ KIẾN THỨC HỮU ÍCH VÀ CÙNG NHAU THẢO LUẬN Kết nối:
VNK X
-
VNK groups
| Nhà Tài Trợ:
BhnongFood X
-
Bhnong groups
-
Đặt mua Bánh Bhnong
CÔNG NGHỆ
Công Nghệ Thông Tin
Thủ Thuật Tin học
[ Tổng hợp ] Tất tần tật về VPS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Trả lời chủ đề
Nội dung
<blockquote data-quote="tentenGMO" data-source="post: 154030" data-attributes="member: 305587"><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="font-size: 18px"><strong>Cài đặt Cpannel trên VPS</strong></span></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Hệ điều hành CentOS 5.4, trình quản lý server sẽ là cPanel bản mới nhất. Sở dĩ là vì cPanel là trình quản lý thông dụng và dễ sử dụng nhất cho những người mới. Từ cPanel có thể quản lý và config MySQL, PHP và vô số các thứ khác…</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Cái đầu tiên chúng ta cần là VPS, gồm những thông tin sau:</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">+ Địa chỉ server (IP Address)</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">+ Admin user (root)</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">+ Mật khẩu admin user</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Để connect đến server, ta dùng chương trình PuTTY, download tại Google. Sau khi tải và cài đặt, ta tiến hành connect đến server.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/1.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Điền IP của server vào Host Name (or IP address), port mặc định 22, chế độ SSH, rồi chọn Open. Ở lần đầu tiên truy cập đến server sẽ có thông báo về host key not cached, ta chọn Yes.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/2.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Tiếp theo sẽ là đăng nhập với account admin. Ở CentOS và hầu hết các hệ điều hành UNIX khác thì user quản trị mặc định sẽ là root. Ta nhập root và Enter. Tiếp theo sẽ là password, lưu ý cứ nhập password như bình thường, những ký tự nhập vào sẽ không được hiển thị trên màn hình PuTTY.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Sau khi đăng nhập thành công, ta có thể thực hiện các command của Linux từ dấu nháy dòng lệnh [root@hostname ~]#.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Để bắt đầu cài đặt cPanel, ta thực hiện các lệnh sau theo thứ tự.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">+ yum install perl: quá trình cài có hỏi Y/N ta chọn Y</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/3.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">+ hostname your.domain.com: cPanel chỉ có thể cài đặt nếu hostname (hiểu chung chung thì là tên server) là một FQDN (Fully Qualified Domain Name – tên miền hợp lệ). Vì thế khi chạy lệnh hostname, nếu kết quả trả về không phải là một tên miền hợp lệ thì bạn cần sửa nó bằng câu lệnh trên (hostname your.domain.com)</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/4.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p> <span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">+ cd /home: vào thư mục /home</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">+ wget –N <a href="https://layer1.cpanel.net/latest:" target="_blank">https://layer1.cpanel.net/latest:</a> load về bản cài đặt mới nhất của cPanel</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/5.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">+ sh latest: chạy trình cài đặt. Quá trình này sẽ được tiến hành tự động nên bạn có thể đi ăn trưa hay uống café, dạo vài vòng hay đi ngủ cũng được</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/6.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Đến đây là bạn đã hoàn thành 50% quá trình cài đặt cPanel trên VPS của mình. Quá trình cài đặt sẽ mất khoảng 1-2 tiếng. Lưu ý: không tắt PuTTY hay ngắt kết nối Internet trong quá trình cài đặt này. Bình thường thì cửa sổ dòng lệnh sẽ scroll liên tụcxuống bên dưới. Nếu thấy không chạy nữa thì cần kiểm tra kết nối và tiến hành cài lại.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/7.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p> <span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Cài xong. Bước tiếp theo là vào giao diện quản lý từ trình duyệt tại địa chỉ <a href="https://ip:2086" target="_blank">https://ip:2086</a></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Trường hợp vào mãi không được (time out) thì nguyên nhân có thể do Firewall của server chặn. Khi đó cần vào iptables để chỉnh lại. Tại cửa sổ PuTTY, chạy lệnh sau cd /etc/sysconfig, rồi chạy tiếp vi iptables.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/8.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p> <span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Trình editor của CentOS sẽ mở lên, nhấn Insert 1 lần để bật chế độ edit. Tìm đến dòng có chữ REJECT và comment nó bằng cách thêm # vào phía trước.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/9.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Tiếp theo nhấn ESC để thoát khỏi chế độ INSERT, gõ :wq rồi Enter để Save và thoát. Tiếp theo gõ service iptables restartđể khởi động lại dịch vụ iptables là OK.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/10.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Vậy là có thể vào được trang quản lý của cPanel rồi. Vào <a href="https://ip:2086" target="_blank">https://ip:2086</a> và đăng nhập với user rootvàpassword như ở PuTTY.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Ở lần đầu tiên này, ta sẽ phải thiết lập các thông số ban đầu cho cPanel.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Các giá trị cứ để mặc định, ngoài địa chỉ mail admin thì ta phải nhập vào. Nameserver có thể để ns1.everydns.net, ns2.everydns.net… cũng được.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><img src="https://i1031.photobucket.com/albums/y377/kenkangpro/11.png" alt="" class="fr-fic fr-dii fr-draggable " data-size="" style="" /></span></span></p><p> <span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'">Sau khi Finish 6 steps thì sẽ vào đến trang chính của WHM, từ đó tạo các Packages và Create account các kiểu.</span></span></p><p><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"></span></span></p></blockquote><p></p>
[QUOTE="tentenGMO, post: 154030, member: 305587"] [SIZE=4][FONT=Times New Roman] [SIZE=5][B]Cài đặt Cpannel trên VPS[/B][/SIZE] Hệ điều hành CentOS 5.4, trình quản lý server sẽ là cPanel bản mới nhất. Sở dĩ là vì cPanel là trình quản lý thông dụng và dễ sử dụng nhất cho những người mới. Từ cPanel có thể quản lý và config MySQL, PHP và vô số các thứ khác… Cái đầu tiên chúng ta cần là VPS, gồm những thông tin sau: + Địa chỉ server (IP Address) + Admin user (root) + Mật khẩu admin user Để connect đến server, ta dùng chương trình PuTTY, download tại Google. Sau khi tải và cài đặt, ta tiến hành connect đến server. [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/1.png[/IMG] Điền IP của server vào Host Name (or IP address), port mặc định 22, chế độ SSH, rồi chọn Open. Ở lần đầu tiên truy cập đến server sẽ có thông báo về host key not cached, ta chọn Yes. [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/2.png[/IMG] Tiếp theo sẽ là đăng nhập với account admin. Ở CentOS và hầu hết các hệ điều hành UNIX khác thì user quản trị mặc định sẽ là root. Ta nhập root và Enter. Tiếp theo sẽ là password, lưu ý cứ nhập password như bình thường, những ký tự nhập vào sẽ không được hiển thị trên màn hình PuTTY. Sau khi đăng nhập thành công, ta có thể thực hiện các command của Linux từ dấu nháy dòng lệnh [root@hostname ~]#. Để bắt đầu cài đặt cPanel, ta thực hiện các lệnh sau theo thứ tự. + yum install perl: quá trình cài có hỏi Y/N ta chọn Y [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/3.png[/IMG] + hostname your.domain.com: cPanel chỉ có thể cài đặt nếu hostname (hiểu chung chung thì là tên server) là một FQDN (Fully Qualified Domain Name – tên miền hợp lệ). Vì thế khi chạy lệnh hostname, nếu kết quả trả về không phải là một tên miền hợp lệ thì bạn cần sửa nó bằng câu lệnh trên (hostname your.domain.com) [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/4.png[/IMG] + cd /home: vào thư mục /home + wget –N [url]https://layer1.cpanel.net/latest:[/url] load về bản cài đặt mới nhất của cPanel [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/5.png[/IMG] + sh latest: chạy trình cài đặt. Quá trình này sẽ được tiến hành tự động nên bạn có thể đi ăn trưa hay uống café, dạo vài vòng hay đi ngủ cũng được [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/6.png[/IMG] Đến đây là bạn đã hoàn thành 50% quá trình cài đặt cPanel trên VPS của mình. Quá trình cài đặt sẽ mất khoảng 1-2 tiếng. Lưu ý: không tắt PuTTY hay ngắt kết nối Internet trong quá trình cài đặt này. Bình thường thì cửa sổ dòng lệnh sẽ scroll liên tụcxuống bên dưới. Nếu thấy không chạy nữa thì cần kiểm tra kết nối và tiến hành cài lại. [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/7.png[/IMG] Cài xong. Bước tiếp theo là vào giao diện quản lý từ trình duyệt tại địa chỉ [url]https://ip:2086[/url] Trường hợp vào mãi không được (time out) thì nguyên nhân có thể do Firewall của server chặn. Khi đó cần vào iptables để chỉnh lại. Tại cửa sổ PuTTY, chạy lệnh sau cd /etc/sysconfig, rồi chạy tiếp vi iptables. [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/8.png[/IMG] Trình editor của CentOS sẽ mở lên, nhấn Insert 1 lần để bật chế độ edit. Tìm đến dòng có chữ REJECT và comment nó bằng cách thêm # vào phía trước. [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/9.png[/IMG] Tiếp theo nhấn ESC để thoát khỏi chế độ INSERT, gõ :wq rồi Enter để Save và thoát. Tiếp theo gõ service iptables restartđể khởi động lại dịch vụ iptables là OK. [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/10.png[/IMG] Vậy là có thể vào được trang quản lý của cPanel rồi. Vào [url]https://ip:2086[/url] và đăng nhập với user rootvàpassword như ở PuTTY. Ở lần đầu tiên này, ta sẽ phải thiết lập các thông số ban đầu cho cPanel. Các giá trị cứ để mặc định, ngoài địa chỉ mail admin thì ta phải nhập vào. Nameserver có thể để ns1.everydns.net, ns2.everydns.net… cũng được. [IMG]https://i1031.photobucket.com/albums/y377/kenkangpro/11.png[/IMG] Sau khi Finish 6 steps thì sẽ vào đến trang chính của WHM, từ đó tạo các Packages và Create account các kiểu. [/FONT][/SIZE] [/QUOTE]
Tên
Mã xác nhận
Gửi trả lời
CÔNG NGHỆ
Công Nghệ Thông Tin
Thủ Thuật Tin học
[ Tổng hợp ] Tất tần tật về VPS
Top