Ubuntu OwnCloud: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
No edit summary
Onnowpurbo (talk | contribs)
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
Sumber: http://jagoancengeng.wordpress.com/2013/03/18/membangun-drive-cloud-pada-jaringan-lokal/
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


eknologi 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.
[[Image:Spesifikasi.jpg|center|200px|thumb]]


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 12.04 dan berikut kebutuhan untuk instalasi owncloud


[[Image:Spesifikasi.jpg|center|200px|thumb]]
==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==


Untuk menginstall own cloud jalankan step-step berikut.
Instalasi


1. lakukan update ubuntu dengan perintah
  sudo apt install apache2
  apt-get update


2.Install depedency yang di perlukan.
Tambahkan


  apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 \
  sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf
libcurl3-dev php5-curl php5-common php-xml-parser


3.Download script php setup-owncloud.php , kemudian letakkan pada folder
Restart


  /var/www
  sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service


4.Akses dengan menggunakan browser http://192.168.1.108/setup-owncloud.php makan akan muncul tampilan seperti ini


[[Image:Install-cloud.jpg}center|200px|thumb]]
==Instalasi Database==


5.jangan panik dengan tampilan di Dibawah ini, karena modul instalasi belum mengidentifikasi depedency nya. untuk mengatasi hal tersbut lakukan Restart Apache dan beri permision read.write and exec untuk folder /var/www
Install


[[Image:Install-cloud2.jpg|center|200px|thumb]]
sudo apt -y install mariadb-server mariadb-client


  /etc/init.d/apache2 restart
  sudo systemctl stop mariadb.service
  chmod 777 /var/www
  sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service


6. Setelah apache di restart dan nilai chmod untuk directory /var/www sudah di rubah, refresh Browsernya. maka tampilan akan seperti ini. beri nama subdirectory cloud bebas, boleh menggunakan apa saja.
Amankan


[[Image:Install-cloud3.jpg|center|200px|thumb]]
sudo mysql_secure_installation


7.Berikan password untuk user admin, bebas mau kasih apa saja. dalam percobaan ini saya menggunakan password untuk admin, pass:imamgantengsekali  (aihhh…narsis amat ) :)
* 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


[[Image:Install-cloud4.jpg|center|200px|thumb]]
Restart


8. Setelah memasukan password untuk admin, maka instalasi sudah sukses.dan kita sudah bisa upload, share, download.
sudo systemctl restart mariadb.service


[[Image:Install-cloud5.jpg|center|200px|thumb]]


Alhamdulillah..sampai sini kita sudah mempunyai tempat penyimpanan berbasis cloud, Selamat bekreasi dengan owncloud, dan semoga bermanfaat.
==Install PHP==


Install


==Cara Lain==
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt -y install php7.1 libapache2-mod-php7.1 php7.1-common php7.1-mbstring \
php7.1-xmlrpc php7.1-soap php7.1-apcu php7.1-smbclient php7.1-ldap php7.1-redis php7.1-gd \
php7.1-xml php7.1-intl php7.1-json php7.1-imagick php7.1-mysql php7.1-cli php7.1-mcrypt \
php7.1-ldap php7.1-zip php7.1-curl unzip


5 down vote accepted
Edit
Installing a webserver


Owncloud is a webservice so you will need to install LAMP - the webserver for Ubuntu. Do that by running the following. Or choose to install LAMP when installing the server.
sudo nano /etc/php/7.1/apache2/php.ini


  sudo apt-get install lamp-server^
  memory_limit = 256M
upload_max_filesize = 100M


Give mySQL root a password when asked - and remember it as you will need it later.
==Konfigurasi Database==


You will also need the GD module for PHP so install that using the following.
sudo mysql -u root -p123456


  sudo apt-get install php5-gd
  CREATE DATABASE owncloud;
CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'owncloud';
GRANT ALL ON owncloud.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'owncloud' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;


Getting Owncloud server
==Download OwnCloud==


Next you will need the owncloud server files. You will find full instructions here, but in summary just run the following.
cd /tmp && wget https://download.owncloud.org/community/owncloud-10.1.1.zip
unzip owncloud-10.1.1.zip
sudo mv owncloud /var/www/html/owncloud/


  sudo -i
  mkdir /var/www/html/owncloud/data
wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key
  chown -Rf nobody: /var/www/html/owncloud/data/
  apt-key add - < Release.key
chmod -Rf 777 /var/www/html/owncloud/data
echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/ /' >> /etc/apt/sources.list.d/owncloud.list
  sudo chown -R www-data:www-data /var/www/html/owncloud/
  apt-get update
  sudo chmod -R 755 /var/www/html/owncloud/
  apt-get install owncloud
exit


Setting the permissions of the owncloud files to those of the webserver by running.
==Konfigurasi Apache2==


  sudo chown -R www-data:www-data /var/www/owncloud
  sudo nano /etc/apache2/sites-available/owncloud.conf


Setting up a separate partition/drive for the data directory (optional)
<VirtualHost *:80>
      ServerAdmin admin@example.com
      DocumentRoot /var/www/html/owncloud/
      ServerName example.com
      ServerAlias www.example.com
 
      Alias /owncloud "/var/www/html/owncloud/" 
      <Directory /var/www/html/owncloud/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
          <IfModule mod_dav.c>
            Dav off
          </IfModule>
        SetEnv HOME /var/www/html/owncloud
        SetEnv HTTP_HOME /var/www/html/owncloud
      </Directory>
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


If you want to keep the data on a separate drive then add it and set its mount point in /mnt/owncloudData (preferably)
Aktifkan
Final setup


Go to http://your-server-ip/owncloud in the browser of a computer on the same network. Set the username and password that you want for the admin user.
sudo a2ensite owncloud.conf
sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod env
sudo a2enmod dir
sudo a2enmod mime


Under advance (after clicking it) you can change the data path if you prepared a separate one. You can also change the database engine, if you choose mySQL then set root as the user, the password is the one you set above when you installed LAMP and the database name is up to you ('owncloud' is a good name).
Restart
Giving server a proper name (optional) - only if server is gateway


Typing the IP address of the server to access the web UI can become hard to remember so lets give it a proper name. Type the following.
/etc/init.d/apache2 restart


sudo nano /etc/hosts
==Konfigurasi Via Web==


And add the following to the end.
Akses ke


  server-ip        server-name
  http://ip-address-server/owncloud/


Replace server-ip with its IP and server-name with the name (like just 'server' is good). Now lets get DNSMASQ to use the hosts file (like explained here) by typing the following.


sudo -i
Masukan via web
echo 'addn-hosts=/etc/hosts' >> /etc/NetworkManager/dnsmasq.d/hosts.conf
restart network-manager
exit


You should now be able to go to http://server-name/owncloud to access the UI from any computer in the LAN.
username admin      admin
password admin      123456
data folder        /var/www/html/owncloud/data
database user      root
database password  123456
database name       owncloud
database host      localhost:3306


Klik FINISH




==Referensi==
==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://jagoancengeng.wordpress.com/2013/03/18/membangun-drive-cloud-pada-jaringan-lokal/
* http://doc.owncloud.org/
* http://doc.owncloud.org/
* http://owncloud.org/
* http://owncloud.org/
* http://askubuntu.com/questions/362326/owncloud-server-on-ubuntu-12-04
* http://askubuntu.com/questions/362326/owncloud-server-on-ubuntu-12-04
==Youtube==
* https://youtu.be/Be6C_o4DgFE
==Pranala Menarik==
* [[NextCloud]]

Latest revision as of 07:41, 9 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.1 libapache2-mod-php7.1 php7.1-common php7.1-mbstring \
php7.1-xmlrpc php7.1-soap php7.1-apcu php7.1-smbclient php7.1-ldap php7.1-redis php7.1-gd \
php7.1-xml php7.1-intl php7.1-json php7.1-imagick php7.1-mysql php7.1-cli php7.1-mcrypt \
php7.1-ldap php7.1-zip php7.1-curl unzip

Edit

sudo nano /etc/php/7.1/apache2/php.ini
memory_limit = 256M
upload_max_filesize = 100M

Konfigurasi Database

sudo mysql -u root -p123456
CREATE DATABASE owncloud;
CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'owncloud';
GRANT ALL ON owncloud.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'owncloud' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

Download OwnCloud

cd /tmp && wget https://download.owncloud.org/community/owncloud-10.1.1.zip
unzip owncloud-10.1.1.zip
sudo mv owncloud /var/www/html/owncloud/
mkdir /var/www/html/owncloud/data
chown -Rf nobody: /var/www/html/owncloud/data/
chmod -Rf 777 /var/www/html/owncloud/data
sudo chown -R www-data:www-data /var/www/html/owncloud/
sudo chmod -R 755 /var/www/html/owncloud/

Konfigurasi Apache2

sudo nano /etc/apache2/sites-available/owncloud.conf
<VirtualHost *:80>
     ServerAdmin admin@example.com
     DocumentRoot /var/www/html/owncloud/
     ServerName example.com
     ServerAlias www.example.com
  
     Alias /owncloud "/var/www/html/owncloud/"  

     <Directory /var/www/html/owncloud/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
          <IfModule mod_dav.c>
            Dav off
          </IfModule>
        SetEnv HOME /var/www/html/owncloud
        SetEnv HTTP_HOME /var/www/html/owncloud
     </Directory>

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

</VirtualHost>

Aktifkan

sudo a2ensite owncloud.conf
sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod env
sudo a2enmod dir
sudo a2enmod mime

Restart

/etc/init.d/apache2 restart

Konfigurasi Via Web

Akses ke

http://ip-address-server/owncloud/


Masukan via web

username admin      admin
password admin      123456
data folder         /var/www/html/owncloud/data
database user       root
database password   123456
database name       owncloud
database host       localhost:3306
Klik FINISH


Referensi


Youtube

Pranala Menarik