{"id":5718,"date":"2021-05-17T09:01:00","date_gmt":"2021-05-17T09:01:00","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=5718"},"modified":"2021-07-23T09:39:03","modified_gmt":"2021-07-23T09:39:03","slug":"cach-cai-dat-apache-tren-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04"},"content":{"rendered":"\n<p>Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu l\u00e0 g\u00ec?<\/h2>\n\n\n\n<p>Ubuntu l\u00e0 m\u1ed9t h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux ho\u00e0n ch\u1ec9nh r\u1ea5t ph\u1ed5 bi\u1ebfn, c\u00f3 s\u1eb5n v\u00e0 ho\u00e0n to\u00e0n mi\u1ec5n ph\u00ed, v\u1edbi s\u1ef1 h\u1ed7 tr\u1ee3 c\u1ee7a c\u1ea3 c\u1ed9ng \u0111\u1ed3ng c\u00f9ng chuy\u00ean gia. H\u1ec7 th\u1ed1ng \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n b\u1edfi m\u1ed9t c\u00f4ng ty c\u00f3 t\u00ean l\u00e0 Canonical Ltd, n\u00f3 \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf cho m\u00e1y t\u00ednh, \u0111i\u1ec7n tho\u1ea1i th\u00f4ng minh v\u00e0 m\u00e1y ch\u1ee7 m\u1ea1ng.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Apache l\u00e0 g\u00ec?<\/h2>\n\n\n\n<p>Apache l\u00e0 m\u00e1y ch\u1ee7 web \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng ph\u1ed5 bi\u1ebfn nh\u1ea5t tr\u00ean h\u1ec7 th\u1ed1ng Linux, m\u00e1y ch\u1ee7 web \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 ph\u1ee5c v\u1ee5 c\u00e1c trang web do ng\u01b0\u1eddi d\u00f9ng y\u00eau c\u1ea7u.&nbsp;Ng\u01b0\u1eddi d\u00f9ng th\u01b0\u1eddng y\u00eau c\u1ea7u v\u00e0 xem c\u00e1c trang web b\u1eb1ng c\u00e1c \u1ee9ng d\u1ee5ng tr\u00ecnh duy\u1ec7t nh\u01b0 Firefox, Opera, Chromium ho\u1eb7c Internet Explorer. C\u00f3 th\u1ec3 hi\u1ec3u \u0111\u01a1n gi\u1ea3n r\u1eb1ng g\u00f3i ph\u1ea7n m\u1ec1m n\u00e0y c\u00f3 th\u1ec3 bi\u1ebfn m\u1ed9t m\u00e1y t\u00ednh th\u00e0nh m\u1ed9t m\u00e1y ch\u1ee7 HTTP. Ngh\u0129a l\u00e0, n\u00f3 g\u1eedi c\u00e1c trang web (\u0111\u01b0\u1ee3c l\u01b0u tr\u1eef d\u01b0\u1edbi d\u1ea1ng t\u1ec7p HTML) \u0111\u1ebfn nh\u1eefng ng\u01b0\u1eddi d\u00f9ng tr\u00ean internet y\u00eau c\u1ea7u ch\u00fang.&nbsp;Apache l\u00e0 ph\u1ea7n m\u1ec1m m\u00e3 ngu\u1ed3n m\u1edf, n\u00f3 c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng v\u00e0 s\u1eeda \u0111\u1ed5i m\u1ed9t c\u00e1ch t\u1ef1 do.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0110i\u1ec1u ki\u1ec7n c\u1ea7n c\u00f3<\/h2>\n\n\n\n<p>Tr\u01b0\u1edbc khi b\u1eaft \u0111\u1ea7u c\u00e0i \u0111\u1eb7t, ch\u00fang ta c\u1ea7n c\u00f3 m\u1ed9t user v\u1edbi c\u00e1c&nbsp;\u0111\u1eb7c quy\u1ec1n&nbsp;sudo \u0111\u01b0\u1ee3c&nbsp;c\u1ea5u h\u00ecnh tr\u00ean m\u00e1y.&nbsp;H\u01a1n n\u1eefa, ch\u00fang ta ph\u1ea3i&nbsp;k\u00edch ho\u1ea1t t\u01b0\u1eddng l\u1eeda&nbsp;\u0111\u1ec3 ch\u1eb7n c\u00e1c c\u1ed5ng kh\u00f4ng c\u1ea7n thi\u1ebft.&nbsp;Khi \u0111\u00e3 c\u00f3 t\u1ea5t c\u1ea3 nh\u1eefng \u0111i\u1ec1u n\u00e0y, ch\u00fang ta s\u1ebd c\u00f3 th\u1ec3 \u0111\u0103ng nh\u1eadp v\u1edbi t\u01b0 c\u00e1ch l\u00e0 user non-root \u0111\u1ec3 b\u1eaft \u0111\u1ea7u.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">C\u00e1c b\u01b0\u1edbc \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">C\u00e0i \u0111\u1eb7t Apache<\/h3>\n\n\n\n<p>Apache c\u00f3 s\u1eb5n trong kho ph\u1ea7n m\u1ec1m m\u1eb7c \u0111\u1ecbnh c\u1ee7a Ubuntu.&nbsp;V\u00ec v\u1eady, ch\u00fang ta s\u1ebd b\u1eaft \u0111\u1ea7u b\u1eb1ng c\u00e1ch c\u1eadp nh\u1eadt ch\u1ec9 m\u1ee5c g\u00f3i c\u1ee5c b\u1ed9 cho nh\u1eefng thay \u0111\u1ed5i m\u1edbi nh\u1ea5t b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt update\n<\/pre><\/div>\n\n\n<p>Sau \u0111\u00f3, c\u00e0i \u0111\u1eb7t&nbsp;g\u00f3i&nbsp;apache2 b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install apache2\n<\/pre><\/div>\n\n\n<p>Sau khi c\u00e0i \u0111\u1eb7t xong, b\u1ea1n c\u00f3 th\u1ec3 ki\u1ec3m tra phi\u00ean b\u1ea3n Apache \u0111\u00e3 c\u00e0i \u0111\u1eb7t b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apache2ctl -v\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Thi\u1ebft l\u1eadp t\u01b0\u1eddng l\u1eeda<\/h3>\n\n\n\n<p>N\u1ebfu m\u00e1y ch\u1ee7 c\u1ee7a b\u1ea1n \u0111ang s\u1eed d\u1ee5ng t\u01b0\u1eddng l\u1eeda, vui l\u00f2ng th\u1ef1c hi\u1ec7n c\u00e1c b\u01b0\u1edbc sau \u0111\u1ec3 cho ph\u00e9p truy c\u1eadp b\u00ean ngo\u00e0i v\u00e0o m\u00e1y ch\u1ee7 web.<\/p>\n\n\n\n<p>Li\u1ec7t k\u00ea \u1ee9ng d\u1ee5ng theo&nbsp;ufw&nbsp;b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo ufw app list\n<\/pre><\/div>\n\n\n<p>B\u1ea1n s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c danh s\u00e1ch c\u00e1c \u1ee9ng d\u1ee5ng nh\u01b0 sau:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nAvailable applications:\n  Apache\n  Apache Full\n  Apache Secure\n  OpenSSH\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"157\" data-attachment-id=\"6651\" data-permalink=\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/chay-lenh-list-app-ubuntu-apache\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-list-app-ubuntu-apache.png?fit=478%2C157&amp;ssl=1\" data-orig-size=\"478,157\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"chay-lenh-list-app-ubuntu-apache\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-list-app-ubuntu-apache.png?fit=300%2C99&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-list-app-ubuntu-apache.png?fit=478%2C157&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-list-app-ubuntu-apache.png?resize=478%2C157&#038;ssl=1\" alt=\"ch\u1ea1y l\u1ec7nh li\u1ec7t k\u00ea \u1ee9ng d\u1ee5ng theo ufw - c\u00e0i \u0111\u1eb7t apache tr\u00ean ubuntu 20.04\" class=\"wp-image-6651\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-list-app-ubuntu-apache.png?w=478&amp;ssl=1 478w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-list-app-ubuntu-apache.png?resize=300%2C99&amp;ssl=1 300w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Apache<\/strong>: C\u1ea5u&nbsp;h\u00ecnh n\u00e0y ch\u1ec9 m\u1edf c\u1ed5ng 80 (l\u01b0u l\u01b0\u1ee3ng web b\u00ecnh th\u01b0\u1eddng, kh\u00f4ng \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a).<\/li><li><strong>Apache Full:<\/strong>&nbsp;C\u1ea5u h\u00ecnh n\u00e0y m\u1edf c\u1ea3 c\u1ed5ng 80 (l\u01b0u l\u01b0\u1ee3ng web b\u00ecnh th\u01b0\u1eddng, kh\u00f4ng \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a) v\u00e0 c\u1ed5ng 443 (l\u01b0u l\u01b0\u1ee3ng \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a TLS\/SSL).<\/li><li><strong>Apache Secure:<\/strong>&nbsp;C\u1ea5u h\u00ecnh n\u00e0y ch\u1ec9 m\u1edf c\u1ed5ng 443 (l\u01b0u l\u01b0\u1ee3ng \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a TLS \/ SSL).<\/li><\/ul>\n\n\n\n<p>Th\u00f4ng th\u01b0\u1eddng, \u201cApache Full\u201d s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 m\u1edf c\u00e1c c\u1ed5ng 80 v\u00e0 443. Ch\u1ea1y l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo ufw allow 'Apache Full'\n<\/pre><\/div>\n\n\n<p>Ki\u1ec3m tra k\u1ebft qu\u1ea3 b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo ufw status\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Ki\u1ec3m tra m\u00e1y ch\u1ee7 web Apache<\/h3>\n\n\n\n<p>Sau khi c\u00e0i \u0111\u1eb7t apache, Ubuntu 20.04 s\u1ebd t\u1ef1 kh\u1edfi \u0111\u1ed9ng m\u00e1y ch\u1ee7 web Apache.&nbsp;Ki\u1ec3m tra tr\u1ea1ng th\u00e1i c\u1ee7a Apache nh\u01b0 sau:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl status apache2\n<\/pre><\/div>\n\n\n<p>Truy c\u1eadp tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n b\u1eb1ng li\u00ean k\u1ebft:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\nhttp:\/\/ip-server-cua-ban\n<\/pre><\/div>\n\n\n<p>B\u1ea1n s\u1ebd th\u1ea5y trang m\u00e1y ch\u1ee7 web Ubuntu 20.04 Apache m\u1eb7c \u0111\u1ecbnh nh\u01b0 sau.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"1024\" data-attachment-id=\"6654\" data-permalink=\"https:\/\/www.magetop.com\/blog\/install-apache-on-ubuntu-20-04\/default-apache-web-server-page\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Default-Apache-Web-Server-Page.jpg?fit=1024%2C1421&amp;ssl=1\" data-orig-size=\"1024,1421\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Default-Apache-Web-Server-Page\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Default-Apache-Web-Server-Page.jpg?fit=216%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Default-Apache-Web-Server-Page.jpg?fit=738%2C1024&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Default-Apache-Web-Server-Page.jpg?resize=738%2C1024&#038;ssl=1\" alt=\"\" class=\"wp-image-6654\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Default-Apache-Web-Server-Page.jpg?resize=738%2C1024&amp;ssl=1 738w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Default-Apache-Web-Server-Page.jpg?resize=216%2C300&amp;ssl=1 216w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Default-Apache-Web-Server-Page.jpg?resize=768%2C1066&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Default-Apache-Web-Server-Page.jpg?w=1024&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Qu\u1ea3n l\u00fd Apache<\/h3>\n\n\n\n<p>\u0110\u1ec3 d\u1eebng m\u00e1y ch\u1ee7 web, d\u00f9ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl stop apache2\n<\/pre><\/div>\n\n\n<p>\u0110\u1ec3 kh\u1edfi \u0111\u1ed9ng Apache:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl start apache2\n<\/pre><\/div>\n\n\n<p>\u0110\u1ec3 kh\u1edfi \u0111\u1ed9ng l\u1ea1i m\u00e1y ch\u1ee7 web:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl restart apache2\n<\/pre><\/div>\n\n\n<p>N\u1ebfu b\u1ea1n ch\u1ec9 \u0111\u01a1n gi\u1ea3n l\u00e0 th\u1ef1c hi\u1ec7n c\u00e1c thay \u0111\u1ed5i c\u1ea5u h\u00ecnh, Apache th\u01b0\u1eddng c\u00f3 th\u1ec3 t\u1ea3i l\u1ea1i m\u00e0 kh\u00f4ng l\u00e0m gi\u1ea3m k\u1ebft n\u1ed1i v\u1edbi l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl reload apache2\n<\/pre><\/div>\n\n\n<p>Theo m\u1eb7c \u0111\u1ecbnh, Apache \u0111\u01b0\u1ee3c c\u1ea5u h\u00ecnh \u0111\u1ec3 t\u1ef1 \u0111\u1ed9ng b\u1eadt khi m\u00e1y ch\u1ee7 kh\u1edfi \u0111\u1ed9ng.&nbsp;V\u00f4 hi\u1ec7u h\u00f3a h\u00e0nh \u0111\u1ed9ng n\u00e0y b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl disable apache2\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Thi\u1ebft l\u1eadp m\u00e1y ch\u1ee7 \u1ea3o cho t\u00ean mi\u1ec1n trang web<\/h3>\n\n\n\n<p>\u0110\u1ea7u ti\u00ean, ch\u00fang ta c\u1ea7n t\u1ea1o m\u1ed9t th\u01b0 m\u1ee5c ch\u1ee9a code.&nbsp;V\u00ed d\u1ee5: c\u00f3 th\u1ec3 t\u1ea1o m\u1ed9t th\u01b0 m\u1ee5c trong \/var\/www\/ten-domain b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mkdir \/var\/www\/ten_domain\n<\/pre><\/div>\n\n\n<p>Sau \u0111\u00f3, b\u1ea1n c\u00f3 th\u1ec3 t\u1ea3i m\u00e3 ngu\u1ed3n l\u00ean th\u01b0 m\u1ee5c n\u00e0y qua FTP ho\u1eb7c SFTP v\u1edbi l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\nsudo nano \/var\/www\/ten_domain\/index.html\n<\/pre><\/div>\n\n\n<p>Th\u00eam code c\u1ee7a b\u1ea1n v\u00e0o t\u1ec7p index.html.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\nsudo nano \/etc\/apache2\/sites-available\/ten_domain.conf\n<\/pre><\/div>\n\n\n<p>V\u00e0 sao ch\u00e9p n\u1ed9i dung b\u00ean d\u01b0\u1edbi v\u00e0o t\u1ec7p ten_domain.conf:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n&lt;VirtualHost *:80&gt;\n    ServerAdmin webmaster@localhost\n    ServerName your_domain\n    ServerAlias www.your_domain\n    DocumentRoot \/var\/www\/your_domain\n    ErrorLog ${APACHE_LOG_DIR}\/error.log\n    CustomLog ${APACHE_LOG_DIR}\/access.log combined\n&lt;\/VirtualHost&gt;\n<\/pre><\/div>\n\n\n<p>Sau \u0111\u00f3 th\u1ef1c hi\u1ec7n l\u1ec7nh d\u01b0\u1edbi \u0111\u00e2y \u0111\u1ec3 k\u00edch ho\u1ea1t m\u00e1y ch\u1ee7 \u1ea3o v\u1eeba \u0111\u01b0\u1ee3c c\u1ea5u h\u00ecnh.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\nsudo a2ensite your_domain.conf\n<\/pre><\/div>\n\n\n<p>Ki\u1ec3m tra l\u1ed7i c\u1ea5u h\u00ecnh b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apache2ctl configtest\n<\/pre><\/div>\n\n\n<p>N\u1ebfu c\u1ea5u h\u00ecnh th\u00e0nh c\u00f4ng, b\u1ea1n s\u1ebd th\u1ea5y m\u1ed9t d\u00f2ng hi\u1ec7n ra nh\u01b0 sau:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSyntax OK\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"132\" data-attachment-id=\"6659\" data-permalink=\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/chay-lenh-test-config-apache\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-test-config-apache.png?fit=844%2C139&amp;ssl=1\" data-orig-size=\"844,139\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"chay-lenh-test-config-apache\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-test-config-apache.png?fit=300%2C49&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-test-config-apache.png?fit=800%2C132&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-test-config-apache.png?resize=800%2C132&#038;ssl=1\" alt=\"Ki\u1ec3m tra l\u1ed7i c\u1ea5u h\u00ecnh - c\u00e0i \u0111\u1eb7t apache tr\u00ean ubuntu 20.04\" class=\"wp-image-6659\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-test-config-apache.png?w=844&amp;ssl=1 844w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-test-config-apache.png?resize=300%2C49&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/chay-lenh-test-config-apache.png?resize=768%2C126&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Cu\u1ed1i c\u00f9ng, h\u00e3y kh\u1edfi \u0111\u1ed9ng l\u1ea1i apache \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\u00e1c thay \u0111\u1ed5i b\u1eb1ng l\u1ec7nh:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\nsudo systemctl restart apache2\n<\/pre><\/div>\n\n\n<p>B\u00e2y gi\u1edd b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp trang web b\u1eb1ng t\u00ean mi\u1ec1n v\u1edbi \u0111\u01b0\u1eddng d\u1eabn http:\/\/ten-domain.<\/p>\n\n\n\n<p>Nh\u01b0 v\u1eady l\u00e0 m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn xong c\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04.<\/p>\n\n\n\n<p>C\u1ea3m \u01a1n b\u1ea1n \u0111\u00e3 \u0111\u1ecdc b\u00e0i vi\u1ebft.<\/p>\n\n\n\n<p>Xem c\u00e1c b\u00e0i&nbsp;<a href=\"http:\/\/magetop.com\/blog\/vn\/\" target=\"_blank\" rel=\"noreferrer noopener\">H\u01b0\u1edbng d\u1eabn Magento 2<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04.<\/p>\n","protected":false},"author":108,"featured_media":6662,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[226],"tags":[1554,1553,1555],"class_list":["post-5718","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vn","tag-cach-cai-dat-apache-tren-ubuntu-20-04","tag-cai-dat-apache-tren-ubuntu-20-04","tag-huong-dan-cai-dat-apache-tren-ubuntu-20-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04 - Magetop Blog<\/title>\n<meta name=\"description\" content=\"Ubuntu l\u00e0 m\u1ed9t h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux ho\u00e0n ch\u1ec9nh r\u1ea5t ph\u1ed5 bi\u1ebfn. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04 - Magetop Blog\" \/>\n<meta property=\"og:description\" content=\"Ubuntu l\u00e0 m\u1ed9t h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux ho\u00e0n ch\u1ec9nh r\u1ea5t ph\u1ed5 bi\u1ebfn. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-17T09:01:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-23T09:39:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"359\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Callula Huy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Callula Huy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/\"},\"author\":{\"name\":\"Callula Huy\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\"},\"headline\":\"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04\",\"datePublished\":\"2021-05-17T09:01:00+00:00\",\"dateModified\":\"2021-07-23T09:39:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/\"},\"wordCount\":1178,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1\",\"keywords\":[\"C\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04\",\"C\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04\",\"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04\"],\"articleSection\":[\"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/\",\"name\":\"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04 - Magetop Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1\",\"datePublished\":\"2021-05-17T09:01:00+00:00\",\"dateModified\":\"2021-07-23T09:39:03+00:00\",\"description\":\"Ubuntu l\u00e0 m\u1ed9t h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux ho\u00e0n ch\u1ec9nh r\u1ea5t ph\u1ed5 bi\u1ebfn. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1\",\"width\":750,\"height\":359,\"caption\":\"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\",\"name\":\"Callula Huy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"caption\":\"Callula Huy\"},\"description\":\"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.\",\"sameAs\":[\"http:\/\/magetop.com\"],\"url\":\"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04 - Magetop Blog","description":"Ubuntu l\u00e0 m\u1ed9t h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux ho\u00e0n ch\u1ec9nh r\u1ea5t ph\u1ed5 bi\u1ebfn. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04.","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:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04 - Magetop Blog","og_description":"Ubuntu l\u00e0 m\u1ed9t h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux ho\u00e0n ch\u1ec9nh r\u1ea5t ph\u1ed5 bi\u1ebfn. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04.","og_url":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2021-05-17T09:01:00+00:00","article_modified_time":"2021-07-23T09:39:03+00:00","og_image":[{"width":750,"height":359,"url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1","type":"image\/png"}],"author":"Callula Huy","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Callula Huy","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/"},"author":{"name":"Callula Huy","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9"},"headline":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04","datePublished":"2021-05-17T09:01:00+00:00","dateModified":"2021-07-23T09:39:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/"},"wordCount":1178,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1","keywords":["C\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04","C\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04","H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04"],"articleSection":["Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/","url":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/","name":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04 - Magetop Blog","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1","datePublished":"2021-05-17T09:01:00+00:00","dateModified":"2021-07-23T09:39:03+00:00","description":"Ubuntu l\u00e0 m\u1ed9t h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux ho\u00e0n ch\u1ec9nh r\u1ea5t ph\u1ed5 bi\u1ebfn. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04.","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1","width":750,"height":359,"caption":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/cach-cai-dat-apache-tren-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Apache tr\u00ean Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9","name":"Callula Huy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","caption":"Callula Huy"},"description":"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.","sameAs":["http:\/\/magetop.com"],"url":"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Apache-tren-Ubuntu-20.04.png?fit=750%2C359&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-1ue","jetpack-related-posts":[{"id":5686,"url":"https:\/\/www.magetop.com\/blog\/cai-dat-lets-encrypt-ssl-trong-ubuntu-20-04\/","url_meta":{"origin":5718,"position":0},"title":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Let\u2019s Encrypt SSL trong Ubuntu 20.04","author":"Callula Huy","date":"June 7, 2021","format":false,"excerpt":"Trong b\u00e0i \u0111\u0103ng n\u00e0y, m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n\u00a0c\u00e1ch c\u00e0i \u0111\u1eb7t Let\u2019s Encrypt SSL trong Ubuntu 20.04.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Let\u2019s Encrypt SSL trong Ubuntu 20.04","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-cai-dat-Lets-Encrypt-SSL-trong-Ubuntu-20.04.png?fit=726%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-cai-dat-Lets-Encrypt-SSL-trong-Ubuntu-20.04.png?fit=726%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-cai-dat-Lets-Encrypt-SSL-trong-Ubuntu-20.04.png?fit=726%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-cai-dat-Lets-Encrypt-SSL-trong-Ubuntu-20.04.png?fit=726%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5739,"url":"https:\/\/www.magetop.com\/blog\/cai-dat-va-su-dung-composer-tren-ubuntu\/","url_meta":{"origin":5718,"position":1},"title":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t v\u00e0 s\u1eed d\u1ee5ng Composer tr\u00ean Ubuntu 20.04","author":"Callula Huy","date":"June 1, 2021","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t v\u00e0 s\u1eed d\u1ee5ng Composer tr\u00ean Ubuntu 20.04.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t v\u00e0 s\u1eed d\u1ee5ng Composer tr\u00ean Ubuntu 20.04","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-cai-dat-va-su-dung-Composer-tren-Ubuntu-20.04.png?fit=667%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-cai-dat-va-su-dung-Composer-tren-Ubuntu-20.04.png?fit=667%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-cai-dat-va-su-dung-Composer-tren-Ubuntu-20.04.png?fit=667%2C445&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":8503,"url":"https:\/\/www.magetop.com\/blog\/so-sanh-apache-va-nginx\/","url_meta":{"origin":5718,"position":2},"title":"So s\u00e1nh Apache v\u00e0 Nginx: \u01afu nh\u01b0\u1ee3c \u0111i\u1ec3m, n\u00ean ch\u1ecdn Web Server n\u00e0o?","author":"Callula Huy","date":"June 19, 2023","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang ta s\u1ebd so s\u00e1nh Apache v\u00e0 Nginx, \u0111\u00e1nh gi\u00e1 c\u00e1c \u01b0u nh\u01b0\u1ee3c \u0111i\u1ec3m c\u1ee7a t\u1eebng m\u00e1y ch\u1ee7 web v\u00e0 xem m\u00e1y ch\u1ee7 web n\u00e0o t\u1ed1t h\u01a1n cho nhu c\u1ea7u s\u1eed d\u1ee5ng c\u1ee7a b\u1ea1n.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"So s\u00e1nh Apache v\u00e0 Nginx","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/06\/So-sanh-Apache-va-Nginx.png?fit=1100%2C619&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/06\/So-sanh-Apache-va-Nginx.png?fit=1100%2C619&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/06\/So-sanh-Apache-va-Nginx.png?fit=1100%2C619&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/06\/So-sanh-Apache-va-Nginx.png?fit=1100%2C619&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/06\/So-sanh-Apache-va-Nginx.png?fit=1100%2C619&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":5492,"url":"https:\/\/www.magetop.com\/blog\/cai-dat-magento-2-4-2-tren-ubuntu\/","url_meta":{"origin":5718,"position":3},"title":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Magento 2.4.2 tr\u00ean Ubuntu","author":"Callula Huy","date":"May 19, 2021","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch c\u00e0i \u0111\u1eb7t Magento 2.4.2 tr\u00ean Ubuntu.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Magento 2.4.2 tr\u00ean Ubuntu","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Magento-2.4.2-tren-Ubuntu.png?fit=750%2C422&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Magento-2.4.2-tren-Ubuntu.png?fit=750%2C422&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Magento-2.4.2-tren-Ubuntu.png?fit=750%2C422&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Huong-dan-cai-dat-Magento-2.4.2-tren-Ubuntu.png?fit=750%2C422&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1174,"url":"https:\/\/www.magetop.com\/blog\/huong-dan-cai-magento-2-3-x\/","url_meta":{"origin":5718,"position":4},"title":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Magento 2.3.x tr\u00ean localhost","author":"Callula Huy","date":"January 15, 2020","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch c\u00e0i \u0111\u1eb7t magento 2.3.2 tr\u00ean localhost v\u00e0 c\u00e1ch fix l\u1ed7i s\u1ea3y ra trong qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t magento 2.3.x chi ti\u1ebft","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/01\/huong-dan-cai-dat-magento-chi-tiet.png?fit=750%2C524&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/01\/huong-dan-cai-dat-magento-chi-tiet.png?fit=750%2C524&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/01\/huong-dan-cai-dat-magento-chi-tiet.png?fit=750%2C524&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/01\/huong-dan-cai-dat-magento-chi-tiet.png?fit=750%2C524&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1396,"url":"https:\/\/www.magetop.com\/blog\/huong-dan-cai-ssl-magento-2\/","url_meta":{"origin":5718,"position":5},"title":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t ch\u1ee9ng ch\u1ec9 SSL tr\u00ean Magento 2","author":"Callula Huy","date":"February 8, 2020","format":false,"excerpt":"SSL l\u00e0 m\u1ed9t ch\u1ee9ng ch\u1ec9 r\u1ea5t quan tr\u1ecdng cho trang web, v\u1eady SSL l\u00e0 g\u00ec? T\u1ea1i sao ch\u00fang ta c\u1ea7n SSL? C\u00e1ch c\u00e0i \u0111\u1eb7t SSL cho Magento 2 nh\u01b0 th\u1ebf n\u00e0o? Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd c\u0169ng c\u00e1c b\u1ea1n t\u00ecm hi\u1ec3u v\u1ec1 SSL.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t ssl cho magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/02\/huong-dan-cai-ssl-magento.png?fit=800%2C313&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/02\/huong-dan-cai-ssl-magento.png?fit=800%2C313&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/02\/huong-dan-cai-ssl-magento.png?fit=800%2C313&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/02\/huong-dan-cai-ssl-magento.png?fit=800%2C313&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/108"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=5718"}],"version-history":[{"count":7,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5718\/revisions"}],"predecessor-version":[{"id":6661,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5718\/revisions\/6661"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/6662"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=5718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=5718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=5718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}