NETWORKSTIP Networking CCNA,Centos,Ubuntu,Sql,

Made By Muhammad Nafees

Breaking

Wednesday, 14 September 2016

install Own Cloud storage server with latest ownCloud 9 Centos 7

Own Cloud Description

Own Cloud 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 https://owncloud.org/features

Steps to Install ownCloud 9 on CentOs / RHEL 7 Server :

Server Requirements

  • Minimum RAM required by ownCloud Software : 128 MB
  • Recommended RAM required by ownCloud : 512 MB
You can use RAM according to your requirement or server resources usage or users activity.

Install Software Collections ( SCL ) Repository


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
# 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  :


Begin by installaing  the  httpd packages.

# yum install httpd –t

Start and Enable httpd service.

# systemctl start httpd.service 
# systemctl enable httpd.service 


Install  PHP 5.5 or Upgrade to  PHP 5.5


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

Install ownCloud 9


  • Download the latest version of own cloud software from it official web site  https://owncloud.org
  • 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@dolibarr:/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

Run your own cloud storage

After restarting Apache you need to start installation through graphical method through given FDQN.
#  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.

4 comments:

  1. Amazing article! I need individuals to know exactly how great this data is in your article. It's fascinating, convincing substance. Your perspectives are much like my own particular concerning this subject.Thanks for sharing this.I will bookmark your blog.For cloud storage please Click on the link below and download now.
    Free cloud storage

    ReplyDelete
    Replies
    1. thank you very much for such a nice feedback Free Drive Storage

      Delete
  2. You post explain everything in detail and it was very interesting to read.Thank you for sharing.For Free Cloud storage.Please Click on the link below and download the APP now.
    Free online storage

    ReplyDelete