{"id":5733,"date":"2020-08-05T00:16:35","date_gmt":"2020-08-04T17:16:35","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=5733"},"modified":"2020-08-05T00:16:35","modified_gmt":"2020-08-04T17:16:35","slug":"huong-dan-cai-dat-larvps","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/huong-dan-cai-dat-larvps\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t larvps"},"content":{"rendered":"<article id=\"section-4\" class=\"docs-article\">\n<header class=\"docs-header\">\n<section class=\"docs-intro\">Nh\u1eefng y\u00eau c\u1ea7u tr\u01b0\u1edbc khi c\u00e0i \u0111\u1eb7t LarVPS b\u1ea1n c\u1ea7n n\u1eafm qua nh\u01b0 h\u1ec7 \u0111i\u1ec1u h\u00e0nh: Centos 8, VPS c\u00e0i tr\u1eafng ch\u01b0a c\u00e0i b\u1ea5t k\u1ef3 th\u00f4ng tin g\u00ec.<\/section>\n<\/header>\n<section id=\"item-4-14\" class=\"docs-section\">\n<h2 id=\"Th\u00f4ng_tin_v\u1ec1_LarVPS_&#8211;_1.1_C\u1eadp_nh\u1eadt:_21\/06\/2020_09:10\">Th\u00f4ng tin v\u1ec1 LarVPS <small>&#8211; 1.1<\/small><small> C\u1eadp nh\u1eadt: 21\/06\/2020 09:10<\/small><\/h2>\n<p>H\u1ed7 tr\u1ee3:<\/p>\n<ul>\n<li>PHP: 7.4, 7.3, 7.2<\/li>\n<li>MariaDB: 10.4<\/li>\n<li>Nginx: 18.0<\/li>\n<li>phpMyAdmin: 5.0<\/li>\n<li>Fail2ban<\/li>\n<li>Let&#8217;s Encrypt Authority x3<\/li>\n<li>Google Drive<\/li>\n<li>Certbot<\/li>\n<\/ul>\n<\/section>\n<section id=\"item-4-4\" class=\"docs-section\">\n<h2 id=\"Y\u00eau_c\u1ea7u_h\u1ec7_th\u1ed1ng_&#8211;_1.2_C\u1eadp_nh\u1eadt:_19\/06\/2020_01:11\">Y\u00eau c\u1ea7u h\u1ec7 th\u1ed1ng <small>&#8211; 1.2<\/small><small> C\u1eadp nh\u1eadt: 19\/06\/2020 01:11<\/small><\/h2>\n<ul>\n<li>HDH:<strong> Centos 8<\/strong><\/li>\n<li>CPU: &gt;=<strong> 1 Core<\/strong><\/li>\n<li>Ram: &gt;= <strong>1GB<br \/>\n<\/strong><\/li>\n<\/ul>\n<p>VPS ch\u01b0a c\u00e0i b\u1ea5t k\u1ef3 d\u1eef li\u1ec7u n\u00e0o. N\u1ebfu c\u00f3 b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t m\u1edbi l\u1ea1i VPS.<\/p>\n<\/section>\n<section id=\"item-4-17\" class=\"docs-section\">\n<h2 id=\"K\u1ebft_n\u1ed1i_SSH_\u0111\u1ebfn_VPS_&#8211;_1.3_C\u1eadp_nh\u1eadt:_22\/06\/2020_03:22\">K\u1ebft n\u1ed1i SSH \u0111\u1ebfn VPS <small>&#8211; 1.3<\/small><small> C\u1eadp nh\u1eadt: 22\/06\/2020 03:22<\/small><\/h2>\n<p>\u0110\u1ec3 k\u1ebft n\u1ed1i SSH \u0111\u1ebfn VPS b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng nh\u1eefng c\u00f4ng c\u1ee5 sau:<\/p>\n<ul>\n<li>Powershell (Win)<\/li>\n<li><a href=\"https:\/\/www.bitvise.com\/download-area\" rel=\"nofollow noopener\" target=\"_blank\">Bitvise SSH Client<\/a><\/li>\n<li><a href=\"https:\/\/termius.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Termius<\/a><\/li>\n<li>Terminal (Mac)<\/li>\n<\/ul>\n<p>Th\u01b0\u1eddng m\u1eb7c \u0111\u1ecbnh c\u00e1c nh\u00e0 cung c\u1ea5p VPS s\u1eed d\u1ee5ng port <strong>22.\u00a0<\/strong>V\u00ed d\u1ee5 \u1edf \u0111\u00e2y m\u00ecnh s\u1eed d\u1ee5ng VPS c\u00f3 IP l\u00e0: <strong>139.162.112.95<br \/>\n<\/strong>V\u1eady \u0111\u1ec3 k\u1ebft n\u1ed1i \u0111\u1ebfn VPS b\u1ea1n g\u00f5 nh\u01b0 sau:<\/p>\n<pre class=\"language-hljs\"><code>ssh -p 22 root@139.162.112.95<\/code><\/pre>\n<\/section>\n<section id=\"item-4-15\" class=\"docs-section\">\n<h2 id=\"C\u00e0i_\u0111\u1eb7t_LarVPS_&#8211;_1.5_C\u1eadp_nh\u1eadt:_21\/06\/2020_21:57\">C\u00e0i \u0111\u1eb7t LarVPS <small>&#8211; 1.5<\/small><small> C\u1eadp nh\u1eadt: 21\/06\/2020 21:57<\/small><\/h2>\n<p>Copy v\u00e0 Paste d\u00f2ng l\u1ec7nh sau v\u00e0o VPS c\u1ee7a b\u1ea1n.<\/p>\n<pre class=\"language-hljs\"><code>curl -sO https:\/\/larvps.com\/scripts\/larvps &amp;&amp; bash larvps<\/code><\/pre>\n<p>B\u1ea1n s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c b\u1ea3ng c\u00e0i \u0111\u1eb7t v\u00e0 l\u00e0m theo th\u1ee9 t\u1ef1 c\u00e1c b\u01b0\u1edbc:<\/p>\n<pre class=\"language-hljs\"><code>=========================================================================\r\n                       LarVPS.com v0.3.4                       \r\n=========================================================================\r\n              Ch\u00e0o m\u1eebng b\u1ea1n \u0111\u1ebfn v\u1edbi c\u00f4ng c\u1ee5 qu\u1ea3n l\u00fd LarVPS               \r\n-------------------------------------------------------------------------\r\n\r\nThay \u0111\u1ed5i Port SSH:\r\nNh\u1eadp port SSH m\u1edbi, n\u1ebfu b\u1ea1n b\u1ecf qua nh\u1ea5n Enter: 1991\r\nX\u00e1c nh\u1eadn port_ssh l\u00e0: 1991\r\n\r\nT\u1ea1o Port Admin:\r\nNh\u1eadp port Admin (s\u1eed d\u1ee5ng \u0111\u1ec3 b\u1ea3o m\u1eadt) (v\u00ed d\u1ee5: 2992): 1992\r\nX\u00e1c nh\u1eadn port_admin l\u00e0: 1992\r\n\r\nEmail qu\u1ea3n tr\u1ecb VPS: \r\nNh\u1eadp email c\u1ee7a b\u1ea1n: info@larvps.com\r\nX\u00e1c nh\u1eadn email qu\u1ea3n tr\u1ecb l\u00e0: info@larvps.com\r\n\r\nM\u1eb7c \u0111\u1ecbnh LarVPS c\u00e0i \u0111\u1eb7t PHP 7.4. B\u1ea1n c\u00f3 mu\u1ed1n d\u00f9ng PHP 7.3? (y\/n): n\r\nX\u00e1c nh\u1eadn c\u00e0i \u0111\u1eb7t PHP 7.4.\r\n\r\nX\u00e1c nh\u1eadn b\u1eaft \u0111\u1ea7u c\u00e0i \u0111\u1eb7t LarVPS? (y\/n):y\r\n\r\n\u0110ang chu\u1ea9n b\u1ecb v\u00e0 ti\u1ebfn h\u00e0nh c\u00e0i \u0111\u1eb7t LarVPS...\r\nC\u00e1m \u01a1n b\u1ea1n \u0111\u00e3 ch\u1ecdn LarVPS qu\u1ea3n l\u00fd VPS c\u1ee7a b\u1ea1n...<\/code><\/pre>\n<p><strong>Port SSH:<\/strong> M\u1eb7c \u0111\u1ecbnh l\u00e0 22, n\u1ebfu b\u1ea1n kh\u00f4ng mu\u1ed1n \u0111\u1ed5i port th\u00ec nh\u1ea5n Enter \u0111\u1ec3 b\u1ecf qua. Vi\u1ec7c \u0111\u1ed5i port l\u00e0 \u0111i\u1ec1u c\u1ea7n thi\u1ebft \u0111\u1ec3 tr\u00e1nh b\u1ecb t\u1ea5n c\u00f4ng.<br \/>\n<strong>PortAdmin<\/strong>: \u0110\u00e2y l\u00e0 port b\u00ed m\u1eadt \u0111\u1ec3 s\u1eed d\u1ee5ng c\u00e1c \u1ee9ng d\u1ee5ng. \u0110\u00e2y l\u00e0 port b\u1eaft bu\u1ed9c c\u1ea7n ph\u1ea3i nh\u1eadp.<br \/>\n<strong>Email qu\u1ea3n tr\u1ecb<\/strong>: \u0110\u00e2y l\u00e0 Email nh\u1eadn nh\u1eefng th\u00f4ng b\u00e1o c\u1ee7a VPS, ngo\u00e0i ra d\u00f9ng \u0111\u1ec3 c\u1ea5u h\u00ecnh SSL Let&#8217;s Encrypt Authority x3.<\/p>\n<p>Ch\u1edd 5-10p \u0111\u1ec3 LarVPS ti\u1ebfn h\u00e0nh c\u00e0i \u0111\u1eb7t. Th\u1eddi gian c\u00e0i \u0111\u1eb7t nhanh hay ch\u1eadm ph\u1ee5 thu\u1ed9c v\u00e0o t\u1ed1c \u0111\u1ed9 m\u1ea1ng c\u1ee7a VPS.<\/p>\n<\/section>\n<section id=\"item-4-16\" class=\"docs-section\">\n<h2 id=\"Menu_LarVPS_&#8211;_1.6_C\u1eadp_nh\u1eadt:_22\/06\/2020_01:31\">Menu LarVPS <small>&#8211; 1.6<\/small><small> C\u1eadp nh\u1eadt: 22\/06\/2020 01:31<\/small><\/h2>\n<p>\u0110\u1ec3 m\u1edf menu LarVPS b\u1ea1n ch\u1ec9 c\u1ea7n g\u00f5: <strong>larvps ho\u1eb7c 0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"language-hljs\"><code>[root@li1596-95 home]# larvps\u200b<\/code><\/pre>\n<p>N\u1ebfu b\u1ea1n mu\u1ed1n tho\u00e1t b\u1ea1n c\u00f3 th\u1ec3 nh\u1ea5n: <strong>Ctrl + C<\/strong> ho\u1eb7c b\u1ea5m ph\u00edm <strong>0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<\/section>\n<\/article>\n<article id=\"section-5\" class=\"docs-article\">\n<header class=\"docs-header\">\n<h1 class=\"docs-heading\">2. Qu\u1ea3n l\u00fd Domain<\/h1>\n<section class=\"docs-intro\">T\u00ednh n\u0103ng qu\u1ea3n l\u00fd domain cho ph\u00e9p b\u1ea1n th\u00eam t\u00ean mi\u1ec1n m\u1edbi v\u00e0o VPS m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng, kh\u00f4ng c\u1ea7n ph\u1ea3i c\u1ea5u h\u00ecnh vhost nhi\u1ec1u d\u00f2ng, m\u1ecdi th\u1ee9 \u0111\u1ec1u t\u1ef1 \u0111\u1ed9ng. Vi\u1ec7c x\u00f3a domain c\u0169ng r\u1ea5t \u0111\u01a1n gi\u1ea3n.<\/section>\n<\/header>\n<section id=\"item-5-5\" class=\"docs-section\">\n<h2 id=\"Danh_s\u00e1ch_Domain_&#8211;_2.1_C\u1eadp_nh\u1eadt:_22\/06\/2020_01:29\">Danh s\u00e1ch Domain <small>&#8211; 2.1<\/small><small> C\u1eadp nh\u1eadt: 22\/06\/2020 01:29<\/small><\/h2>\n<p>Hi\u1ec3n th\u1ecb t\u1ea5t c\u1ea3 Domain \u0111ang c\u00f3 tr\u00ean VPS b\u1ea1n v\u00e0o menu LarVPS ch\u1ecdn: <strong>Qu\u1ea3n l\u00fd Domain (1) &gt; Danh s\u00e1ch Domain (1)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"language-hljs\"><code>Danh s\u00e1ch Domain c\u1ee7a b\u1ea1n:\r\n\r\n1) abc.com\r\n2) thumbnail.site\r\n-------------------------------------------------------------------------\r\nT\u1ed5ng Domain: 2<\/code><\/pre>\n<\/section>\n<section id=\"item-5-3\" class=\"docs-section\">\n<h2 id=\"Th\u00eam_domain_&#8211;_2.2_C\u1eadp_nh\u1eadt:_22\/06\/2020_01:30\">Th\u00eam domain <small>&#8211; 2.2<\/small><small> C\u1eadp nh\u1eadt: 22\/06\/2020 01:30<\/small><\/h2>\n<p>\u0110\u1ec3 th\u00eam t\u00ean mi\u1ec1n m\u1edbi trong LarVPS b\u1ea1n v\u00e0o menu LarVPS ch\u1ecdn\u00a0module <strong>Qu\u1ea3n l\u00fd domain (1) &gt; Th\u00eam Domain (2) &gt; Nh\u1eadp Domain c\u1ee7a b\u1ea1n &gt; Enter<\/strong><\/p>\n<pre class=\"language-hljs\"><code>1) Danh s\u00e1ch Domain  3) X\u00f3a Domain\r\n2) Th\u00eam Domain\t     4) Tho\u00e1t\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n (1-4) [0=Exit]: 2\r\n-------------------------------------------------------------------------\r\nTh\u00eam domain m\u1edbi\r\n-------------------------------------------------------------------------\r\n\r\nNh\u1eadp domain b\u1ea1n mu\u1ed1n th\u00eam ( ex: larvps.com ): abc.com\r\nB\u1ea1n c\u00f3 mu\u1ed1n c\u00e0i WordPress phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t cho abc.com? (y\/n): y\r\n\u0110ang ti\u1ebfn h\u00e0nh th\u00eam domain...\r\n\r\n<\/code><\/pre>\n<p>N\u1ebfu b\u1ea1n mu\u1ed1n c\u00e0i \u0111\u1eb7t WordPress b\u1ea1n ch\u1ecdn: <strong>Y &gt; Enter<br \/>\n<\/strong>N\u1ebfu b\u1ea1n ch\u1ecdn <strong>N<\/strong> LarVPS s\u1ebd h\u1ecfi b\u1ea1n c\u00f3 mu\u1ed1n c\u00e0i \u0111\u1eb7t Laravel<br \/>\nN\u1ebfu mu\u1ed1n ch\u1ec9 th\u00eam domain v\u00e0 kh\u00f4ng c\u00e0i \u0111\u1eb7t g\u00ec b\u1ea1n c\u1ee9 ch\u1ecdn <strong>N<\/strong><\/p>\n<p>&nbsp;<\/p>\n<\/section>\n<section id=\"item-5-6\" class=\"docs-section\">\n<h2 id=\"X\u00f3a_domain_&#8211;_2.3_C\u1eadp_nh\u1eadt:_22\/06\/2020_01:30\">X\u00f3a domain <small>&#8211; 2.3<\/small><small> C\u1eadp nh\u1eadt: 22\/06\/2020 01:30<\/small><\/h2>\n<p>\u0110\u1ec3 x\u00f3a t\u00ean mi\u1ec1n, b\u1ea1n v\u00e0o menu LarVPS ch\u1ecdn <strong>Qu\u1ea3n l\u00fd Domain (1) &gt; X\u00f3a Domain (3)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"language-hljs\"><code>1) Danh s\u00e1ch Domain  3) X\u00f3a Domain\r\n2) Th\u00eam Domain\t     4) Tho\u00e1t\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n (1-4) [0=Exit]: 3\r\n-------------------------------------------------------------------------\r\nX\u00f3a Domain\r\n-------------------------------------------------------------------------\r\n\r\nDanh s\u00e1ch domain\r\n1) abc.com\r\n2) thumbnail.site\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n [0=Exit]: 1\r\nX\u00e1c nh\u1eadn x\u00f3a abc.com? (y\/n): y<\/code><\/pre>\n<p>Nh\u1eadp s\u1ed1 th\u1ee9 t\u1ef1 domain b\u1ea1n mu\u1ed1n x\u00f3a. B\u1ea5m x\u00e1c nh\u1eadn y v\u00e0 Enter.<br \/>\nL\u01b0u \u00fd backup l\u1ea1i d\u1eef li\u1ec7u c\u1ea7n thi\u1ebft tr\u01b0\u1edbc khi x\u00f3a domain.<\/p>\n<\/section>\n<\/article>\n<article id=\"section-6\" class=\"docs-article\">\n<header class=\"docs-header\">\n<h1 class=\"docs-heading\">3. Qu\u1ea3n l\u00fd Let&#8217;s Encrypt<\/h1>\n<section class=\"docs-intro\">T\u00ednh n\u0103ng qu\u1ea3n l\u00fd Let&#8217;s Encrypt gi\u00fap b\u1ea1n c\u00f3 th\u1ec3 bi\u1ebfn website t\u1eeb http:\/\/ sang https:\/\/ mi\u1ec5n ph\u00ed m\u00e0 kh\u00f4ng m\u1ea5t b\u1ea5t k\u1ef3 m\u1ed9t chi ph\u00ed n\u00e0o.<\/section>\n<\/header>\n<section id=\"item-6-7\" class=\"docs-section\">\n<h2 id=\"Danh_s\u00e1ch_Let&#8217;s_Encrypt_&#8211;_3.1_C\u1eadp_nh\u1eadt:_23\/06\/2020_22:56\">Danh s\u00e1ch Let&#8217;s Encrypt <small>&#8211; 3.1<\/small><small> C\u1eadp nh\u1eadt: 23\/06\/2020 22:56<\/small><\/h2>\n<p>Li\u1ec7t k\u00ea c\u00e1c domain \u0111\u00e3 k\u00edch ho\u1ea1t https b\u1eb1ng Let&#8217;s Encrypt. B\u1ea1n v\u00e0o <strong>Qu\u1ea3n l\u00fd Let&#8217;s Encrypt &gt; Danh s\u00e1ch domain<\/strong><\/p>\n<pre class=\"language-hljs\"><code>Danh s\u00e1ch Domain:\r\n\r\n1) diachibank.com\r\n\r\n=========================================================================\r\nQu\u1ea3n l\u00fd Let's Encrypt\r\n=========================================================================\r\n1) Danh s\u00e1ch domain    3) X\u00f3a Let's Encrypt\r\n2) Th\u00eam Let's Encrypt  4) Gia h\u1ea1n domain\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n (1-4) [0=Tho\u00e1t]: \u200b<\/code><\/pre>\n<\/section>\n<section id=\"item-6-9\" class=\"docs-section\">\n<h2 id=\"X\u00f3a_Let&#8217;s_Encrypt_&#8211;_3.2_C\u1eadp_nh\u1eadt:_23\/06\/2020_23:01\">X\u00f3a Let&#8217;s Encrypt <small>&#8211; 3.2<\/small><small> C\u1eadp nh\u1eadt: 23\/06\/2020 23:01<\/small><\/h2>\n<p>Sau th\u1eddi gian s\u1eed d\u1ee5ng, n\u1ebfu b\u1ea1n mu\u1ed1n x\u00f3a Let&#8217;s Encrypt b\u1ea1n v\u00e0o <strong>Qu\u1ea3n l\u00fd Let&#8217;s Encrypt &gt; X\u00f3a Let&#8217;s Encrypt<\/strong> sau \u0111\u00f3 ch\u1ecdn domain b\u1ea1n mu\u1ed1n x\u00f3a.<\/p>\n<pre class=\"language-hljs\"><code>-------------------------------------------------------------------------\r\nX\u00f3a SSL - Let's Encrypt\r\n-------------------------------------------------------------------------\r\n\r\nCh\u1ecdn domain b\u1ea1n mu\u1ed1n x\u00f3a\r\n\r\n1) diachibank.com\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n [0=Exit]: 1\r\n\r\nX\u00e1c nh\u1eadn x\u00f3a diachibank.com? (y\/n): y<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>Sau khi x\u00f3a \u0111\u1ec3 truy c\u1eadp l\u1ea1i domain b\u1eb1ng tr\u00ecnh duy\u1ec7t b\u1ea1n c\u1ea7n chuy\u1ec3n sang ch\u1ebf \u0111\u1ed9 guest ho\u1eb7c private ho\u1eb7c chuy\u1ec3n sang tr\u00ecnh duy\u1ec7t kh\u00e1c.<\/p>\n<\/section>\n<section id=\"item-6-10\" class=\"docs-section\">\n<h2 id=\"Th\u00eam_Let&#8217;s_Encrypt_&#8211;_3.3_C\u1eadp_nh\u1eadt:_26\/06\/2020_02:36\">Th\u00eam Let&#8217;s Encrypt <small>&#8211; 3.3<\/small><small> C\u1eadp nh\u1eadt: 26\/06\/2020 02:36<\/small><\/h2>\n<p>B\u1ea1n v\u00e0o <strong>Qu\u1ea3n l\u00fd Let&#8217;s Encrypt &gt; Th\u00eam Let&#8217;s Encrypt<br \/>\nY\u00eau c\u1ea7u b\u1eaft bu\u1ed9c:<\/strong> Domain \u0111\u00e3 tr\u1ecf IP v\u1ec1 VPS.<\/p>\n<pre class=\"language-hljs\"><code>=========================================================================\r\nQu\u1ea3n l\u00fd Let's Encrypt\r\n=========================================================================\r\n1) Danh s\u00e1ch domain    3) X\u00f3a Let's Encrypt\r\n2) Th\u00eam Let's Encrypt  4) Gia h\u1ea1n domain\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n (1-4) [0=Tho\u00e1t]: 2\r\n-------------------------------------------------------------------------\r\nTh\u00eam SSL - Let's Encrypt\r\n-------------------------------------------------------------------------\r\n\r\nDanh s\u00e1ch domain\r\n1) diachibank.com\r\n2) thumbnail.site\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n [0=Exit]: 1\r\nSaving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\r\nPlugins selected: Authenticator nginx, Installer nginx\r\n\r\nWhich names would you like to activate HTTPS for?\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\n1: diachibank.com\r\n2: www.diachibank.com\r\n3: thumbnail.site\r\n4: www.thumbnail.site\r\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\r\nSelect the appropriate numbers separated by commas and\/or spaces, or leave input\r\nblank to select all options shown (Enter 'c' to cancel): 1,2\r\n- - - - - - - - - - - - - - - - - - - - - - - - - -\r\nCongratulations! You have successfully enabled https:\/\/diachibank.com and\r\nhttps:\/\/www.diachibank.com<\/code><\/pre>\n<p>Ch\u1ecdn domain b\u1ea1n mu\u1ed1n k\u00edch ho\u1ea1t https. V\u00ed d\u1ee5 \u1edf \u0111\u00e2y m\u00ecnh ch\u1ecdn l\u00e0 <strong>1<\/strong> cho diachibank.com<\/p>\n<p>B\u01b0\u1edbc ti\u1ebfp theo s\u1ebd hi\u1ec7n danh s\u00e1ch c\u00e1c domain tr\u00ean VPS, b\u1ea1n l\u01b0u \u00fd c\u1ed9t ngo\u00e0i c\u00f9ng (1,2,3,4).<br \/>\n\u1ede \u0111\u00e2y m\u00ecnh s\u1ebd nh\u1eadp <strong>1,2 ( d\u1ea5u ph\u1ea9y)<\/strong> cho diachibank.com v\u00e0 www.diachibank.com sau \u0111\u00f3 enter \u0111\u1ec3 b\u1eaft \u0111\u1ea7u k\u00edch ho\u1ea1t https.<\/p>\n<p><strong>K\u1ebft qu\u1ea3:<\/strong>\u00a0<a href=\"https:\/\/www.diachibank.com\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.diachibank.com<\/a> s\u1ebd t\u1ef1 redirect sang <a href=\"https:\/\/diachibank.com\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/diachibank.com<\/a>. T\u1ea5t c\u1ea3 domain http s\u1ebd chuy\u1ec3n sang https. N\u1ebfu b\u1ea1n d\u00f9ng WP th\u00ec c\u00e0i\u00a0 th\u00eam plugin <a href=\"https:\/\/wordpress.org\/plugins\/really-simple-ssl\/\" rel=\"nofollow noopener\" target=\"_blank\">Really Simple SSL<\/a>.<\/p>\n<\/section>\n<section id=\"item-6-11\" class=\"docs-section\">\n<h2 id=\"Gia_h\u1ea1n_Let&#8217;s_Encrypt_&#8211;_3.4_C\u1eadp_nh\u1eadt:_23\/06\/2020_22:57\">Gia h\u1ea1n Let&#8217;s Encrypt <small>&#8211; 3.4<\/small><small> C\u1eadp nh\u1eadt: 23\/06\/2020 22:57<\/small><\/h2>\n<p>M\u1eb7c \u0111\u1ecbnh LarVPS ki\u1ec3m tra v\u00e0 t\u1ef1 renew SSL cho b\u1ea1n. Trong t\u00ecnh hu\u1ed1ng x\u1ea5u n\u1ebfu c\u00f3 v\u1ea5n \u0111\u1ec1 v\u1ec1 gia h\u1ea1n, b\u1ea1n c\u00f3 th\u1ec3 v\u00e0o Qu\u1ea3n l\u00fd <strong>Let&#8217;s Encrypt &gt; Gia h\u1ea1n Let&#8217;s Encrypt<\/strong> ch\u1ecdn t\u00ean domain b\u1ea1n c\u1ea7n gia h\u1ea1n.<\/p>\n<pre class=\"language-hljs\"><code>-------------------------------------------------------------------------\r\nGia h\u1ea1n th\u1ee7 c\u00f4ng - Let's Encrypt\r\n-------------------------------------------------------------------------\r\n\r\nCh\u1ecdn domain b\u1ea1n mu\u1ed1n gia h\u1ea1n\r\n\r\n1) diachibank.com\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n [0=Exit]: 1\r\n\r\nX\u00e1c nh\u1eadn gia h\u1ea1n diachibank.com? (y\/n): y\u200b<\/code><\/pre>\n<\/section>\n<\/article>\n<article id=\"section-7\" class=\"docs-article\">\n<header class=\"docs-header\">\n<h1 class=\"docs-heading\">4. Qu\u1ea3n l\u00fd SSH<\/h1>\n<section class=\"docs-intro\">T\u00ednh n\u0103ng qu\u1ea3n l\u00fd SSH gi\u00fap b\u1ea1n c\u00f3 th\u1ec3 thay \u0111\u1ed5i port truy c\u1eadp SSH gi\u00fap ng\u0103n ch\u1eb7n c\u00e1c \u0111\u1ee3t scan port, thay \u0111\u1ed5i m\u1eadt kh\u1ea9u c\u1ee7a Root \u0111\u01a1n gi\u1ea3n.<\/section>\n<\/header>\n<section id=\"item-7-18\" class=\"docs-section\">\n<h2 id=\"\u0110\u1ed5i_port_SSH_&#8211;_4.1_C\u1eadp_nh\u1eadt:_18\/06\/2020_10:26\">\u0110\u1ed5i port SSH <small>&#8211; 4.1<\/small><small> C\u1eadp nh\u1eadt: 18\/06\/2020 10:26<\/small><\/h2>\n<p>\u0110\u1ec3 \u0111\u1ed5i port truy c\u1eadp SSH b\u1ea1n v\u00e0o:<strong> Qu\u1ea3n l\u00fd SSH &gt; \u0110\u1ed5i port SSH<\/strong><\/p>\n<pre class=\"language-hljs\"><code>=========================================================================\r\nQu\u1ea3n l\u00fd SSH\r\n=========================================================================\r\n1) \u0110\u1ed5i port SSH\r\n2) \u0110\u1ed5i Password\r\n3) Tho\u00e1t\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n (1-3) [0=Exit]: 1    \r\n-------------------------------------------------------------------------\r\nThay \u0111\u1ed5i port SSH hi\u1ec7n t\u1ea1i\r\n-------------------------------------------------------------------------\r\n\r\nPort SSH hi\u1ec7n t\u1ea1i: 2991\r\n-------------------------------------------------------------------------\r\nNh\u1eadp Port SSH m\u1edbi: 2995\r\nX\u00e1c nh\u1eadn thay \u0111\u1ed5i port SSH? (y\/n): y<\/code><\/pre>\n<\/section>\n<section id=\"item-7-19\" class=\"docs-section\">\n<h2 id=\"\u0110\u1ed5i_Password_SSH_&#8211;_4.2_C\u1eadp_nh\u1eadt:_18\/06\/2020_10:30\">\u0110\u1ed5i Password SSH <small>&#8211; 4.2<\/small><small> C\u1eadp nh\u1eadt: 18\/06\/2020 10:30<\/small><\/h2>\n<p>\u0110\u1ec3 \u0111\u1ed5i m\u1eadt kh\u1ea9u c\u1ee7a Root b\u1ea1n c\u00f3 th\u1ec3 g\u00f5 l\u1ec7nh: <strong>passwd<br \/>\n<\/strong>Ho\u1eb7c b\u1ea1n truy c\u1eadp v\u00e0o: Qu\u1ea3n l\u00fd SSH &gt; \u0110\u1ed5i Password<\/p>\n<pre class=\"language-hljs\"><code>=========================================================================\r\nQu\u1ea3n l\u00fd SSH\r\n=========================================================================\r\n1) \u0110\u1ed5i port SSH\r\n2) \u0110\u1ed5i Password\r\n3) Tho\u00e1t\r\nNh\u1eadp l\u1ef1a ch\u1ecdn c\u1ee7a b\u1ea1n (1-3) [0=Exit]: 2\r\n-------------------------------------------------------------------------\r\nThay \u0111\u1ed5i Password\r\n-------------------------------------------------------------------------\r\n\r\nNh\u1eadp User (ex: root): root\r\nChanging password for user root.\r\nNew password: \r\nRetype new password: \r\n<\/code><\/pre>\n<p>Nh\u1eadp user l\u00e0 root<br \/>\nNew password: Nh\u1eadp m\u1eadt kh\u1ea9u m\u1edbi<br \/>\nRetype new password: nh\u1eadp l\u1ea1i m\u1eadt kh\u1ea9u m\u1edbi<\/p>\n<p>L\u01b0u \u00fd password s\u1ebd \u1ea9n khi g\u00f5, b\u1ea1n c\u1ee9 g\u00f5 li\u1ec1n m\u1ea1ch.<\/p>\n<\/section>\n<\/article>\n<article id=\"section-8\" class=\"docs-article\">\n<header class=\"docs-header\">\n<h1 class=\"docs-heading\">5. Qu\u1ea3n l\u00fd PortAdmin<\/h1>\n<section class=\"docs-intro\">Qu\u1ea3n l\u00fd portAdmin gi\u00fap b\u1ea3o v\u1ec7 \u1ee9ng d\u1ee5ng tr\u01b0\u1edbc c\u00e1c truy c\u1eadp v\u00e0o \u1ee9ng d\u1ee5ng, \u0111i\u1ec3n h\u00ecnh tr\u01b0\u1edbc khi truy c\u1eadp phpMyAdmin s\u1ebd xu\u1ea5t hi\u1ec7n popup y\u00eau c\u1ea7u Username v\u00e0 Password.<\/section>\n<\/header>\n<section id=\"item-8-20\" class=\"docs-section\">\n<h2 id=\"Danh_s\u00e1ch_User_&#8211;_5.1_C\u1eadp_nh\u1eadt:_22\/06\/2020_03:22\">Danh s\u00e1ch User <small>&#8211; 5.1<\/small><small> C\u1eadp nh\u1eadt: 22\/06\/2020 03:22<\/small><\/h2>\n<p>PortAdmin l\u00e0 port b\u1ea1n nh\u1eadp khi c\u00e0i \u0111\u1eb7t LarVPS v\u00ed d\u1ee5 \u1edf \u0111\u00e2y l\u00e0: <strong>2991.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"language-hljs\"><code>http:\/\/139.162.112.95:2991\/phpmyadmin<\/code><\/pre>\n<p>T\u1ea1i sao c\u1ea7n c\u00f3 port Admin? B\u1edfi v\u00ec vi\u1ec7c b\u1ea3o v\u1ec7 truy c\u1eadp v\u00e0o c\u00e1c \u1ee9ng d\u1ee5ng quan tr\u1ecdng qu\u1ea3n l\u00fd nh\u01b0 phpMyAdmin l\u00e0 \u0111i\u1ec1u c\u1ea7n thi\u1ebft n\u1ebfu kh\u00f4ng c\u00f3 port Admin th\u00ec c\u00e1c Attacker s\u1ebd d\u1ec5 d\u00e0ng truy c\u1eadp <a href=\"http:\/\/139.162.112.95\/phpmyadmin\" rel=\"nofollow\">http:\/\/139.162.112.95\/phpmyadmin<\/a> m\u00e0 kh\u00f4ng c\u00f3 b\u1ea5t k\u1ef3 c\u1ea3n tr\u1edf n\u00e0o.<\/p>\n<p>Hi\u1ec3n th\u1ecb c\u00e1c user c\u00f3 th\u1ec3 truy c\u1eadp port Admin b\u1ea1n v\u00e0o:<strong> Qu\u1ea3n l\u00fd PortAdmin &gt; Danh s\u00e1ch User<\/strong><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"language-hljs\"><code>Danh s\u00e1ch User\r\n1) admin\r\n2) thumbnailsite\r\n3) abccom<\/code><\/pre>\n<\/section>\n<section id=\"item-8-21\" class=\"docs-section\">\n<h2 id=\"Th\u00eam_User_&#8211;_5.2\">Th\u00eam User <small>&#8211; 5.2<\/small><\/h2>\n<\/section>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>Nh\u1eefng y\u00eau c\u1ea7u tr\u01b0\u1edbc khi c\u00e0i \u0111\u1eb7t LarVPS b\u1ea1n c\u1ea7n n\u1eafm qua nh\u01b0 h\u1ec7 \u0111i\u1ec1u h\u00e0nh: Centos 8, VPS c\u00e0i tr\u1eafng ch\u01b0a c\u00e0i b\u1ea5t k\u1ef3 th\u00f4ng tin g\u00ec. Th\u00f4ng tin v\u1ec1 LarVPS &#8211; 1.1 C\u1eadp nh\u1eadt: 21\/06\/2020 09:10 H\u1ed7 tr\u1ee3: PHP: 7.4, 7.3, 7.2 MariaDB: 10.4 Nginx: 18.0 phpMyAdmin: 5.0 Fail2ban Let&#8217;s Encrypt Authority x3 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[17],"class_list":["post-5733","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-huong-dan-ve-cloud-vps"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/5733","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=5733"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/5733\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/16424"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=5733"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=5733"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=5733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}