Hi…
Kali ini kita akan coba install nextcloud. Apa itu nextcloud? yaitu aplikasi share file semacam GoogleDrive atau Dropbox dimana servernya bisa dibuat sendiri di onpremise. Jadi nanti akan punya Layanan filesharing semacam GoogleDrive atau Dropbox dengan mesin server kita sendiri. Keren ya??
OK,, sekarang mulai ya prosesnya
Update dulu repo dan package pada Server Ubuntu
# apt update & apt upgrade -y
Install Package-package yang diperlukan
# apt-get install apache2 mariadb-server libapache2-mod-php7.0 # apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring # apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip
Download aplikasi nextcloud, key gpg, md5
# wget https://download.nextcloud.com/server/releases/nextcloud-14.0.3.zip # wget https://download.nextcloud.com/server/releases/nextcloud-14.0.3.zip.md5 # wget https://download.nextcloud.com/server/releases/nextcloud-14.0.3.zip.asc # wget https://nextcloud.com/nextcloud.asc
Verifikasi MD5 sum
# md5sum -c nextcloud-14.0.3.zip.md5 < nextcloud-14.0.3.zip
Verifikasi PGP Signature
# gpg --import nextcloud.asc # gpg --verify nextcloud-14.0.3.zip.asc nextcloud-14.0.3.zip
Install Unzip untuk ekstrak file nextcloud yang sudah kita download
# apt install unzip
Ekstrak file nextcloud
# unzip nextcloud-14.0.3.zip
Copy hasil ekstrak tadi ke document root
# cp -r nextcloud /var/www/
Ubah owner direktori nextcloud
# chown -R www-data:www-data /var/www/nextcloud/
Buat apache configuration nya
# nano /etc/apache2/sites-available/nextcloud.conf
Isikan dengan dibawah ini
Alias /nextcloud "/var/www/nextcloud/" <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory>
Enable nextcloud.conf nya, kemudian reload servis apache
# a2ensite nextcloud # service apache2 reload
Enable apache mod yang diperlukan untuk nextcloud, kemudian reload kembali service apache
# a2enmod rewrite # a2enmod headers # a2enmod env # a2enmod dir # a2enmod mime # service apache2 reload
Sekarang kita masuk kebagian database, jalankan perintah dibawah untuk mengamankan mariadb server
# mysql_secure_installation
Isikan seperti berikut
Enter current password for root (enter for none): Just press the Enter Set root password? [Y/n]: Y New password: Enter password Re-enter new password: Repeat password Remove anonymous users? [Y/n]: Y Disallow root login remotely? [Y/n]: Y Remove test database and access to it? [Y/n]: Y Reload privilege tables now? [Y/n]: Y
Kemudian, buat database, user dan password untuk nextcloud. Disini saya buat nama db nextcloud, user konfigurasi.net dan password 12345678
root@ubuntu:/home/ubuntu# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 32 Server version: 10.0.36-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> create database nextcloud; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> create user 'konfigurasi.net'@'localhost' identified by '12345678'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> grant all on nextcloud.* to 'konfigurasi.net'@'localhost' identified by '12345678' with grant option; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit Bye
Selanjutnya, masuk ke browser, ketikkan http://<ipaddress>/netxtcloud.
Buat akun admin dan passwordnya, isikan lokasi data folder, kemudian isi database, user db dan password db. Terakhir klik Finish Setup
Apabila berhasil akan muncul seperti gambar berikut, klik next dan next saja
Nextcloud sudah berhasil, untuk cara penggunaannya bisa download file Nextcloud Manual yang sudah disediakan didalam aplikasi yang sudah dibuat tadi.
Selanjutnya nanti kita akan menghubungkan dengan server dokumen, yang fungsinya nanti akan dapat membuka dokumen office di browser, seperti pada Google Cloud. Tapi akan dilanjut dihalaman lainnya ya….
Terima Kasih