Install NextCloud di Ubuntu 20.04 Focal Fossa (Linux, Apache, MariaDB, PHP)

From Wiki TJKT SMK Yasmida
Jump to navigation Jump to search

Update Repository

sudo apt update

Install LAMP Stack

sudo apt install apache2 mariadb-server libapache2-mod-php7.4

install PHP Extension

sudo apt install php7.4-gd php7.4-mysql php7.4-curl php7.4-mbstring php7.4-intl
sudo apt install php7.4-gmp php7.4-bcmath php-imagick php7.4-xml php7.4-zip

Konfigurasi MariaDB

sudo /etc/init.d/mysql start
sudo mysql -uroot -p
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost';
FLUSH PRIVILEGES;
quit;

Download NextCloud

wget https://download.nextcloud.com/server/releases/nextcloud-x.y.z.tar.bz2.asc
wget https://nextcloud.com/nextcloud.asc
gpg --import nextcloud.asc
gpg --verify nextcloud-x.y.z.tar.bz2.asc nextcloud-x.y.z.tar.bz2

Install NextCloud

tar -xjvf nextcloud-x.y.z.tar.bz2
unzip nextcloud-x.y.z.zip
cp -r nextcloud /path/to/webserver/document-root
cp -r nextcloud /var/www