Difference between revisions of "Ubuntu OwnCloud"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 8: | Line 8: | ||
− | |||
− | + | ==Perbaiki Repository== | |
− | |||
− | |||
Edit /etc/apt/sources.list tambahkan universe & multiverse | Edit /etc/apt/sources.list tambahkan universe & multiverse | ||
Line 20: | Line 17: | ||
deb http://archive.ubuntu.com/ubuntu bionic-security main universe multiverse | deb http://archive.ubuntu.com/ubuntu bionic-security main universe multiverse | ||
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe multiverse | deb http://archive.ubuntu.com/ubuntu bionic-updates main universe multiverse | ||
+ | |||
+ | Lakukan | ||
+ | |||
+ | apt update | ||
+ | |||
+ | |||
+ | ==Install Apache2== | ||
+ | |||
+ | Instalasi | ||
+ | |||
+ | sudo apt install apache2 | ||
+ | |||
+ | Tambahkan | ||
+ | |||
+ | sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf | ||
+ | |||
+ | Restart | ||
+ | |||
+ | sudo systemctl stop apache2.service | ||
+ | sudo systemctl start apache2.service | ||
+ | sudo systemctl enable apache2.service | ||
+ | |||
+ | |||
+ | ==Instalasi Database== | ||
+ | |||
+ | Install | ||
+ | |||
+ | sudo apt -y install mariadb-server mariadb-client | ||
+ | |||
+ | sudo systemctl stop mariadb.service | ||
+ | sudo systemctl start mariadb.service | ||
+ | sudo systemctl enable mariadb.service | ||
+ | |||
+ | Amankan | ||
+ | |||
+ | sudo mysql_secure_installation | ||
+ | |||
+ | * Enter current password for root (enter for none): Just press the Enter | ||
+ | * Set root password? [Y/n]: Y | ||
+ | * New password: 123456 | ||
+ | * Re-enter new password: 123456 | ||
+ | * 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 | ||
+ | |||
+ | Restart | ||
+ | |||
+ | sudo systemctl restart mariadb.service | ||
+ | |||
+ | |||
+ | ==Install PHP== | ||
+ | |||
+ | Install | ||
+ | |||
+ | sudo apt -y install software-properties-common | ||
+ | sudo add-apt-repository ppa:ondrej/php | ||
+ | sudo apt update | ||
+ | sudo apt -y install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring \ | ||
+ | php7.2-xmlrpc php7.2-soap php7.2-apcu php7.1-smbclient php7.2-ldap php7.2-redis php7.2-gd \ | ||
+ | php7.2-xml php7.2-intl php7.2-json php7.2-imagick php7.2-mysql php7.2-cli php7.2-mcrypt \ | ||
+ | php7.2-ldap php7.2-zip php7.2-curl | ||
+ | |||
+ | Edit | ||
+ | |||
+ | sudo nano /etc/php/7.2/apache2/php.ini | ||
+ | |||
+ | memory_limit = 256M | ||
+ | upload_max_filesize = 100M | ||
+ | |||
+ | |||
+ | |||
+ | ==Install Database== | ||
+ | |||
+ | |||
+ | sudo mysql -u root -p | ||
+ | |||
+ | |||
+ | CREATE DATABASE owncloud; | ||
+ | CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'new_password_here'; | ||
+ | GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION; | ||
+ | FLUSH PRIVILEGES; | ||
+ | EXIT; | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Instalasi== | ||
+ | |||
+ | Tambahakan Repo Owncloud | ||
+ | |||
+ | curl https://download.owncloud.org/download/repositories/10.0/Ubuntu_18.04/Release.key | sudo apt-key add - | ||
+ | echo 'deb http://download.owncloud.org/download/repositories/10.0/Ubuntu_18.04/ /' | sudo tee /etc/apt/sources.list.d/owncloud.list | ||
+ | |||
Revision as of 11:35, 6 May 2019
Teknologi Cloud saat ini sedang berkembang seiring dengan kebutuhan akan penyimpanan data yang bersifat “bisa di akses dimana saja”, beberapa perusahaan besar sudah mengintegrasikan layanan cloud dengan layanan yang lainnya sebut saja IBM dengan LotusLive ,Microsoft dengan Windows Azure, Apple dengan Mobile Me dan Google dengan google docs.
banyak nilai lebih untuk penyimpanan berbasis cloud, selain penyimpanan terpusat, data dapat di share bersama dengan pengguna lain dan dapat di akses dalam waktu bersamaan. Lantas bagaimana Solusi untuk Pemakai opensource yang ingin membentuk layanan penyimpanan Cloud jika ingin di terapkan dalam lingkungan jaringan lokal, semisal Perkantoran, Sekolah, Kampus ataupun instansi Pemerintah.
Tulisan ini akan coba untuk mengupas layanan owncloud, Applikasi cloud yang berjalan pada system Linux, untuk percobaan yang saya lakukan di mini lab rumah saya, saya menggunakan ubuntu 18.04 dan berikut kebutuhan untuk instalasi owncloud
Perbaiki Repository
Edit /etc/apt/sources.list tambahkan universe & multiverse
deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse deb http://archive.ubuntu.com/ubuntu bionic-security main universe multiverse deb http://archive.ubuntu.com/ubuntu bionic-updates main universe multiverse
Lakukan
apt update
Install Apache2
Instalasi
sudo apt install apache2
Tambahkan
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf
Restart
sudo systemctl stop apache2.service sudo systemctl start apache2.service sudo systemctl enable apache2.service
Instalasi Database
Install
sudo apt -y install mariadb-server mariadb-client
sudo systemctl stop mariadb.service sudo systemctl start mariadb.service sudo systemctl enable mariadb.service
Amankan
sudo mysql_secure_installation
- Enter current password for root (enter for none): Just press the Enter
- Set root password? [Y/n]: Y
- New password: 123456
- Re-enter new password: 123456
- 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
Restart
sudo systemctl restart mariadb.service
Install PHP
Install
sudo apt -y install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt -y install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring \ php7.2-xmlrpc php7.2-soap php7.2-apcu php7.1-smbclient php7.2-ldap php7.2-redis php7.2-gd \ php7.2-xml php7.2-intl php7.2-json php7.2-imagick php7.2-mysql php7.2-cli php7.2-mcrypt \ php7.2-ldap php7.2-zip php7.2-curl
Edit
sudo nano /etc/php/7.2/apache2/php.ini
memory_limit = 256M upload_max_filesize = 100M
Install Database
sudo mysql -u root -p
CREATE DATABASE owncloud; CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'new_password_here'; GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION; FLUSH PRIVILEGES; EXIT;
Instalasi
Tambahakan Repo Owncloud
curl https://download.owncloud.org/download/repositories/10.0/Ubuntu_18.04/Release.key | sudo apt-key add - echo 'deb http://download.owncloud.org/download/repositories/10.0/Ubuntu_18.04/ /' | sudo tee /etc/apt/sources.list.d/owncloud.list
Install dependency
sudo su apt update apt -y install php-bz2 php-curl php-gd php-imagick php-intl php-mbstring \ php-xml php-zip apache2
Edit
sudo nano /etc/php/7.2/apache2/php.ini
memory_limit = 256M upload_max_filesize = 100M
Edit Apache
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf
Edit
sudo nano /etc/apache2/sites-enabled/000-default.conf
Pastikan
<VirtualHost *:80> . . . DocumentRoot /var/www/owncloud
Alias /owncloud "/var/www/owncloud/" . . . </VirtualHost>
Test
sudo apache2ctl configtest sudo a2ensite owncloud.conf sudo a2enmod rewrite sudo a2enmod headers sudo a2enmod env sudo a2enmod dir sudo a2enmod mime
Reload Apache2
sudo systemctl stop apache2.service sudo systemctl start apache2.service sudo systemctl enable apache2.service sudo systemctl reload apache2
Setup Database MySQL
mysql -u root -p123456
create database owncloud; grant ALL on root.* to owncloud@localhost; grant ALL on owncloud.* to owncloud@localhost identified by 'owncloud'; grant ALL on owncloud.* to owncloud identified by 'owncloud'; FLUSH PRIVILEGES; exit
Instalasi Owncloud Server
Maka bisa di akses pada
http://ip-address-server/owncloud
Folder berada di
/usr/share/owncloud/
atau
/var/lib/owncloud/data
Akses Pertama Kali
Saat akses pertama kali masukan
username password
advanced > mysql username owncloud database owncloud password owncloud
Referensi
- https://websiteforstudents.com/install-owncloud-on-ubuntu-18-04-lts-beta-with-apache2-mariadb-and-php-7-1-support/
- http://jagoancengeng.wordpress.com/2013/03/18/membangun-drive-cloud-pada-jaringan-lokal/
- http://doc.owncloud.org/
- http://owncloud.org/
- http://askubuntu.com/questions/362326/owncloud-server-on-ubuntu-12-04