{"id":34904,"date":"2024-08-21T14:44:09","date_gmt":"2024-08-21T07:44:09","guid":{"rendered":"http:\/\/jupitek.maudemo.vip\/index.php\/2024\/08\/21\/installing-and-configuring-owncloud-on-ubuntu-20-04\/"},"modified":"2024-08-21T14:44:09","modified_gmt":"2024-08-21T07:44:09","slug":"installing-and-configuring-owncloud-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/jupitek.maudemo.vip\/index.php\/2024\/08\/21\/installing-and-configuring-owncloud-on-ubuntu-20-04\/","title":{"rendered":"C\u00e0i \u0111\u1eb7t v\u00e0 c\u1ea5u h\u00ecnh ownCloud tr\u00ean Ubuntu 20.04"},"content":{"rendered":"<h2 id=\"what-is-owncloud\">OwnCloud l\u00e0 g\u00ec?<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-ubuntu-20-04\/#what-is-owncloud\"><\/a><\/h2>\n<p>V\u1edbi&nbsp;<a href=\"https:\/\/owncloud.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">ownCloud,<\/a>&nbsp;b\u1ea1n c\u00f3 th\u1ec3 l\u01b0u tr\u1eef \u0111\u00e1m m\u00e2y ri\u00eang \u0111\u1ec3 \u0111\u1ed3ng b\u1ed9 h\u00f3a d\u1eef li\u1ec7u, l\u01b0u tr\u1eef t\u1ec7p v\u00e0 chia s\u1ebb t\u1ec7p. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ownCloud nh\u01b0 m\u1ed9t gi\u1ea3i ph\u00e1p thay th\u1ebf cho c\u00e1c d\u1ecbch v\u1ee5 th\u01b0\u01a1ng m\u1ea1i nh\u01b0 DropBox ho\u1eb7c Box. Ph\u1ea7n m\u1ec1m n\u00e0y r\u1ea5t tuy\u1ec7t v\u1eddi cho vi\u1ec7c c\u1ed9ng t\u00e1c an to\u00e0n gi\u1eefa c\u00e1c d\u1ef1 \u00e1n v\u00e0 nh\u00f3m c\u1ee7a b\u1ea1n.<\/p>\n<p>ownCloud c\u00f3 nhi\u1ec1u t\u00ednh n\u0103ng h\u1ea5p d\u1eabn:<\/p>\n<ul>\n<li><strong>Qu\u1ea3n l\u00fd phi\u00ean b\u1ea3n<\/strong>&nbsp;: L\u1ecbch s\u1eed t\u1ec7p cho ph\u00e9p b\u1ea1n quay l\u1ea1i phi\u00ean b\u1ea3n tr\u01b0\u1edbc \u0111\u00f3.<\/li>\n<li><strong>M\u00e3 h\u00f3a<\/strong>&nbsp;: ownCloud b\u1ea3o v\u1ec7 d\u1eef li\u1ec7u ng\u01b0\u1eddi d\u00f9ng trong qu\u00e1 tr\u00ecnh truy\u1ec1n t\u1ea3i gi\u1eefa m\u00e1y kh\u00e1ch v\u00e0 m\u00e1y ch\u1ee7.<\/li>\n<li><strong>K\u00e9o v\u00e0 th\u1ea3 t\u1ea3i l\u00ean<\/strong>&nbsp;: K\u00e9o t\u1ec7p t\u1eeb tr\u00ecnh qu\u1ea3n l\u00fd t\u1ec7p tr\u00ean m\u00e1y t\u00ednh \u0111\u1ec3 b\u00e0n v\u00e0o phi\u00ean b\u1ea3n ownCloud c\u1ee7a b\u1ea1n.<\/li>\n<li><strong>Ch\u1ee7 \u0111\u1ec1<\/strong>&nbsp;: Thay \u0111\u1ed5i giao di\u1ec7n c\u1ee7a phi\u00ean b\u1ea3n ownCloud c\u1ee7a b\u1ea1n.<\/li>\n<li><strong>Xem c\u00e1c t\u1ec7p ODF<\/strong>&nbsp;: B\u1ea1n c\u00f3 th\u1ec3 xem c\u00e1c t\u1ec7p \u0110\u1ecbnh d\u1ea1ng t\u00e0i li\u1ec7u m\u1edf nh\u01b0&nbsp;<code>.odt<\/code>t\u00e0i li\u1ec7u v\u00e0&nbsp;<code>.ods<\/code>b\u1ea3ng t\u00ednh.<\/li>\n<li><strong>M\u1edf r\u1ed9ng th\u00f4ng qua c\u00e1c \u1ee9ng d\u1ee5ng c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t<\/strong>&nbsp;: T\u1eeb&nbsp;<a href=\"https:\/\/marketplace.owncloud.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">ownCloud Marketplace<\/a>&nbsp;, b\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t m\u1ed9t s\u1ed1 \u1ee9ng d\u1ee5ng ch\u00ednh th\u1ee9c v\u00e0 c\u1ee7a b\u00ean th\u1ee9 ba.<\/li>\n<li><strong>\u1ee8ng d\u1ee5ng di \u0111\u1ed9ng d\u00e0nh cho&nbsp;<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.owncloud.android\" target=\"_blank\" rel=\"noreferrer noopener\">Android<\/a>&nbsp;v\u00e0&nbsp;<a href=\"https:\/\/apps.apple.com\/us\/app\/owncloud-file-sync-and-share\/id1359583808\" target=\"_blank\" rel=\"noreferrer noopener\">iOS<\/a><\/strong>&nbsp;: \u1ee8ng d\u1ee5ng di \u0111\u1ed9ng cho ph\u00e9p b\u1ea1n t\u01b0\u01a1ng t\u00e1c v\u1edbi m\u00e1y ch\u1ee7 ownCloud c\u1ee7a m\u00ecnh, ch\u1eb3ng h\u1ea1n nh\u01b0 \u0111\u1ec3 \u0111\u1ed3ng b\u1ed9 h\u00f3a, t\u1ea3i l\u00ean, t\u1ea3i xu\u1ed1ng v\u00e0 xem t\u1ec7p.<\/li>\n<\/ul>\n<p>T\u1ea1i sao b\u1ea1n mu\u1ed1n l\u01b0u tr\u1eef \u0111\u00e1m m\u00e2y c\u1ee7a ri\u00eang m\u00ecnh? M\u1ed9t s\u1ed1 l\u00fd do ph\u1ed5 bi\u1ebfn l\u00e0:<\/p>\n<ul>\n<li>\u0110\u1ec3 l\u01b0u d\u1eef li\u1ec7u nh\u1ea1y c\u1ea3m, nh\u01b0ng kh\u00f4ng ph\u1ea3i tr\u00ean m\u1ed9t t\u00f9y ch\u1ecdn th\u01b0\u01a1ng m\u1ea1i c\u1ee7a b\u00ean th\u1ee9 ba.<\/li>\n<li>B\u1ea1n l\u00e0m vi\u1ec7c t\u1ea1i nh\u00e0 v\u00e0 c\u1ea7n m\u1ed9t \u0111\u00e1m m\u00e2y ri\u00eang ch\u1ec9 d\u00e0nh cho nh\u1eefng ng\u01b0\u1eddi trong gia \u0111\u00ecnh b\u1ea1n s\u1eed d\u1ee5ng.<\/li>\n<li>B\u1ea1n s\u1edf h\u1eefu m\u1ed9t doanh nghi\u1ec7p nh\u1ecf v\u00e0 mu\u1ed1n gi\u1eef m\u1ecdi th\u1ee9 n\u1ed9i b\u1ed9.<\/li>\n<li>B\u1ea1n c\u1ea7n m\u1ed9t gi\u1ea3i ph\u00e1p l\u01b0u tr\u1eef c\u00f3 th\u1ec3 m\u1edf r\u1ed9ng.<\/li>\n<\/ul>\n<p>H\u01b0\u1edbng d\u1eabn n\u00e0y h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1c b\u01b0\u1edbc \u0111\u1ec3 c\u00e0i \u0111\u1eb7t ownCloud tr\u00ean Ubuntu 20.04, m\u1ed9t trong nh\u1eefng h\u1ec7 \u0111i\u1ec1u h\u00e0nh m\u00e1y ch\u1ee7 th\u00e2n thi\u1ec7n v\u1edbi ng\u01b0\u1eddi d\u00f9ng nh\u1ea5t hi\u1ec7n c\u00f3. Ch\u1ec9 c\u00f3 m\u1ed9t v\u00e0i b\u01b0\u1edbc \u0111\u1ec3 c\u00e0i \u0111\u1eb7t ownCloud tr\u00ean Ubuntu 20.04. B\u1ea1n&nbsp;<a href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-install-a-lamp-stack-on-ubuntu-18-04\/\">c\u00e0i \u0111\u1eb7t ng\u0103n x\u1ebfp LAMP (Linux Apache MySQL\/MariaDB PHP)<\/a>&nbsp;; t\u1ea1o c\u01a1 s\u1edf d\u1eef li\u1ec7u v\u00e0 ng\u01b0\u1eddi d\u00f9ng c\u01a1 s\u1edf d\u1eef li\u1ec7u; c\u1ea5u h\u00ecnh Apache; v\u00e0 thi\u1ebft l\u1eadp ownCloud b\u1eb1ng giao di\u1ec7n ng\u01b0\u1eddi d\u00f9ng \u0111\u1ed3 h\u1ecda c\u1ee7a n\u00f3.<\/p>\n<p class=\"has-background\" style=\"background-color:#74f78c33\">Ghi ch\u00fa: \u0110\u1ec3 t\u1ef1 \u0111\u1ed9ng c\u00e0i \u0111\u1eb7t ownCloud tr\u00ean Compute Instance, h\u00e3y c\u00e2n nh\u1eafc tri\u1ec3n khaio<a href=\"https:\/\/www.linode.com\/docs\/marketplace-docs\/guides\/owncloud\/\">wnCloud Server th\u00f4ng qua Linode Marketplace<\/a>&nbsp;.<\/p>\n<h2 id=\"before-you-begin\">Tr\u01b0\u1edbc khi b\u1ea1n b\u1eaft \u0111\u1ea7u<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-debian-10\/#before-you-begin\"><\/a><\/h2>\n<ol>\n<li>N\u1ebfu b\u1ea1n ch\u01b0a th\u1ef1c hi\u1ec7n, h\u00e3y t\u1ea1o m\u1ed9t t\u00e0i kho\u1ea3n Linode v\u00e0 Compute Instance. Xem h\u01b0\u1edbng d\u1eabn&nbsp;<a href=\"https:\/\/www.linode.com\/docs\/products\/platform\/get-started\/\">B\u1eaft \u0111\u1ea7u v\u1edbi Linode<\/a>&nbsp;v\u00e0&nbsp;<a href=\"https:\/\/www.linode.com\/docs\/products\/compute\/compute-instances\/guides\/create\/\">T\u1ea1o Compute Instance<\/a>&nbsp;c\u1ee7a ch\u00fang t\u00f4i .<\/li>\n<li>L\u00e0m theo h\u01b0\u1edbng d\u1eabn&nbsp;<a href=\"https:\/\/www.linode.com\/docs\/products\/compute\/compute-instances\/guides\/set-up-and-secure\/\">Thi\u1ebft l\u1eadp v\u00e0 B\u1ea3o m\u1eadt Phi\u00ean b\u1ea3n Compute<\/a>&nbsp;c\u1ee7a ch\u00fang t\u00f4i \u0111\u1ec3 c\u1eadp nh\u1eadt h\u1ec7 th\u1ed1ng c\u1ee7a b\u1ea1n. B\u1ea1n c\u0169ng c\u00f3 th\u1ec3 mu\u1ed1n \u0111\u1eb7t m\u00fai gi\u1edd, c\u1ea5u h\u00ecnh t\u00ean m\u00e1y ch\u1ee7, t\u1ea1o t\u00e0i kho\u1ea3n ng\u01b0\u1eddi d\u00f9ng gi\u1edbi h\u1ea1n v\u00e0 t\u0103ng c\u01b0\u1eddng quy\u1ec1n truy c\u1eadp SSH.<\/li>\n<\/ol>\n<p class=\"has-background\" style=\"background-color:#74f78c33\">Ghi ch\u00fa: N\u1ebfu b\u1ea1n c\u00f3 t\u00ean mi\u1ec1n \u0111\u00e3 \u0111\u0103ng k\u00fd m\u00e0 b\u1ea1n mu\u1ed1n tr\u1ecf \u0111\u1ebfn phi\u00ean b\u1ea3n ownCloud c\u1ee7a m\u00ecnh, h\u00e3y s\u1eed d\u1ee5ng Tr\u00ecnh&nbsp;<a href=\"https:\/\/www.linode.com\/docs\/products\/networking\/dns-manager\/\">qu\u1ea3n l\u00fd DNS Linode \u0111\u1ec3 tr\u1ecf t\u00ean mi\u1ec1n<\/a>&nbsp;\u0111\u1ebfn m\u00e1y ch\u1ee7 Linode m\u00e0 b\u1ea1n d\u1ef1 \u0111\u1ecbnh c\u00e0i \u0111\u1eb7t ownCloud. N\u1ebfu b\u1ea1n kh\u00f4ng c\u00f3 t\u00ean mi\u1ec1n \u0111\u00e3 \u0111\u0103ng k\u00fd, h\u00e3y thay example.com b\u1eb1ng \u0111\u1ecba ch\u1ec9 IP c\u1ee7a m\u00e1y ch\u1ee7 Linode khi l\u00e0m theo c\u00e1c b\u01b0\u1edbc trong ph\u1ea7n&nbsp;<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-debian-10\/#create-an-apache-configuration-file\">T\u1ea1o t\u1ec7p c\u1ea5u h\u00ecnh Apache<\/a>&nbsp;.<\/p>\n<h2 id=\"install-owncloud\">C\u00e0i \u0111\u1eb7t ownCloud<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-ubuntu-20-04\/#install-owncloud\"><\/a><\/h2>\n<h3 id=\"install-the-lamp-stack\">C\u00e0i \u0111\u1eb7t LAMP Stack<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-ubuntu-20-04\/#install-the-lamp-stack\"><\/a><\/h3>\n<p>ownCloud y\u00eau c\u1ea7u m\u1ed9t ng\u0103n x\u1ebfp LAMP \u0111\u1ea7y \u0111\u1ee7 (Linux, Apache, MySQL, PHP). Trong ph\u1ea7n n\u00e0y, b\u1ea1n ho\u00e0n th\u00e0nh c\u00e1c b\u01b0\u1edbc \u0111\u1ec3 c\u00e0i \u0111\u1eb7t ng\u0103n x\u1ebfp LAMP tr\u00ean Linode c\u1ee7a m\u00ecnh. M\u1eb7c d\u00f9 b\u1ea1n kh\u00f4ng nh\u1ea5t thi\u1ebft ph\u1ea3i s\u1eed d\u1ee5ng Apache l\u00e0m m\u00e1y ch\u1ee7 web, nh\u01b0ng c\u00e1c nh\u00e0 ph\u00e1t tri\u1ec3n ownCloud v\u1eabn khuy\u00ean d\u00f9ng Apache h\u01a1n c\u00e1c m\u00e1y ch\u1ee7 web nh\u01b0 NGINX v\u00e0 lightHTTP.<\/p>\n<p>1.C\u00e0i \u0111\u1eb7t ng\u0103n x\u1ebfp LAMP b\u1eb1ng m\u1ed9t l\u1ec7nh duy nh\u1ea5t:<\/p>\n<pre class=\"wp-block-code\"><code><code> sudo apt-get install lamp-server^ -y<\/code><\/code><\/pre>\n<p>2.Khi qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t ho\u00e0n t\u1ea5t, h\u00e3y b\u1eadt v\u00e0 kh\u1edfi \u0111\u1ed9ng Apache:<code> <\/code><\/p>\n<pre class=\"wp-block-code\"><code>sudo systemctl start apache2 \n\nsudo systemctl enable apache2<\/code><\/pre>\n<p>3.Kh\u1edfi \u0111\u1ed9ng v\u00e0 k\u00edch ho\u1ea1t c\u01a1 s\u1edf d\u1eef li\u1ec7u MySQL:<\/p>\n<pre class=\"wp-block-code\"><code><code>sudo systemctl start mysql <\/code>\n<code>sudo systemctl enable mysql<\/code><\/code><\/pre>\n<p>4.\u0110\u1eb7t m\u1eadt kh\u1ea9u qu\u1ea3n tr\u1ecb MySQL v\u00e0 b\u1ea3o m\u1eadt c\u00e0i \u0111\u1eb7t:<code> <\/code><\/p>\n<pre class=\"wp-block-code\"><code><code>sudo mysql_secure_installation <\/code><\/code><\/pre>\n<p>B\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c l\u1ef1a ch\u1ecdn thay \u0111\u1ed5i m\u1eadt kh\u1ea9u g\u1ed1c MariaDB, x\u00f3a t\u00e0i kho\u1ea3n ng\u01b0\u1eddi d\u00f9ng \u1ea9n danh, v\u00f4 hi\u1ec7u h\u00f3a \u0111\u0103ng nh\u1eadp g\u1ed1c b\u00ean ngo\u00e0i m\u00e1y ch\u1ee7 c\u1ee5c b\u1ed9 v\u00e0 x\u00f3a c\u01a1 s\u1edf d\u1eef li\u1ec7u th\u1eed nghi\u1ec7m. B\u1ea1n n\u00ean tr\u1ea3 l\u1eddi&nbsp;<code>yes<\/code>c\u00e1c t\u00f9y ch\u1ecdn n\u00e0y. B\u1ea1n c\u00f3 th\u1ec3 \u0111\u1ecdc th\u00eam v\u1ec1 t\u1eadp l\u1ec7nh trong&nbsp;<a href=\"https:\/\/mariadb.com\/kb\/en\/mariadb\/mysql_secure_installation\/\" target=\"_blank\" rel=\"noreferrer noopener\">C\u01a1 s\u1edf ki\u1ebfn \u200b\u200bth\u1ee9c MariaDB<\/a>&nbsp;.<\/p>\n<p>5.C\u00e0i \u0111\u1eb7t PHP v\u00e0 t\u1ea5t c\u1ea3 c\u00e1c g\u00f3i PHP c\u1ea7n thi\u1ebft<code> <\/code><\/p>\n<pre class=\"wp-block-code\"><code>sudo apt-get install php php-opcache php-gd php-curl php-mysqlnd php-intl php-json php-ldap php-mbstring php-mysqlnd php-xml php-zip -y<\/code><\/pre>\n<p>6.Kh\u1edfi \u0111\u1ed9ng l\u1ea1i Apache \u0111\u1ec3 cho ph\u00e9p b\u1ea5t k\u1ef3 thay \u0111\u1ed5i n\u00e0o:<\/p>\n<pre class=\"wp-block-code\"><code><code> sudo systemctl restart apache2<\/code><\/code><\/pre>\n<h3 id=\"create-the-owncloud-database\">T\u1ea1o c\u01a1 s\u1edf d\u1eef li\u1ec7u ownCloud<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-debian-10\/#create-the-owncloud-database\"><\/a><\/h3>\n<p>B\u00e2y gi\u1edd b\u1ea1n \u0111\u00e3 c\u00e0i \u0111\u1eb7t c\u00e1c \u0111i\u1ec1u ki\u1ec7n ti\u00ean quy\u1ebft, \u0111\u00e3 \u0111\u1ebfn l\u00fac t\u1ea1o c\u01a1 s\u1edf d\u1eef li\u1ec7u v\u00e0 ng\u01b0\u1eddi d\u00f9ng ownCloud. C\u00e1c l\u1ec7nh trong ph\u1ea7n n\u00e0y \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh t\u1eeb b\u00ean trong b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n MariaDB.<\/p>\n<p>1.Truy c\u1eadp b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n MariaDB:<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code>sudo mysql -u root -p<\/code><\/pre>\n<p>2.t\u1ea1o c\u01a1 s\u1edf d\u1eef li\u1ec7u \u0111\u00e1m m\u00e2y c\u1ee7a ri\u00eang b\u1ea1n:<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code>CREATE DATABASE ownclouddb;<\/code><\/pre>\n<p>3.T\u1ea1o ng\u01b0\u1eddi d\u00f9ng m\u1edbi v\u1edbi c\u00e1c \u0111\u1eb7c quy\u1ec1n c\u1ea7n thi\u1ebft, bao g\u1ed3m m\u1eadt kh\u1ea9u m\u1ea1nh v\u00e0 duy nh\u1ea5t. H\u00e3y \u0111\u1ea3m b\u1ea3o thay th\u1ebf&nbsp;<code>PASSWORD<\/code>b\u1eb1ng m\u1eadt kh\u1ea9u c\u1ee7a ri\u00eang b\u1ea1n:<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code>GRANT ALL ON ownclouddb.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'PASSWORD';<\/code><\/pre>\n<p>4.X\u00f3a b\u1ecf c\u00e1c \u0111\u1eb7c quy\u1ec1n c\u1ee7a c\u01a1 s\u1edf d\u1eef li\u1ec7u c\u1ee7a b\u1ea1n:<\/p>\n<pre class=\"wp-block-code\"><code>FLUSH PRIVILEGES;<\/code><\/pre>\n<p>5.Cu\u1ed1i c\u00f9ng, tho\u00e1t kh\u1ecfi b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n c\u01a1 s\u1edf d\u1eef li\u1ec7u:<\/p>\n<pre class=\"wp-block-code\"><code>exit<\/code><\/pre>\n<h3 id=\"download-owncloud\">T\u1ea3i ownCloud<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-debian-10\/#download-owncloud\"><\/a><\/h3>\n<p>T\u1ea1i th\u1eddi \u0111i\u1ec3m n\u00e0y, h\u1ec7 th\u1ed1ng \u0111\u00e3 s\u1eb5n s\u00e0ng cho ownCloud. Tr\u01b0\u1edbc khi b\u1ea1n th\u1ef1c s\u1ef1 t\u1ea3i xu\u1ed1ng ph\u1ea7n m\u1ec1m, h\u00e3y ki\u1ec3m tra&nbsp;<a href=\"https:\/\/owncloud.com\/download-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">trang t\u1ea3i xu\u1ed1ng ownCloud<\/a>&nbsp;\u0111\u1ec3 x\u00e1c nh\u1eadn phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t.<\/p>\n<p>1.T\u1ea3i ownCloud. Khi vi\u1ebft h\u01b0\u1edbng d\u1eabn n\u00e0y, phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t l\u00e0 10.5.0. Thay th\u1ebf&nbsp;<code>10.5.0<\/code>b\u1eb1ng phi\u00ean b\u1ea3n b\u1ea1n mu\u1ed1n t\u1ea3i xu\u1ed1ng.<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code><code>wget https:\/\/download.owncloud.org\/community\/owncloud-10.5.0.zip<\/code><\/code><\/pre>\n<p>2.Gi\u1ea3i n\u00e9n t\u1ec7p \u0111\u00e3 t\u1ea3i xu\u1ed1ng:<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code><code>unzip owncloud-10.5.0.zip<\/code><\/code><\/pre>\n<p>Ghi ch\u00fa: N\u1ebfu c\u1ea7n, h\u00e3y c\u00e0i \u0111\u1eb7t&nbsp;<code>unzip<\/code>b\u1eb1ng l\u1ec7nh:<code>sudo apt-get install zip -y<\/code><\/p>\n<p>3.Khi b\u1ea1n gi\u1ea3i n\u00e9n t\u1ec7p, m\u1ed9t th\u01b0 m\u1ee5c m\u1edbi c\u00f3 t\u00ean&nbsp;<code>owncloud<\/code>\u0111\u01b0\u1ee3c t\u1ea1o. Di chuy\u1ec3n th\u01b0 m\u1ee5c m\u1edbi \u0111\u1ebfn t\u00e0i li\u1ec7u Apache&nbsp;<code>root<\/code>. V\u00ed d\u1ee5 n\u00e0y s\u1eed d\u1ee5ng th\u01b0 m\u1ee5c m\u1eb7c \u0111\u1ecbnh cho c\u00e1c t\u1ec7p trang web Apache:<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code>sudo mv owncloud \/var\/www\/html\/<\/code><\/pre>\n<p>4.Thay \u0111\u1ed5i quy\u1ec1n s\u1edf h\u1eefu th\u01b0&nbsp;<code>owncloud<\/code>m\u1ee5c:<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code>sudo chown -R www-data: \/var\/www\/html\/owncloud<\/code><\/pre>\n<h3 id=\"create-an-apache-configuration-file\">T\u1ea1o m\u1ed9t t\u1eadp tin c\u1ea5u h\u00ecnh Apache<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-debian-10\/#create-an-apache-configuration-file\"><\/a><\/h3>\n<p>Apache y\u00eau c\u1ea7u m\u1ed9t&nbsp;<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/vhosts\/examples.html\" target=\"_blank\" rel=\"noreferrer noopener\">t\u1ec7p c\u1ea5u h\u00ecnh m\u00e1y ch\u1ee7 \u1ea3o<\/a>&nbsp;\u0111\u1ec3 \u0111\u01b0a phi\u00ean b\u1ea3n ownCloud c\u1ee7a b\u1ea1n l\u00ean web.<\/p>\n<p>1.T\u1ea1o t\u1ec7p c\u1ea5u h\u00ecnh Apache b\u1eb1ng tr\u00ecnh so\u1ea1n th\u1ea3o v\u0103n b\u1ea3n Nano:<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apache2\/sites-available\/owncloud.conf<\/code><\/pre>\n<p>2.D\u00e1n v\u0103n b\u1ea3n sau v\u00e0o t\u1ec7p m\u1edbi. Thay th\u1ebf ph\u1ea7n \u0111\u1ec1 c\u1eadp \u0111\u1ebfn&nbsp;<code>example.com<\/code>b\u1eb1ng t\u00ean mi\u1ec1n c\u1ee7a b\u1ea1n ho\u1eb7c&nbsp;<a href=\"https:\/\/www.linode.com\/docs\/products\/compute\/compute-instances\/guides\/manage-ip-addresses\/\">\u0110\u1ecba ch\u1ec9 IP c\u1ee7a Linode<\/a>&nbsp;:<\/p>\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost \\*:80&gt;\n     ServerAdmin admin@example.com\n     DocumentRoot \/var\/www\/html\/owncloud\n     ServerName example.com\n    &lt;Directory \/var\/www\/html\/owncloud&gt;\n         Options FollowSymlinks\n         AllowOverride All\n         Require all granted\n     &lt;\/Directory&gt;\n\nErrorLog ${APACHE_LOG_DIR}\/example.com_error.log\n\nCustomLog ${APACHE_LOG_DIR}\/your-domain.com_access.log combined\n\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n<p>3.L\u01b0u v\u00e0 \u0111\u00f3ng t\u1ec7p b\u1eb1ng c\u00e1ch g\u00f5&nbsp;<strong>Ctrl + O<\/strong>&nbsp;r\u1ed3i&nbsp;<strong>Ctrl + X<\/strong>&nbsp;:<\/p>\n<p>4.K\u00edch ho\u1ea1t c\u00e1c m\u00f4-\u0111un&nbsp;<code>rewrite<\/code>,&nbsp;<code>mime<\/code>, v\u00e0&nbsp;<code>unique_id<\/code>Apache:<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code>sudo a2enmod rewrite mime unique_id<\/code><\/pre>\n<p>5.Kh\u1edfi \u0111\u1ed9ng l\u1ea1i m\u00e1y ch\u1ee7 Apache:<code><\/code><\/p>\n<pre class=\"wp-block-code\"><code>sudo systemctl restart apache2<\/code><\/pre>\n<h3 id=\"configure-owncloud\">C\u1ea5u h\u00ecnh ownCloud<a href=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-ubuntu-20-04\/#configure-owncloud\"><\/a><\/h3>\n<p>Ph\u1ea7n n\u00e0y \u0111\u1ec1 c\u1eadp \u0111\u1ebfn ph\u1ea7n c\u00e0i \u0111\u1eb7t d\u1ef1a tr\u00ean n\u1ec1n t\u1ea3ng web.<\/p>\n<ol>\n<li>M\u1edf tr\u00ecnh duy\u1ec7t web v\u00e0 \u0111i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn t\u00ean mi\u1ec1n c\u1ee7a trang web c\u1ee7a b\u1ea1n, n\u1ebfu n\u00f3 \u0111\u00e3 \u0111\u01b0\u1ee3c c\u1ea5u h\u00ecnh \u0111\u1ec3 s\u1eed d\u1ee5ng t\u00ean mi\u1ec1n nh\u01b0,&nbsp;<code>http:\/\/example.com\/owncloud<\/code>. N\u1ebfu b\u1ea1n \u0111\u00e3 c\u1ea5u h\u00ecnh Apache \u0111\u1ec3 tr\u1ecf \u0111\u1ebfn \u0111\u1ecba ch\u1ec9 IP c\u1ee7a m\u00e1y ch\u1ee7, h\u00e3y \u0111i\u1ec1u h\u01b0\u1edbng \u0111\u1ebfn&nbsp;<code>http:\/\/192.0.2.0\/owncloud<\/code>v\u00e0 thay th\u1ebf \u0111\u1ecba ch\u1ec9 IP v\u00ed d\u1ee5 b\u1eb1ng \u0111\u1ecba ch\u1ec9 IP c\u1ee7a ri\u00eang b\u1ea1n. B\u1ea1n s\u1ebd th\u1ea5y tr\u00ecnh c\u00e0i \u0111\u1eb7t d\u1ef1a tr\u00ean web ownCloud.<\/li>\n<li>Nh\u1eadp t\u00ean ng\u01b0\u1eddi d\u00f9ng v\u00e0 m\u1eadt kh\u1ea9u cho ng\u01b0\u1eddi d\u00f9ng qu\u1ea3n tr\u1ecb; nh\u1ea5p v\u00e0o menu&nbsp;<code>Storage &amp; Database<\/code>th\u1ea3 xu\u1ed1ng; sau \u0111\u00f3 nh\u1ea5p v\u00e0o&nbsp;<code>MySQL\/MariaDB<\/code>.<\/li>\n<li>Ph\u1ea7n th\u00f4ng tin c\u01a1 s\u1edf d\u1eef li\u1ec7u hi\u1ec7n \u0111\u00e3 c\u00f3 s\u1eb5n. Nh\u1eadp th\u00f4ng tin sau:\n<ul>\n<li>Ng\u01b0\u1eddi d\u00f9ng c\u01a1 s\u1edf d\u1eef li\u1ec7u:<code>ownclouduser<\/code><\/li>\n<li>M\u1eadt kh\u1ea9u c\u01a1 s\u1edf d\u1eef li\u1ec7u: m\u1eadt kh\u1ea9u b\u1ea1n \u0111\u1eb7t cho ng\u01b0\u1eddi d\u00f9ng c\u01a1 s\u1edf d\u1eef li\u1ec7u ownCloud<\/li>\n<li>C\u01a1 s\u1edf d\u1eef li\u1ec7u:<code>ownclouddb<\/code><\/li>\n<li>Localhost: gi\u1eef nguy\u00ean m\u1eb7c \u0111\u1ecbnh<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-ubuntu-20-04\/owncloud_ubuntu_a.jpg\" alt=\"Ph\u1ea7n chi ti\u1ebft c\u01a1 s\u1edf d\u1eef li\u1ec7u cho c\u00e0i \u0111\u1eb7t ownCloud\" width=\"348\" height=\"1013\"><\/li>\n<li>Nh\u1ea5p v\u00e0o&nbsp;<strong>Ho\u00e0n t\u1ea5t thi\u1ebft l\u1eadp<\/strong>&nbsp;. Khi qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t ho\u00e0n t\u1ea5t, trang \u0111\u0103ng nh\u1eadp ownCloud s\u1ebd xu\u1ea5t hi\u1ec7n. \u0110\u0103ng nh\u1eadp b\u1eb1ng th\u00f4ng tin \u0111\u0103ng nh\u1eadp qu\u1ea3n tr\u1ecb vi\u00ean m\u1edbi t\u1ea1o. Sau khi \u0111\u0103ng nh\u1eadp, b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c \u0111\u01b0a \u0111\u1ebfn trang ownCloud ch\u00ednh.<img decoding=\"async\" src=\"https:\/\/www.linode.com\/docs\/guides\/install-and-configure-owncloud-on-ubuntu-20-04\/owncloud_ubuntu_b_hu9bf14dbfbcbdc20ce7a03e299eb5a42c_53529_1664x0_resize_q71_bgfafafc_catmullrom.jpg\" alt=\"ownCloud is installed and ready to use as your private cloud\"><\/li>\n<\/ol>\n<p>B\u00e2y gi\u1edd b\u1ea1n \u0111\u00e3 c\u00f3 phi\u00ean b\u1ea3n ownCloud \u0111ang ho\u1ea1t \u0111\u1ed9ng, ch\u1ea1y tr\u00ean Ubuntu 20.04.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OwnCloud l\u00e0 g\u00ec? V\u1edbi&nbsp;ownCloud,&nbsp;b\u1ea1n c\u00f3 th\u1ec3 l\u01b0u tr\u1eef \u0111\u00e1m m\u00e2y ri\u00eang \u0111\u1ec3 \u0111\u1ed3ng b\u1ed9 h\u00f3a d\u1eef li\u1ec7u, l\u01b0u tr\u1eef t\u1ec7p v\u00e0 chia s\u1ebb t\u1ec7p. B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ownCloud nh\u01b0 m\u1ed9t gi\u1ea3i ph\u00e1p thay th\u1ebf cho c\u00e1c d\u1ecbch v\u1ee5 th\u01b0\u01a1ng m\u1ea1i nh\u01b0 DropBox ho\u1eb7c Box. Ph\u1ea7n m\u1ec1m n\u00e0y r\u1ea5t tuy\u1ec7t v\u1eddi cho vi\u1ec7c c\u1ed9ng<\/p>\n","protected":false},"author":1,"featured_media":35666,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[],"class_list":["post-34904","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-storage"],"_links":{"self":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/34904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/comments?post=34904"}],"version-history":[{"count":0,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/34904\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media\/35666"}],"wp:attachment":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media?parent=34904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/categories?post=34904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/tags?post=34904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}