{"id":6940,"date":"2021-09-08T16:57:52","date_gmt":"2021-09-08T09:57:52","guid":{"rendered":"https:\/\/idconline.vn\/blog\/?p=6940"},"modified":"2021-09-08T16:57:58","modified_gmt":"2021-09-08T09:57:58","slug":"co-the-luu-tru-trang-web-tren-vps-khong-idc-online","status":"publish","type":"post","link":"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/","title":{"rendered":"C\u00f3 th\u1ec3 l\u01b0u tr\u1eef trang web tr\u00ean VPS kh\u00f4ng?"},"content":{"rendered":"\n<p>VPS cho ph\u00e9p b\u1ea1n c\u00f3 \u0111\u01b0\u1ee3c c\u00e1c t\u00e0i nguy\u00ean chuy\u00ean d\u1ee5ng \u0111\u1ec3 l\u01b0u tr\u1eef trang web c\u1ee7a m\u00ecnh tr\u00ean shared hosting. VPS l\u00e0 m\u1ed9t c\u00e1ch \u0111\u1ec3 l\u01b0u tr\u1eef trang web c\u1ee7a b\u1ea1n tr\u00ean Internet. N\u00f3i chung n\u00f3 t\u1ed1t h\u01a1n shared hosting v\u00e0 dedicated hosting. N\u00f3 t\u1ed1t h\u01a1n shared hosting v\u1ec1 kh\u1ea3 n\u0103ng ph\u1ee5c h\u1ed3i, t\u00ednh kh\u1ea3 d\u1ee5ng v\u00e0 hi\u1ec7u su\u1ea5t. V\u00e0 n\u00f3 r\u1ebb h\u01a1n nhi\u1ec1u so v\u1edbi dedicated hosting.   Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang t\u00f4i s\u1ebd chia s\u1ebb h\u01b0\u1edbng d\u1eabn t\u1eebng b\u01b0\u1edbc v\u1ec1 c\u00e1ch t\u1ea1o m\u1ed9t trang web v\u1edbi d\u1ecbch v\u1ee5 l\u01b0u tr\u1eef VPS. C\u00e1c th\u00e0nh ph\u1ea7n v\u00e0 \u1ee9ng d\u1ee5ng ch\u00ednh m\u00e0 b\u1ea1n s\u1ebd s\u1eed d\u1ee5ng bao g\u1ed3m Apache, MySQL, Perl \/ CGI v\u00e0 PHP. Sau \u0111\u00f3, IDC Online s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch t\u1ea3i l\u00ean n\u1ed9i dung trang web c\u1ee7a b\u1ea1n qua FTP. <\/p>\n\n\n\n<div id=\"toc_container\" class=\"toc_white no_bullets\"><p class=\"toc_title\">M\u1ee5c l\u1ee5c<\/p><ul class=\"toc_list\"><li><a href=\"#Luu_tru_trang_web_dau_tien_cua_ban_tren_VPS\">L\u01b0u tr\u1eef trang web \u0111\u1ea7u ti\u00ean c\u1ee7a b\u1ea1n tr\u00ean VPS:<\/a><ul><li><a href=\"#Co_mot_VPS\">C\u00f3 m\u1ed9t VPS<\/a><\/li><li><a href=\"#Ket_noi_voi_may_chu_tu_xa\">K\u1ebft n\u1ed1i v\u1edbi m\u00e1y ch\u1ee7 t\u1eeb xa<\/a><\/li><li><a href=\"#Cap_nhat_he_thong\">C\u1eadp nh\u1eadt h\u1ec7 th\u1ed1ng<\/a><\/li><li><a href=\"#Cau_hinh_Apache\">C\u1ea5u h\u00ecnh Apache<\/a><\/li><li><a href=\"#Cau_hinh_MySQL\">C\u1ea5u h\u00ecnh MySQL<\/a><\/li><li><a href=\"#Tai_len_tep_cua_ban_bang_SFTP\">T\u1ea3i l\u00ean t\u1ec7p c\u1ee7a b\u1ea1n b\u1eb1ng SFTP<\/a><\/li><\/ul><\/li><li><a href=\"#Ket_luan\">K\u1ebft lu\u1eadn<\/a><\/li><\/ul><\/div>\n<h2 class=\"wp-block-heading\"><span id=\"Luu_tru_trang_web_dau_tien_cua_ban_tren_VPS\">L\u01b0u tr\u1eef trang web \u0111\u1ea7u ti\u00ean c\u1ee7a b\u1ea1n tr\u00ean <a href=\"https:\/\/idconline.vn\/vps-server.html\" target=\"_blank\" rel=\"noreferrer noopener\">VPS<\/a>:<\/span><\/h2>\n\n\n\n<p>L\u01b0u tr\u1eef VPS hi\u1ec3n th\u1ecb c\u00e1c t\u1ec7p t\u1eeb nhi\u1ec1u trang web kh\u00e1c nhau, nh\u01b0ng m\u1ed7i b\u1ed9 t\u1ec7p \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef trong m\u1ed9t m\u00f4i tr\u01b0\u1eddng \u1ea3o ri\u00eang bi\u1ec7t. V\u00ec v\u1eady ch\u1ee7 s\u1edf h\u1eefu trang web c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng t\u00e0i nguy\u00ean chuy\u00ean d\u1ee5ng v\u1edbi chi ph\u00ed r\u1ea5t th\u1ea5p.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/may-chu-Cloud-VPS-hinh2.png\" alt=\"l\u01b0u tr\u1eef trang web tr\u00ean VPS\" class=\"wp-image-6552\" width=\"768\" srcset=\"https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/may-chu-Cloud-VPS-hinh2.png 1200w, https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/may-chu-Cloud-VPS-hinh2-300x167.png 300w, https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/may-chu-Cloud-VPS-hinh2-1024x570.png 1024w, https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/may-chu-Cloud-VPS-hinh2-768x428.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Co_mot_VPS\">C\u00f3 m\u1ed9t VPS<\/span><\/h3>\n\n\n\n<p>\u0110i\u1ec1u \u0111\u1ea7u ti\u00ean b\u1ea1n c\u1ea7n l\u00e0m l\u00e0 c\u00f3 \u0111\u01b0\u1ee3c d\u1ecbch v\u1ee5 l\u01b0u tr\u1eef VPS tr\u00ean n\u1ec1n t\u1ea3ng l\u01b0u tr\u1eef VPS \u0111\u00e1ng tin c\u1eady. B\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o d\u1ecbch v\u1ee5 VPS c\u1ee7a <a href=\"https:\/\/idconline.vn\/vps-server.html\" target=\"_blank\" rel=\"noreferrer noopener\">IDC Online<\/a>. Sau khi ho\u00e0n t\u1ea5t thanh to\u00e1n, b\u1ea1n s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c c\u00e1c chi ti\u1ebft \u0111\u0103ng nh\u1eadp c\u1ea7n thi\u1ebft \u0111\u1ec3 ti\u1ebfn h\u00e0nh thi\u1ebft l\u1eadp.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Ket_noi_voi_may_chu_tu_xa\">K\u1ebft n\u1ed1i v\u1edbi m\u00e1y ch\u1ee7 t\u1eeb xa<\/span><\/h3>\n\n\n\n<p>\u0110\u1ec3 k\u1ebft n\u1ed1i v\u1edbi m\u00e1y ch\u1ee7 VPS t\u1eeb xa, b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng l\u1ec7nh ssh nh\u01b0 sau:&nbsp;<\/p>\n\n\n\n<p>ssh root @ XXXX, trong \u0111\u00f3 root l\u00e0 t\u00ean ng\u01b0\u1eddi d\u00f9ng b\u1ea1n \u0111\u00e3 ch\u1ec9 \u0111\u1ecbnh v\u00e0 XXXX l\u00e0 \u0111\u1ecba ch\u1ec9 IP c\u1ee7a m\u00e1y ch\u1ee7 l\u01b0u tr\u1eef. N\u1ebfu \u0111\u01b0\u1ee3c nh\u1eafc, h\u00e3y nh\u1eadp m\u1eadt kh\u1ea9u c\u1ee7a b\u1ea1n \u0111\u1ec3 ti\u1ebfp t\u1ee5c.<\/p>\n\n\n\n<p>Xem c\u00e1ch k\u1ebft n\u1ed1i t\u1ea1i \u0111\u00e2y.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Cap_nhat_he_thong\">C\u1eadp nh\u1eadt h\u1ec7 th\u1ed1ng<\/span><\/h3>\n\n\n\n<p>B\u01b0\u1edbc chu\u1ea9n b\u1ecb \u0111\u01b0\u1ee3c khuy\u1ebfn ngh\u1ecb l\u00e0 c\u1eadp nh\u1eadt c\u00e1c g\u00f3i ph\u1ea7n m\u1ec1m tr\u00ean h\u1ec7 th\u1ed1ng. \u0110i\u1ec1u n\u00e0y \u0111\u1eb7c bi\u1ec7t quan tr\u1ecdng. Ch\u00fang t\u00f4i s\u1ebd c\u00e0i \u0111\u1eb7t PHP v\u00e0 Apache ti\u1ebfp theo. T\u00f9y thu\u1ed9c v\u00e0o b\u1ea3n ph\u00e2n ph\u1ed1i Linux m\u00e0 m\u00e1y ch\u1ee7 c\u1ee7a b\u1ea1n \u0111ang ch\u1ea1y, h\u00e3y s\u1eed d\u1ee5ng l\u1ec7nh apt-get ho\u1eb7c yum \u0111\u1ec3 c\u1eadp nh\u1eadt h\u1ec7 th\u1ed1ng c\u1ee7a b\u1ea1n:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>Sudo apt-get update<\/p><p>Sudo yum update<\/p><\/blockquote>\n\n\n\n<p>B\u00e2y gi\u1edd ch\u00fang ta c\u1ea7n c\u00e0i \u0111\u1eb7t m\u1ed9t m\u00e1y ch\u1ee7 web, Apache,m\u1ed9t \u1ee9ng d\u1ee5ng c\u01a1 s\u1edf d\u1eef li\u1ec7u, MySQL v\u00e0 tr\u00ecnh th\u00f4ng d\u1ecbch m\u00e3, Perl v\u00e0 PHP. S\u1eed d\u1ee5ng&nbsp;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>yum install httpd php php-mysql perl mysql mysql-server&nbsp; ho\u1eb7c<\/p><p>Apt-get install httpd php php-mysql perl mysql mysql-server<\/p><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Cau_hinh_Apache\">C\u1ea5u h\u00ecnh Apache<\/span><\/h3>\n\n\n\n<p>B\u00e2y gi\u1edd ch\u00fang ta \u0111\u1ebfn v\u1edbi ph\u1ea7n k\u1ef9 thu\u1eadt c\u1ee7a h\u01b0\u1edbng d\u1eabn n\u00e0y. N\u1ebfu b\u1ea1n \u0111\u1ecbnh l\u01b0u tr\u1eef m\u1ed9t trang web duy nh\u1ea5t, t\u1ea5t c\u1ea3 nh\u1eefng g\u00ec b\u1ea1n ph\u1ea3i l\u00e0m l\u00e0 sao ch\u00e9p c\u00e1c t\u1ec7p v\u00e0o th\u01b0 m\u1ee5c \/var\/www m\u1eb7c \u0111\u1ecbnh v\u00e0 xem \u0111i\u1ec1u k\u1ef3 di\u1ec7u x\u1ea3y ra. Tuy nhi\u00ean, b\u1ea1n c\u0169ng c\u00f3 th\u1ec3 l\u01b0u tr\u1eef nhi\u1ec1u trang web tr\u00ean c\u00f9ng m\u1ed9t m\u00e1y ch\u1ee7 VPS \u0111\u1ec3 khai th\u00e1c ti\u1ec1m n\u0103ng th\u1ef1c s\u1ef1 c\u1ee7a n\u00f3. \u0110\u1ec3 \u0111\u1ea3m b\u1ea3o m\u1ecdi th\u1ee9 an to\u00e0n, b\u1ea1n n\u00ean t\u1ea1o ng\u01b0\u1eddi d\u00f9ng cho m\u1ed7i trang web. Sau \u0111\u00f3 l\u01b0u c\u00e1c t\u1ec7p cho trang web \u0111\u00f3 trong th\u01b0 m\u1ee5c public_html trong tth\u01b0 m\u1ee5c main\/home. \u0110i\u1ec1u n\u00e0y t\u1ea1o ra m\u1ed9t c\u1ea5u tr\u00fac th\u01b0 m\u1ee5c s\u1ea1ch s\u1ebd, d\u1ec5 b\u1ea3o tr\u00ec v\u00e0 c\u0169ng c\u1ea3i thi\u1ec7n t\u00ednh b\u1ea3o m\u1eadt c\u1ee7a vi\u1ec7c h\u1ee3p nh\u1ea5t. B\u00e2y gi\u1edd b\u1eaft \u0111\u1ea7u qu\u00e1 tr\u00ecnh<\/p>\n\n\n\n<ol><li>Th\u00eam ng\u01b0\u1eddi d\u00f9ng m\u1edbi: useradd john<\/li><li>\u0110\u1eb7t m\u1eadt kh\u1ea9u cho ng\u01b0\u1eddi d\u00f9ng m\u1edbi t\u1ea1o: passwd john<\/li><li>T\u1ea1o m\u1ed9t th\u01b0 m\u1ee5c m\u1edbi trong th\u01b0 m\u1ee5c \/ home: mkdir\/home\/john\/public_html<\/li><li>C\u1ea5p quy\u1ec1n s\u1edf h\u1eefu th\u01b0 m\u1ee5c m\u1edbi t\u1ea1o cho ng\u01b0\u1eddi d\u00f9ng m\u1edbi t\u1ea1o: chown john: john\/home\/john\/public_html\/<\/li><li>\u0110\u1eb7t quy\u1ec1n cho th\u01b0 m\u1ee5c: chmod 755\/ home\/john\/public_html\/ &amp;&amp; chown 711\/home\/example\/<\/li><li>Ch\u1ec9nh s\u1eeda t\u1ec7p \/etc\/httpd\/conf\/httpd.conf b\u1eb1ng tr\u00ecnh ch\u1ec9nh s\u1eeda y\u00eau th\u00edch c\u1ee7a b\u1ea1n.&nbsp;<\/li><\/ol>\n\n\n\n<p>\u0110\u1ed1i v\u1edbi v\u00ed d\u1ee5 n\u00e0y, ch\u00fang t\u00f4i s\u1ebd s\u1eed d\u1ee5ng vi: vi \/etc\/httpd\/conf\/httpd.conf<\/p>\n\n\n\n<p>Cu\u1ed9n xu\u1ed1ng cu\u1ed1i t\u1ec7p v\u00e0 nh\u1eadp m\u00e3 sau \u0111\u1ec3 th\u00eam m\u00e1y ch\u1ee7 \u1ea3o:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>NameVirtualHost *: 80<\/p><p>RewriteEngine tr\u00ean<\/p><p>RewriteCond% {HTTP_HOST} ^ www \\ .johnswebsite \\ .com $ [NC]<\/p><p>RewriteRule ^ (. *) $ Http : \/\/johnswebsite.com$1 [R = 301, L]<\/p><p>ServerName johnswebsite.com<\/p><p>ServerAlias \u200b\u200bwww. johnswebsite.com<\/p><p>DocumentRoot \/ home \/ john \/ public_html<\/p><p>ErrorLog \/ var \/ log \/ johnswebsite.com_error_log<\/p><p>CustomLog \/ var \/ log \/ johnswebsite.com_access_log k\u1ebft h\u1ee3p<\/p><p>DirectoryIndex index.html index.htm index.php index.php4 index.php5<\/p><p>SetOutputFilter DEFLATE<\/p><p>T\u00f9y ch\u1ecdn -Index + Bao g\u1ed3mNOEXEC + SymLinksifOwnerMatch + ExecCGI<\/p><p>cho ph\u00e9p t\u1eeb t\u1ea5t c\u1ea3<\/p><p>AllowOverride All<\/p><\/blockquote>\n\n\n\n<p>Trong c\u00e1c d\u00f2ng m\u00e3 tr\u00ean, h\u00e3y s\u1eeda \u0111\u1ed5i \u0111\u01b0\u1eddng d\u1eabn \/home\/john\/public_html theo t\u00ean ng\u01b0\u1eddi d\u00f9ng c\u1ee7a b\u1ea1n, b\u1ea5t c\u1ee9 n\u01a1i n\u00e0o b\u1ea1n nh\u00ecn th\u1ea5y. \u0110\u1ed3ng th\u1eddi thay \u0111\u1ed5i johnswebsite.com th\u00e0nh t\u00ean mi\u1ec1n trang web c\u1ee7a b\u1ea1n khi c\u1ea7n thi\u1ebft. L\u01b0u file v\u00e0 \u0111\u00f3ng n\u00f3 l\u1ea1i.<\/p>\n\n\n\n<p>7. B\u00e2y gi\u1edd ch\u00fang ta c\u1ea7n \u0111\u1ea3m b\u1ea3o r\u1eb1ng Apache kh\u1edfi \u0111\u1ed9ng ngay sau khi m\u00e1y t\u00ednh kh\u1edfi \u0111\u1ed9ng.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\/etc\/init.d\/httpd start<\/p><p>chkconfig httpd on<\/p><\/blockquote>\n\n\n\n<p>8. Trong b\u01b0\u1edbc cu\u1ed1i c\u00f9ng, ch\u00fang ta ph\u1ea3i tr\u1ecf b\u1ea3n ghi DNS \u2018A t\u1edbi \u0111\u1ecba ch\u1ec9 IP c\u1ee7a m\u00e1y ch\u1ee7 c\u1ee7a b\u1ea1n. Mi\u1ec1n t\u1edbi \u0111\u1ecba ch\u1ec9 IP c\u1ee7a m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o r\u1eb1ng m\u1ed9t y\u00eau c\u1ea7u s\u1ebd \u0111\u01b0\u1ee3c g\u1eedi \u0111\u1ebfn m\u00e1y ch\u1ee7 c\u1ee7a b\u1ea1n m\u1ed7i khi b\u1ea1n truy c\u1eadp v\u00e0o t\u00ean mi\u1ec1n c\u1ee7a m\u00ecnh. Khi ho\u00e0n t\u1ea5t, b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp mi\u1ec1n c\u1ee7a m\u00ecnh \u0111\u1ec3 xem li\u1ec7u b\u1ea1n c\u00f3 \u0111\u01b0\u1ee3c chuy\u1ec3n h\u01b0\u1edbng \u0111\u1ebfn trang Apache m\u1eb7c \u0111\u1ecbnh hay kh\u00f4ng.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/08\/co-the-luu-tru-trang-web-tren-vps-khong-IDC-Online.jpg\" alt=\"l\u01b0u tr\u1eef trang web tr\u00ean VPS\" class=\"wp-image-6972\" width=\"768\" srcset=\"https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/08\/co-the-luu-tru-trang-web-tren-vps-khong-IDC-Online.jpg 564w, https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/08\/co-the-luu-tru-trang-web-tren-vps-khong-IDC-Online-300x225.jpg 300w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Cau_hinh_MySQL\">C\u1ea5u h\u00ecnh MySQL<\/span><\/h3>\n\n\n\n<ul><li>B\u01b0\u1edbc \u0111\u1ea7u ti\u00ean, kh\u1edfi \u0111\u1ed9ng m\u00e1y ch\u1ee7 MySQL v\u00e0 \u0111\u1eb7t n\u00f3 b\u1eaft \u0111\u1ea7u khi kh\u1edfi \u0111\u1ed9ng.<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>\/etc\/init.d\/mysqld start<\/p><p>chkconfig mysqld on<\/p><\/blockquote>\n\n\n\n<p>\u0110\u1eb7t m\u1eadt kh\u1ea9u cho ng\u01b0\u1eddi d\u00f9ng g\u1ed1c cho MySQL.&nbsp;<\/p>\n\n\n\n<ul><li>S\u1eed d\u1ee5ng c\u00e1c l\u1ec7nh sau:<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>mysql -u root<\/p><p>UPDATE mysql.user SET Password = PASSWORD (&#8216;P @ ssw0rd&#8217;) WHERE User = &#8216;root&#8217;;<\/p><\/blockquote>\n\n\n\n<p>Thay th\u1ebf chu\u1ed7i \u201cP @ssw0rd\u201d b\u1eb1ng m\u1eadt kh\u1ea9u b\u1ea1n mu\u1ed1n \u0111\u1eb7t.<\/p>\n\n\n\n<ul><li>Ti\u1ebfp theo, t\u1ea1o c\u01a1 s\u1edf d\u1eef li\u1ec7u v\u00e0 c\u1ea5p c\u00e1c \u0111\u1eb7c quy\u1ec1n c\u1ea7n thi\u1ebft cho n\u00f3 cho ng\u01b0\u1eddi d\u00f9ng th\u00edch h\u1ee3p.<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>mysql -u root -p<\/p><p>create database test;<\/p><p>grant all privileges on test.* to john@localhost ;<\/p><p>FLUSH PRIVILEGES;<\/p><\/blockquote>\n\n\n\n<p>R\u00f5 r\u00e0ng, b\u1ea1n n\u00ean thay th\u1ebf test v\u00e0 john @localhost b\u1eb1ng t\u00ean mong mu\u1ed1n cho c\u01a1 s\u1edf d\u1eef li\u1ec7u v\u00e0 t\u00ean ng\u01b0\u1eddi d\u00f9ng c\u1ee7a b\u1ea1n t\u01b0\u01a1ng \u1ee9ng.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"Tai_len_tep_cua_ban_bang_SFTP\">T\u1ea3i l\u00ean t\u1ec7p c\u1ee7a b\u1ea1n b\u1eb1ng SFTP<\/span><\/h3>\n\n\n\n<p>B\u00e2y gi\u1edd MySQL v\u00e0 Apache \u0111\u00e3 \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp, b\u1ea1n c\u1ea7n t\u1ea3i l\u00ean c\u00e1c t\u1ec7p tr\u00ean trang web c\u1ee7a m\u00ecnh. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng b\u1ea5t k\u1ef3 \u1ee9ng d\u1ee5ng kh\u00e1ch SFTP (giao th\u1ee9c truy\u1ec1n t\u1ec7p SSH) n\u00e0o nh\u01b0ng ch\u00fang t\u00f4i khuy\u00ean b\u1ea1n n\u00ean s\u1eed d\u1ee5ng FileZilla . L\u00e0m theo c\u00e1c b\u01b0\u1edbc sau:<\/p>\n\n\n\n<ol><li>K\u1ebft n\u1ed1i v\u1edbi m\u00e1y ch\u1ee7 c\u1ee7a b\u1ea1n b\u1eb1ng t\u00ean ng\u01b0\u1eddi d\u00f9ng b\u1ea1n \u0111\u00e3 t\u1ea1o.<\/li><li>Ch\u1ecdn t\u1ea5t c\u1ea3 c\u00e1c t\u1ec7p tr\u00ean trang web c\u1ee7a b\u1ea1n v\u00e0 t\u1ea3i ch\u00fang l\u00ean th\u01b0 m\u1ee5c \/home\/public_html.<\/li><\/ol>\n\n\n\n<p>B\u00e2y gi\u1edd khi b\u1ea1n k\u00edch ho\u1ea1t t\u00ean mi\u1ec1n c\u1ee7a m\u00ecnh tr\u00ean tr\u00ecnh duy\u1ec7t, b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c \u0111\u01b0a \u0111\u1ebfn trang ch\u1ee7 c\u1ee7a trang web.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/cloudvps-vps-hinh1.png\" alt=\"l\u01b0u tr\u1eef trang web tr\u00ean VPS\" class=\"wp-image-6785\" width=\"768\" srcset=\"https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/cloudvps-vps-hinh1.png 1200w, https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/cloudvps-vps-hinh1-300x151.png 300w, https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/cloudvps-vps-hinh1-1024x516.png 1024w, https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2021\/07\/cloudvps-vps-hinh1-768x387.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"Ket_luan\">K\u1ebft lu\u1eadn<\/span><\/h2>\n\n\n\n<p>L\u01b0u tr\u1eef VPS l\u00e0 m\u1ed9t c\u00e1ch kh\u00f4ng t\u1ed1n k\u00e9m \u0111\u1ec3 t\u1eadn d\u1ee5ng d\u1ecbch v\u1ee5 l\u01b0u tr\u1eef chuy\u00ean d\u1ee5ng m\u00e0 kh\u00f4ng ph\u1ea3i tr\u1ea3 to\u00e0n b\u1ed9 chi ph\u00ed. Trong h\u01b0\u1edbng d\u1eabn, ch\u00fang t\u00f4i \u0111\u00e3 h\u01b0\u1edbng d\u1eabn b\u1ea1n qua t\u1ea5t c\u1ea3 c\u00e1c b\u01b0\u1edbc c\u1ea7n thi\u1ebft. G\u1eedi trang web \u0111\u1ea7u ti\u00ean c\u1ee7a b\u1ea1n \u0111\u1ebfn d\u1ecbch v\u1ee5 l\u01b0u tr\u1eef VPS. Khi trang web c\u1ee7a b\u1ea1n \u0111\u00e3 s\u1eb5n s\u00e0ng, b\u1ea1n c\u00f3 th\u1ec3 ch\u1ec9nh s\u1eeda n\u00f3 n\u1ebfu c\u1ea7n.<\/p>\n\n\n\n<p>N\u1ebfu b\u1ea1n c\u00f2n th\u1eafc m\u1eafc h\u00e3y li\u00ean h\u1ec7 IDC Online \u0111\u1ec3 \u0111\u01b0\u1ee3c gi\u1ea3i \u0111\u00e1p nh\u00e9.<\/p>\n\n\n\n<p>Xem th\u00eam c\u00e1c b\u00e0i vi\u1ebft v\u1ec1<a href=\"https:\/\/idconline.shop\/category\/vps-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">&nbsp;VPS Server&nbsp;<\/a>t\u1ea1i Blog chuy\u00ean trang chia s\u1ebb ki\u1ebfn th\u1ee9c m\u00e1y ch\u1ee7.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VPS cho ph\u00e9p b\u1ea1n c\u00f3 \u0111\u01b0\u1ee3c c\u00e1c t\u00e0i nguy\u00ean chuy\u00ean d\u1ee5ng \u0111\u1ec3 l\u01b0u tr\u1eef trang web c\u1ee7a m\u00ecnh tr\u00ean shared hosting. VPS l\u00e0 m\u1ed9t c\u00e1ch \u0111\u1ec3 l\u01b0u tr\u1eef trang web c\u1ee7a b\u1ea1n tr\u00ean Internet. N\u00f3i chung n\u00f3 t\u1ed1t h\u01a1n shared hosting v\u00e0 dedicated hosting. N\u00f3 t\u1ed1t h\u01a1n shared hosting v\u1ec1 kh\u1ea3 n\u0103ng ph\u1ee5c h\u1ed3i, t\u00ednh [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6974,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27],"tags":[37,282,308,303,301,302,304,576,307,300,306],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.10 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C\u00f3 th\u1ec3 l\u01b0u tr\u1eef trang web tr\u00ean VPS kh\u00f4ng? - IDC Online<\/title>\n<meta name=\"description\" content=\"L\u01b0u tr\u1eef trang web tr\u00ean VPS t\u1ed1t h\u01a1n h\u01a1n shared hosting v\u1ec1 kh\u1ea3 n\u0103ng ph\u1ee5c h\u1ed3i, t\u00ednh kh\u1ea3 d\u1ee5ng v\u00e0 hi\u1ec7u su\u1ea5t. V\u00e0 n\u00f3 r\u1ebb h\u01a1n nhi\u1ec1u so v\u1edbi...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/\" \/>\n<meta name=\"twitter:label1\" content=\"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi\" \/>\n\t<meta name=\"twitter:data1\" content=\"IDC\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 ph\u00fat\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C\u00f3 th\u1ec3 l\u01b0u tr\u1eef trang web tr\u00ean VPS kh\u00f4ng? - IDC Online","description":"L\u01b0u tr\u1eef trang web tr\u00ean VPS t\u1ed1t h\u01a1n h\u01a1n shared hosting v\u1ec1 kh\u1ea3 n\u0103ng ph\u1ee5c h\u1ed3i, t\u00ednh kh\u1ea3 d\u1ee5ng v\u00e0 hi\u1ec7u su\u1ea5t. V\u00e0 n\u00f3 r\u1ebb h\u01a1n nhi\u1ec1u so v\u1edbi...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/","twitter_misc":{"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi":"IDC","\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc":"7 ph\u00fat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/#article","isPartOf":{"@id":"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/"},"author":{"name":"IDC","@id":"https:\/\/idconline.vn\/blog\/#\/schema\/person\/c047396a55240e79250db1df5f239d39"},"headline":"C\u00f3 th\u1ec3 l\u01b0u tr\u1eef trang web tr\u00ean VPS kh\u00f4ng?","datePublished":"2021-09-08T09:57:52+00:00","dateModified":"2021-09-08T09:57:58+00:00","mainEntityOfPage":{"@id":"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/"},"wordCount":2073,"commentCount":0,"publisher":{"@id":"https:\/\/idconline.vn\/blog\/#organization"},"keywords":["cloud vps","cloud vps ch\u1ea5t l\u01b0\u1ee3ng","cloud vps gi\u00e1 r\u1ebb","cloud vps gi\u00e1 t\u1ed1t","cloud vps hosting","cloud vps uy t\u00edn","d\u1ecbch v\u1ee5 Cloud VPS hosting","l\u01b0u tr\u1eef trang web","thu\u00ea cloud vps ch\u1ea5t l\u01b0\u1ee3ng","thu\u00ea cloud vps hosting","thu\u00ea cloud vps hosting \u1edf \u0111\u00e2u"],"articleSection":["VPS Server"],"inLanguage":"vi","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/","url":"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/","name":"C\u00f3 th\u1ec3 l\u01b0u tr\u1eef trang web tr\u00ean VPS kh\u00f4ng? - IDC Online","isPartOf":{"@id":"https:\/\/idconline.vn\/blog\/#website"},"datePublished":"2021-09-08T09:57:52+00:00","dateModified":"2021-09-08T09:57:58+00:00","description":"L\u01b0u tr\u1eef trang web tr\u00ean VPS t\u1ed1t h\u01a1n h\u01a1n shared hosting v\u1ec1 kh\u1ea3 n\u0103ng ph\u1ee5c h\u1ed3i, t\u00ednh kh\u1ea3 d\u1ee5ng v\u00e0 hi\u1ec7u su\u1ea5t. V\u00e0 n\u00f3 r\u1ebb h\u01a1n nhi\u1ec1u so v\u1edbi...","breadcrumb":{"@id":"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/idconline.vn\/blog\/co-the-luu-tru-trang-web-tren-vps-khong-idc-online\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/idconline.vn\/blog\/"},{"@type":"ListItem","position":2,"name":"C\u00f3 th\u1ec3 l\u01b0u tr\u1eef trang web tr\u00ean VPS kh\u00f4ng?"}]},{"@type":"WebSite","@id":"https:\/\/idconline.vn\/blog\/#website","url":"https:\/\/idconline.vn\/blog\/","name":"IDC Online","description":"D\u1ecbch v\u1ee5 M\u00e1y ch\u1ee7, Cloud, VPS, Web Hosting chuy\u00ean nghi\u1ec7p","publisher":{"@id":"https:\/\/idconline.vn\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/idconline.vn\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"vi"},{"@type":"Organization","@id":"https:\/\/idconline.vn\/blog\/#organization","name":"IDC ONLINE","url":"https:\/\/idconline.vn\/blog\/","logo":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/idconline.vn\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2020\/10\/idc_cloud24-1.jpg","contentUrl":"https:\/\/idconline.vn\/blog\/wp-content\/uploads\/2020\/10\/idc_cloud24-1.jpg","width":1200,"height":899,"caption":"IDC ONLINE"},"image":{"@id":"https:\/\/idconline.vn\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/idconlinevn"]},{"@type":"Person","@id":"https:\/\/idconline.vn\/blog\/#\/schema\/person\/c047396a55240e79250db1df5f239d39","name":"IDC","image":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/idconline.vn\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8c298639f6b84fadcb073b5b92f9187f?s=96&r=r","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8c298639f6b84fadcb073b5b92f9187f?s=96&r=r","caption":"IDC"}}]}},"_links":{"self":[{"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/posts\/6940"}],"collection":[{"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/comments?post=6940"}],"version-history":[{"count":4,"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/posts\/6940\/revisions"}],"predecessor-version":[{"id":7591,"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/posts\/6940\/revisions\/7591"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/media\/6974"}],"wp:attachment":[{"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/media?parent=6940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/categories?post=6940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idconline.vn\/blog\/wp-json\/wp\/v2\/tags?post=6940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}