{"id":99,"date":"2019-05-20T14:31:35","date_gmt":"2019-05-20T07:31:35","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=99"},"modified":"2019-09-15T10:36:40","modified_gmt":"2019-09-15T03:36:40","slug":"huong-dan-cai-dat-hocvps-script","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/huong-dan-cai-dat-hocvps-script\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t HOCVPS Script"},"content":{"rendered":"<p>\u0110\u1ea7u ti\u00ean c\u00e1c b\u1ea1n c\u1ea7n chu\u1ea9n b\u1ecb m\u1ed9t <strong>VPS m\u1edbi tinh<\/strong> b\u1eb1ng c\u00e1ch <em>Reinstall<\/em> ho\u1eb7c <em>Rebuild<\/em>, s\u1eed d\u1ee5ng CentOS 6 ho\u1eb7c 7, b\u1ea3n 32bit ho\u1eb7c 64bit \u0111\u1ec1u \u0111\u01b0\u1ee3c. N\u00ean s\u1eed d\u1ee5ng b\u1ea3n <strong>CentOS 7 64bit v\u1edbi PHP 7.1<\/strong><\/p>\n<p>K\u1ebft n\u1ed1i SSH s\u1eed d\u1ee5ng <a href=\"https:\/\/hocvps.com\/huong-dan-dung-zoc-terminal-ket-noi-ssh\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">ZOC Terminal<\/a> ho\u1eb7c <a href=\"https:\/\/hocvps.com\/huong-dan-dang-nhap-vps-su-dung-putty-windows\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Putty<\/a>\u00a0v\u1edbi t\u00e0i kho\u1ea3n <code><\/code><\/p>\n<pre class=\"line-numbers\"><code class=\"language-markup\">root<\/code><\/pre>\n<p><code><br \/>\n<\/code>. N\u1ebfu t\u00e0i kho\u1ea3n kh\u00f4ng c\u00f3 quy\u1ec1n root c\u1ea7n c\u1ea5p quy\u1ec1n\u00a0b\u1eb1ng c\u00e1ch ch\u1ea1y l\u1ec7nh <code><\/code><\/p>\n<pre class=\"line-numbers\"><code class=\"language-markup\">sudo su<\/code><\/pre>\n<p><code><br \/>\n<\/code>.<br \/>\nCh\u1ea1y l\u1ec7nh sau \u0111\u1ec3 ti\u1ebfn h\u00e0nh c\u00e0i \u0111\u1eb7t:<\/p>\n<pre class=\"line-numbers\"><code class=\"language-markup\">curl -sO https:\/\/hocvps.com\/install &amp;&amp; bash install<\/code><\/pre>\n<div class=\"st-alert st-alert-danger \">\u2013 C\u00e0i \u0111\u1eb7t xong, khi connect SSH VPS b\u1ea1n h\u00e3y s\u1eed d\u1ee5ng port 2222, kh\u00f4ng d\u00f9ng port 22!<\/div>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/Chuan-bi-cai-dat-HocVPS-Script-1.8.png\" data-featherlight=\"image\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-2193\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/Chuan-bi-cai-dat-HocVPS-Script-1.8.png\" sizes=\"(max-width: 589px) 100vw, 589px\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/Chuan-bi-cai-dat-HocVPS-Script-1.8.png 589w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/1_Chuan-bi-cai-dat-HocVPS-Script-1.8-300x81.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/Chuan-bi-cai-dat-HocVPS-Script-1.8-60x16.png 60w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/Chuan-bi-cai-dat-HocVPS-Script-1.8-150x40.png 150w\" alt=\"\" width=\"589\" height=\"159\" title=\"\"><\/a><\/p>\n<p>Trong b\u01b0\u1edbc n\u00e0y b\u1ea1n c\u1ea7n l\u1ef1a ch\u1ecdn:<\/p>\n<ol>\n<li><strong>Phi\u00ean b\u1ea3n PHP<\/strong> mu\u1ed1n s\u1eed d\u1ee5ng: n\u00ean d\u00f9ng <strong>PHP 7.1<\/strong>, c\u00f3 hi\u1ec7u su\u1ea5t g\u1ea5p 3 l\u1ea7n so v\u1edbi phi\u00ean b\u1ea3n c\u0169 5.6.<\/li>\n<li><strong>T\u00ean mi\u1ec1n ch\u00ednh<\/strong> s\u1eed d\u1ee5ng v\u1edbi VPS, c\u00f3 th\u1ec3 nh\u1eadp c\u00f3 www ho\u1eb7c kh\u00f4ng c\u00f3 www t\u00f9y m\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng, script s\u1ebd t\u1ef1 \u0111\u1ed9ng redirect gi\u00fap b\u1ea1n.<\/li>\n<li><strong>Port admin qu\u1ea3n l\u00fd server<\/strong>: l\u00e0 port b\u00ed m\u1eadt (n\u1eb1m trong kho\u1ea3ng 2000 \u2013 9999, thay \u0111\u1ed5i \u0111\u01b0\u1ee3c sau khi c\u00e0i) d\u00f9ng \u0111\u1ec3:\n<ul>\n<li>Truy c\u1eadp link qu\u1ea3n tr\u1ecb, c\u00f3 d\u1ea1ng: http\/\/domain.com:port\/<\/li>\n<li>S\u1eed d\u1ee5ng phpMyAdmin, link d\u1ea1ng:\u00a0http:\/\/domain.com:port\/phpmyadmin\/<\/li>\n<li>Qu\u1ea3n l\u00fd File Manager, link d\u1ea1ng: http:\/\/domain.com:port\/filemanager\/<\/li>\n<li>Theo d\u00f5i t\u00ecnh tr\u1ea1ng h\u1ec7 th\u1ed1ng, link d\u1ea1ng:\u00a0http:\/\/domain.com:port\/serverinfo\/<\/li>\n<li>Theo d\u00f5i t\u00ecnh tr\u1ea1ng\u00a0Zend Opcache, link d\u1ea1ng:\u00a0http:\/\/domain.com:port\/op.php<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>Sau \u0111\u00f3, b\u1ea1n c\u1ee9 \u0111\u1ec3 cho script t\u1ef1 \u0111\u1ed9ng th\u1ef1c hi\u1ec7n qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t, c\u00f3 th\u1ec3 m\u1ea5t t\u1eeb 3 \u2013 5 ph\u00fat t\u00f9y c\u1ea5u h\u00ecnh v\u00e0 network c\u1ee7a VPS\/Server.<\/p>\n<p>Cu\u1ed1i c\u00f9ng, n\u1ebfu kh\u00f4ng c\u00f3 v\u1ea5n \u0111\u1ec1 g\u00ec x\u1ea3y ra, b\u1ea1n s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c th\u00f4ng b\u00e1o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng v\u00e0 th\u00f4ng tin qu\u1ea3n l\u00fd VPS nh\u01b0 b\u00ean d\u01b0\u1edbi. \u0110\u1ed3ng th\u1eddi, th\u00f4ng tin n\u00e0y c\u0169ng s\u1ebd \u0111\u01b0\u1ee3c l\u01b0u trong file text c\u00f3\u00a0\u0111\u01b0\u1eddng d\u1eabn <code><\/code><\/p>\n<pre class=\"line-numbers\"><code class=\"language-markup\">\/root\/hocvps-script.txt<\/code><\/pre>\n<p><code><\/code> \u0111\u1ec3 b\u1ea1n xem l\u1ea1i sau n\u00e0y.<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/Cai-dat-thanh-cong-v1.8.png\" data-featherlight=\"image\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-2194\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/Cai-dat-thanh-cong-v1.8.png\" sizes=\"(max-width: 590px) 100vw, 590px\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/Cai-dat-thanh-cong-v1.8.png 590w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/1_Cai-dat-thanh-cong-v1.8-150x150.png 150w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/1_Cai-dat-thanh-cong-v1.8-298x300.png 298w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/1_Cai-dat-thanh-cong-v1.8-60x60.png 60w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2019\/05\/1_Cai-dat-thanh-cong-v1.8-50x50.png 50w\" alt=\"\" width=\"590\" height=\"593\" title=\"\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0110\u1ea7u ti\u00ean c\u00e1c b\u1ea1n c\u1ea7n chu\u1ea9n b\u1ecb m\u1ed9t VPS m\u1edbi tinh b\u1eb1ng c\u00e1ch Reinstall ho\u1eb7c Rebuild, s\u1eed d\u1ee5ng CentOS 6 ho\u1eb7c 7, b\u1ea3n 32bit ho\u1eb7c 64bit \u0111\u1ec1u \u0111\u01b0\u1ee3c. N\u00ean s\u1eed d\u1ee5ng b\u1ea3n CentOS 7 64bit v\u1edbi PHP 7.1 K\u1ebft n\u1ed1i SSH s\u1eed d\u1ee5ng ZOC Terminal ho\u1eb7c Putty\u00a0v\u1edbi t\u00e0i kho\u1ea3n root . N\u1ebfu t\u00e0i kho\u1ea3n kh\u00f4ng [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":227,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[25],"class_list":["post-99","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-control-panel-hocvps"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/99\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/227"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=99"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}