[go: up one dir, main page]

0% found this document useful (0 votes)
83 views3 pages

Modul Instalasi Dan Konfigurasi Nextcloud

1. The document provides instructions for installing and configuring Nextcloud on an Ubuntu server. It involves installing Ubuntu, LAMP stack, downloading and extracting Nextcloud, configuring the database, Apache virtual host, and security settings. 2. Key steps include installing LAMP and additional PHP modules, creating a MySQL database for Nextcloud, downloading Nextcloud, configuring Apache's virtual host, file permissions, and trusted domains. 3. Once completed, Nextcloud can be accessed and configured through the web interface.

Uploaded by

B. Jati Lestari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views3 pages

Modul Instalasi Dan Konfigurasi Nextcloud

1. The document provides instructions for installing and configuring Nextcloud on an Ubuntu server. It involves installing Ubuntu, LAMP stack, downloading and extracting Nextcloud, configuring the database, Apache virtual host, and security settings. 2. Key steps include installing LAMP and additional PHP modules, creating a MySQL database for Nextcloud, downloading Nextcloud, configuring Apache's virtual host, file permissions, and trusted domains. 3. Once completed, Nextcloud can be accessed and configured through the web interface.

Uploaded by

B. Jati Lestari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

MODUL INSTALASI DAN KONFIGURASI NEXTCLOUD

1. INSTALASI UBUNTU BERJALAN DG BAIK


2. KONEKSI KE BRIDGE MODE SUPAYA UBUNTU TERKONEKSI DG INTERNET
#netplan apply  merestart network
Pastikan Ping ke server berhasil
3. Koneksikan ke Server menggunakan PUTTY
kemudian update #apt update
4. Install LAMP server
#apt install apache2 libapache2-mod-php php mariadb-server
5. Install additional PHP modules
#apt install php-gd php-mysql php-curl php-json php-gmp php-bcmath php-xml php-mbstring
php-intl php-imagick php-zip bzip2

6. KONFIGURASIKAN PHP
# nano /etc/php/7.4/apache2/php.ini
memory_limit = 512M
timezone. America/Denver MENJADI Asia/Jakarta
7. RESTART APACHE
# systemctl restart apache2
# systemctl status apache2

8. CREATE A DATABASE FOR NEXTCLOUD


Masuk database server menggunakan akun root
# mysql -u root –p
> CREATE DATABASE nextcloud_db;
> GRANT ALL ON nextcloud_db.* to 'demo'@'localhost' IDENTIFIED BY '1239';
> FLUSH PRIVILEGES;
> EXIT
9. DOWNLOAD AND CONFIGURE NEXTCLOUD
wget https://download.nextcloud.com/server/releases/nextcloud-21.0.1.zip

10. INSTALL APLIKASI UNZIP


#apt install unzip
# unzip nextcloud-21.0.1.zip -d /var/www/html/

11. UBAH PERMISSION DIRECTORY


# chown -R www-data:www-data /var/www/html/nextcloud
# chmod -R 775 /var/www/html/nextcloud

12. CREATE A CONFIGURATION FILE FOR NEXTCLOUD


VIRTUAL HOST
# nano /etc/apache2/sites-available/nextcloud.conf
<VirtualHost *:80>
DocumentRoot "/var/www/html/nextcloud"
ServerName localhost

ErrorLog ${APACHE_LOG_DIR}/nextcloud.error
CustomLog ${APACHE_LOG_DIR}/nextcloud.access combined

<Directory /var/www/html/nextcloud/>
Require all granted
Options FollowSymlinks MultiViews
AllowOverride All

<IfModule mod_dav.c>
Dav off
</IfModule>

SetEnv HOME /var/www/html/nextcloud


SetEnv HTTP_HOME /var/www/html/nextcloud
Satisfy Any

</Directory>

</VirtualHost>

# a2ensite nextcloud.conf
# a2dissite 000-default.conf
# a2enmod rewrite headers dir mime env setenvif ssl

# systemctl reload apache2

13. EDIT IP NEXTCLOUD


# sudo –u www-data php /var/www/nextcloud/occ config:system:set trusted_domains 1
value=192168.60.14

14. CONFIG NEXTCLOUD


Set DATABASE USER dan DATABASE NAME sesuai dengan konfig yang sudah kita set di
DATABASE lihat No.8

15. Merubah laman URL


#nano /var/www/html/nextcloud/config/config.php

'overwrite.cli.url' => 'http://192.168.60.14',


'htaccess.RewriteBase' => '/',
#systemctl restart apache2
# sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess

SUKSES

You might also like