ownCloud Description

ownCloud is opensource private cloud storage software package that works as straightforward way to serve and store content from  its centralized location, Dropbox, iCloud  is very similar application which provide this functionality but these are not trustable and users want to secure the data or fetch the data from  off the cloud. Now Run your own private cloud storage server and manage the data with sharing with anybody , syncing with mobile and desktop device , documents and notifications etc….

Reason behind to Use ownCloud 

  • ownCloud is open source based free tool that have not any limitations and make changes as you wish.
  • Data can be share with anybody , who is in your know very well.
  • Flexible secondary storage to provide data to store.
  • You can read PDF’s , see videos with  live or real time  text editor  .
  • Set limits through quota management on external storage.
  • Support of  Accessing of Directory through integration with LDAP / Active
  • ownCloud maintains files previous versions, so that we can recover from any accidental delete.
  • Task can be synchronized with calendar .  
To Read more about the features of ownCloud   [button link=”https://owncloud.org/features/” type=”icon” newwindow=”yes”] FEATURES[/button]   [/box]

Steps to  9 on CentOs / RHEL 7 Server :

Server Requirements

Install Software Collections ( SCL ) Repository

[box] We need to set up first Software Collections ( SCL ) Repository on our CentOS 7 and  SCL for RHEL which is compiliance with RHEL server contract.( Do not use any other third party repository )  Server through below command.
For RHEL  7 Subscription
# subscription-manager repos --enable rhel-server-rhscl-7-eus-rpms
For CentOs 7
# yum install centos-release-scl –y

Install and Configure Apache Web Server  :

[box] Begin by installaing  the  httpd packages.
# yum install httpd –t
Start and Enable httpd service.
# systemctl start httpd.service    # systemctl enable httpd.service    [/box]

 Install  PHP 5.5 or Upgrade to  PHP 5.5

[box] ownCloud works on PHP 5.4 but this is version of php has been end of life but Red Hat support php 5.4 on lates version 7 . better is use of 5.5 for better performance and security.
Here we are assuming in this set up you have taken fresh server , where there is no php or apache server is configured.
Now install PHP and its module . also php mysql module .
# yum install php55  php55-php-gd php55-php-mbstring php55-php-mysqlnd  php55-php
Then restart apache server.
# systemctl restart httpd.service

Install & Create MySQL/ MariaDB Server

Install MariaDB on server server with yum command. Mariadb group install mariadb-server, mariadb-bench, mariadb-test.
# yum groupinstall mariadb mariadb-client
# systemctl start mariadb ( Start the MariaDB Server )
# systemctl enable mariadb ( Enable for Boot Time )
Verify of the status of service.
# systemctl status mariadb
Configure the MariaDB Server to improve security. Run below command and read carefully and follow its instructions.
# mysql_secure_installation
 mysql -u root -p  Enter password:  MariaDB[(none)]>CREATE DATABASE privatecloudDB;  MariaDB[(none)]>GRANT ALL ON privatecloudDB.* to 'privateclouduser'@'localhost' IDENTIFIED BY '[ENTER_PASSWORD]';  MariaDB[(none)]> FLUSH PRIVILEGES;  MariaDB[(none)]> quit[/box]    

Install ownCloud 9

  • Download the latest version of own cloud software from it official web site  [button link=”https://owncloud.org/install/” type=”icon” newwindow=”yes”] Download ownCloud[/button]  
  • Currently software is available on zip and bzip2 compressed file and also download its checksum files to Verify the MD5 or SHA256 . 
Here we are going to download through bzip2 compression file relatives checksums and check and download through below steps.

Download ownCloud 9.x bz2 file.

# wget https://download.owncloud.org/community/owncloud-9.0.0.tar.bz2

Download MD5 or SHA256 sum

# wget https://download.owncloud.org/community/owncloud-9.0.0.tar.bz2.md5    # wget https://download.owncloud.org/community/owncloud-9.0.0.tar.bz2.sha256

Verify :

root@:/var/www/html# md5sum -c owncloud-9.0.0.tar.bz2.md5< owncloud-9.0.0.tar.bz2  owncloud-9.0.0.tar.bz2: OK  root@:/var/www/html# sha256sum -c owncloud-9.0.0.tar.bz2.sha256 < owncloud-9.0.0.tar.bz2  owncloud-9.0.0.tar.bz2: OK
  • Unpack the downloaded bzip2 compress file through tar command.
# tar –xjf owncloud-9.0.0.tar.bz2
  • Configure unpacked code direcotory on website web server document root . Here I am renaming the directory from owncloud to myprivatecloud
# mv  owncloud myprivatecloud    # cp –rvf  myprivatecloud  /var/www

Configure Apache Virtual Host 

Create the file /etc/httpd/conf.d/owncloud.conf with the following contents :
<VirtualHost *:80>    ServerName  info@techtransit.org    ServerName  owncloud.techtransit.org    DocumentRoot /var/www/html/myprivatecloud    </VirtualHost>    Alias /owncloud "/var/www/html/myprivatecloud"    <Directory /var/www/html/myprivatecloud >    Options +FollowSymlinks    AllowOverride All    <IfModule mod_dav.c>    Dav off    </IfModule>    SetEnv HOME /var/www/html/myprivatecloud    SetEnv HTTP_HOME /var/www/html/myprivatecloud    </Directory>
Now restart apache service.
# systemctl restart httpd.service

After restarting Apache you need to start installation through graphical method through given fqdn.
#  http://owncloud.techtransit.org

Now below showing images for installation steps in browser, in first images , here i am giving admin portal username password. which will create for admin login and directory location where data will be stored. you need to set proper permission on that location and in second image you need to set database username database password and database name , which we have created in configuration time.

Thank you đź™‚ Hope you have enjoy the installation instruction.

Post a Comment

NETWORKSTIP © 2013. All Rights Reserved. Shared by NetworksTip Muhammad Nafees