在 Ubuntu 18.04 下安裝 Nextcloud 20

請先下載並安裝 Ubuntu 18.04 最新版本。

sudo apt update
sudo apt upgrade -y
# Nextcloud 核心必要的軟體包
sudo apt install apache2 libapache2-mod-php7.2 php7.2-common php7.2-curl php7.2-xml php7.2-gd php7.2-json php7.2-mbstring php7.2-zip sqlite3 php7.2-sqlite3 php7.2-bz2
# 非必要,但安裝這些軟體包可讓 Nextcloud 效能更佳或新增功能
sudo apt install php7.2-intl php7.2-ldap php-smbclient php7.2-imap php7.2-bcmath php7.2-gmp php-imagick
cd /var/www/html
sudo wget --no-check-certificate https://download.nextcloud.com/server/releases/nextcloud-20.0.10.zip
sudo apt install unzip -y
sudo unzip nextcloud-20.0.10.zip
sudo chown www-data.www-data nextcloud -R
sudo systemctl restart apache2
cd /var/www/html
sudo wget --no-check-certificate https://github.com/nextcloud/richdocuments/releases/download/v3.8.1/richdocuments.tar.gz
sudo tar zxvf richdocuments.tar.gz -C /var/www/html/nextcloud/apps/
sudo chown www-data.www-data nextcloud -R

接著請以管理者身份登入 Nextcloud:

然後再回到指令介面執行以下指令:

cd /var/www/html/nextcloud
sudo -u www-data php occ config:app:set richdocuments wopi_url --value="http://yourhostip:9980"

Revision #4
Created 8 February 2021 08:37:19 by Jeff Huang
Updated 21 May 2021 03:52:26 by Jeff Huang