You are on page 1of 9

Cloud Computing Lab Course Code: CSL 605 Lab Manual

IEN: - Batch: -
Name of the Student: - Div.: -
Date of Performance: -
Course Outcome: - L 605.5:

EXPERIMENT NO.: - 05

Title: Study and installation of Storage as Service. (Technology:- own


cloud)
Aim: - Explorer Storage as a Service for remote file access using web interface.

System Software/ Instruments/ Equipment’s Requirements: - Windows / Linux OS ,


Own cloud setup
Theory/ Working Principle:
Storage as a service:
Storage as a service (SaaS) is a business model in which a company leases or rents its storage infrastructure to
another company or individuals to store data on . Small companies and individuals often find this to be a convenient
methodology for managing backups, and providing cost savings in personnel, hardware and physical space.
A company providing SaaS may be called a storage service provider (SSP). Storage as a service can also be
referred to as hosted storage.

As an alternative to storing magnetic tapes offsite in a vault, IT administrators are meeting their storage and
backup needs by service level agreements (SLAs) with an SaaS provider, usually on a cost-per-gigabyte-stored and
cost-per-data-transferred basis. The client transfers the data meant for storage to the service provider on a set schedule
over the SaaS provider’s wide area network or over the Internet. The storage provider provides the client with the
software required to access their stored data. Clients use the software to perform standard tasks associated with storage,
including data transfers and data backups. Corrupted or lost company data can easily be restored.

Storage as a service is prevalent among small to mid-sized businesses, as no initial budget is required to set up
hard drives, servers and IT staff. SaaS is also marketed as an excellent technique to mitigate risks in disaster recovery
by providing long-term data storage and enhancing business stability.

Example:

Google Drive:

Google Drive is a file storage and synchronization service developed by Google. Google Drive allows
users to store files in the cloud, synchronize files across devices, and share files. In addition to a website, Google Drive
offers apps with offline capabilities for Windows and macOS computers, and Android and iOS smartphones and
tablets.
© New Horizon Institute of Technology and Management www.nhitm.ac.in 1 | Page
Cloud Computing Lab Course Code: CSL 605 Lab Manual
Dropbox:

Dropbox is a file hosting service operated by American company Dropbox, Inc., headquartered in San
Francisco, California, that offers cloud storage, file synchronization, personal cloud, and client software. Dropbox uses
a freemium business model, where users are offered a free account with a set storage size, with paid subscriptions
available that offer more capacity and additional features.

Installation of storage as a service using owncloud:

Owncloud is suit of client-server software for creating file hosting services and using them. Own Cloud is
functionally very similar to the widely used Dropbox, with the primary functional difference being that Own Cloud is
free and open-source, and there by allowing anyone to install and operate it without charge on a private server, with no
limits on storage space (except for disk capacity or account quota) or the number of connected clients

Prerequisites to be installed before installing own cloud:

Step1 Install apache service ie yum install httpd.

Step2 The version of PHP provided on CentOS 6 is 5.3 but ownCloud 8 needs PHP 5.4 or later, so get Remi
repository and install PHP 5.4.

Step3 Install mysql


Step4 Install ownCloud.

Step5 Add user and database for ownCloud in MySQL.

Step6 Access to the URL "http://(your hostname or IP address)/owncloud/" from a client computer with Web
browser. Then following screen is shown. Add an admin account for ownCloud, and also click
"MySQL/MariaDB" in database section and input username or database name for MariaDB. If it's OK all,
Click "Finish Setup" to proceed.

https://www.tecmint.com/install-owncloud-to-create-personal-storage-in-linux/

https://www.vultr.com/docs/how-to-install-and-configure-owncloud-on-ubuntu-20-04/

https://linuxize.com/post/how-to-install-and-configure-owncloud-on-ubuntu-18-04/

https://tecadmin.net/install-php-ubuntu-20-04/ (php installation)

https://lucidar.me/en/owncloud/install-owncloud-server-on-ubuntu-20-04/ ( Properly
working)

sudo apt update -y && sudo apt upgrade -y

© New Horizon Institute of Technology and Management www.nhitm.ac.in 2 | Page


Cloud Computing Lab Course Code: CSL 605 Lab Manual

Step 1: Install Apache

sudo ufw app list

sudo ufw allow 'Apache'

sudo ufw status

sudo systemctl status apache2

open your browser and type localhost and press enter you should be able to see default apache page

Step 2 : Install php 7.4


ownCloud is a PHP based application, and PHP is required to run it. Since some versions of Ubuntu don’t
have the latest version of PHP, you can add a third-party PPA repository to install PHP from there.

The command below will add a third-party PPA to Ubuntu.

sudo apt-get install software-properties-common


sudo add-apt-repository ppa:ondrej/php

Then update and upgrade to PHP 7.4

sudo apt update

Next, run the commands below to install PHP 7.4 and related modules.

sudo apt install php7.4-fpm php7.4-common php7.4-mysql php7.4-gmp php7.4-curl php7.4-intl php7.4-
mbstring php7.4-xmlrpc php7.4-gd php7.4-xml php7.4-cli php7.4-zip

sudo a2enmod proxy_fcgi stevif

sudo a2enconf php7.4-fpm

systemctl reload apache2

Ref : https://devanswers.co/how-to-upgrade-from-php-7-x-to-php-8-on-ubuntu-apache/ ( php 8)

© New Horizon Institute of Technology and Management www.nhitm.ac.in 3 | Page


Cloud Computing Lab Course Code: CSL 605 Lab Manual
Step 3 Install mysql
sudo apt install mariadb-server
sudo mysql_secure_installation

Add user and database for ownCloud in MariaDB.

root@dlp:~#mysql -u root -p

Enter password:

Welcome to the MariaDB monitor. Commands end with ; or \g.

Your MariaDB connection id is 40

Server version: 10.0.25-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>create database owncloud;

Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]>grant all privileges on owncloud.* to owncloud@'localhost' identified


by 'password';

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]>flush privileges;

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]>exit

Bye

Step 4 : Install owncloud


After creating the database, now download the OwnCloud zipped file using the following wget command.
$ wget https://download.owncloud.org/community/owncloud-10.6.0.zip

Once downloaded, unzip the zipped package to the /var/www/ directory.


$ sudo unzip owncloud-10.6.0.zip -d /var/www/

or

wget https://download.owncloud.org/community/owncloud-complete-20210721.zip

© New Horizon Institute of Technology and Management www.nhitm.ac.in 4 | Page


Cloud Computing Lab Course Code: CSL 605 Lab Manual

Then, set permissions.


sudo chown -R www-data:www-data /var/www/owncloud/
sudo chmod -R 755 /var/www/owncloud/

Configure Apache for OwnCloud


In this step, we are going to configure Apache to serve OwnCloud’s files. To do that, we are going to create
a configuration file for Owncloud as shown.
$ sudo gedit /etc/apache2/conf-available/owncloud.conf

Add the configuration below.


Alias /owncloud "/var/www/owncloud/"
<Directory /var/www/owncloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud
</Directory>

Save and close the file.


Next, you need to enable all the required Apache modules and the newly added configuration by running the
commands below:
sudo a2enconf owncloud
sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod env
sudo a2enmod dir
sudo a2enmod mime

For the changes to come into effect restart the Apache webserver.
$ sudo systemctl restart apache2

Finalizing the OwnCloud Installation in Ubuntu


With all the necessary configurations finalized, the only part remaining is to install OwnCloud on a browser.
So head out to your browser and type in your server’s address followed by the /owncloud suffix.
http://server-IP/ownlcloud

© New Horizon Institute of Technology and Management www.nhitm.ac.in 5 | Page


Cloud Computing Lab Course Code: CSL 605 Lab Manual

© New Horizon Institute of Technology and Management www.nhitm.ac.in 6 | Page


Cloud Computing Lab Course Code: CSL 605 Lab Manual

[8] This is ownCloud main page. It's possible to use ownCloud as cloud storage.

© New Horizon Institute of Technology and Management www.nhitm.ac.in 7 | Page


Cloud Computing Lab Course Code: CSL 605 Lab Manual

Ref :Ubuntu 16.04 LTS : Install ownCloud : Server World (server-world.info)

Install ownCloud on Ubuntu 20.04 :: ownCloud Documentation

Setup ownCloud on Ubuntu 20.04 | 18.04 with Nginx and Let’s Encrypt - Website for
Students

How to install Owncloud on Ubuntu 20.04? - Linux Windows and android Tutorials
(osradar.com)

How to Install OwnCloud on Ubuntu? - LinuxForDevices

https://www.tecmint.com/install-owncloud-on-ubuntu/

© New Horizon Institute of Technology and Management www.nhitm.ac.in 8 | Page


Cloud Computing Lab Course Code: CSL 605 Lab Manual
Conclusion:

Experiment Rubric:

Signature of
Evaluation Criteria Marks
Instructor with Date
Lab Performance
Topic Knowledge
Task Conclusion
Attainment Level (Out of 3)

© New Horizon Institute of Technology and Management www.nhitm.ac.in 9 | Page

You might also like