Dokumentasi Install Owncloud di Ubuntu Server 16.04 - PT Bobobobo



Ini adalah postingan tutorial installasi Owncloud di Ubuntu Server 16.04, dan sebagai dokumentasi pribadi saya sendiri.

berikut langkah langkahnya:
1. Update ubuntu
apt-get update
2. Install Lamp Server
apt-get install  lamp-server^
Catatan: Saat Instalasi Lamp akan diperintahkan input password mysql, isilah dengan password anda sendiri

3. Import key owncloud ke ubuntu
wget -nv https://download.owncloud.org/download/repositories/production/Ubuntu_16.04/Release.key -O Release.key
apt-key add - < Release.key
4. Tambahkan Repository Owncloud ke Ubuntu
echo 'deb http://download.owncloud.org/download/repositories/production/Ubuntu_16.04/ /' > /etc/apt/sources.list.d/owncloud.list
5. Update Ubuntu
apt-get update
6. Install Ouncloud
apt-get install owncloud-files
7. Restart Apache
service apache2 restart
8.  Buat dan setting database
mysql -u root -p
CREATE DATABASE owncloud;
GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'password_anda';
 FLUSH PRIVILEGES;
exit 
Sampai disini installasi owncloud sebenarnya sudah selesai, tapi masih belum bisa diakses karena harus configurasi folder virtual host di apache terlebih dahulu. berikut perintahnya,
nano /etc/apache2/site-enabled/000-default.conf
Cari kalimat berikut:
DocumentRoot /var/www/html 
Ganti menjadi:
DocumentRoot /var/www
Done! sekarang coba akses dari browser http://[IP_ADDRESS]/owncloud

catatan:
Jika muncul pesan error yang menginformasikan beberapa modul php belum terinstall, lakukan instalasi modul-modul tersebut dengan format:
apt-get install php7.0-[NAMA_MODUL]

Langkah terakhir adalah membuat akun admin, isilah seuai kebutuhan anda.


Referensi:
https://youtu.be/7c-k835hiHE
https://download.owncloud.org/download/repositories/stable/owncloud/