Install Nextcloud On Server Ubuntu 20.04: Difference between revisions
Jump to navigation
Jump to search
dw>Admin No edit summary |
m 1 revision imported |
||
(No difference)
| |||
Latest revision as of 22:29, 7 February 2023
Referensi : https://www.itzgeek.com/post/how-to-install-nextcloud-on-ubuntu-20-04/
Install Apache, MySQL & PHP
sudo apt update sudo apt install -y apache2 libapache2-mod-php bzip2 sudo apt install -y php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-sqlite3 sudo a2enmod rewrite sudo a2enmod headers sudo a2enmod dir sudo a2enmod env sudo a2enmod mime sudo systemctl restart apache2 sudo apt install -y mariadb-server mariadb-client
Create Database
sudo mysql -u root -p create database nextclouddb; grant all on nextclouddb.* to 'nextclouduser'@'localhost' identified by '123456'; quit
Download Nextcloud
wget https://download.nextcloud.com/server/releases/latest.tar.bz2 tar -jxvf latest.tar.bz2 sudo mv nextcloud /opt/ sudo chown -R www-data:www-data /opt/nextcloud/
configuration nextcloud
sudo nano /etc/apache2/sites-available/nextcloud.conf
isi dengan script berikut:
Alias /nextcloud "/opt/nextcloud/"
<Directory /opt/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
sudo a2ensite nextcloud sudo systemctl restart apache2
Setup NextCloud
http://your-ip-addr-ess/nextcloud