How to Install Own Cloud On an ubuntu 18.04 Dedicated Server or VPS.

Install Own Cloud On an ubuntu 18.04

How to Install Own Cloud On an ubuntu 18.04 Dedicated Server or VPS.

Posted on |
own-cloud-on-ubuntu-18.04

Introduction

In this blog, I will show you how to create cloud server. You can create your own self-hosted cloud storage services on the DataserverMarket by installing the open-source software – OwnCloud on your Ubuntu 18.04 server. OwnCloud provides similar functionalities like DropBox, OneDrive and Google Drive.

Using the ubuntu cloud storage gives you access to your files from anywhere that has an internet connection. In the event of a hard drive failure or other hardware malfunction, you can access your files on the cloud. If you learn how to create your own cloud storage, it acts as a backup solution for your local storage on physical drives.

Advantages of Own Cloud Server

  1. Cost: Purchasing physical storage can be expensive. Without the need for hardware, cloud storage is exceptionally cheaper per GB than using external drives.  Therefore learning how to install ubuntu server is essential.
  2. Accessibility: Using the personal cloud server ubuntu for server for storage gives you access to your files from anywhere that has an internet connection.
  3. Recovery: In the event of a hard drive failure or other hardware malfunction, if you build your own cloud server you can access your files on the cloud. If you build your own cloud server windows.  Install owncloud server acts as a backup solution for your local storage on physical drives.
  4. Syncing and Updating: When you are working with cloud storage, every time you make changes to a file it will be synced and updated across all of your devices that you access the cloud from. Acquiring knowledge of how to make own cloud storage can thus be helpful.
  5. Security: Own cloud storage providers add additional layers of security to their services. Since there are many people with files stored on the cloud, these providers go to added lengths to make sure your files don’t get accessed by someone who shouldn’t.

OwnCloud offers a great solution for protecting your data on the cloud while making collaboration easier. In this guide, we will show you how to integrate a self-hosted OwnCloud storage service on your Ubuntu 18.04 server that is, how to make cloud server.

Process

Step 1: Install Apache: How to install own cloud on windows.

To know how to make a cloud server, you need to install Apache on your Ubuntu Server for OwnCloud to work, if you haven’t done so, type the command below;

$ sudo apt install apache2

Next, disable directory listing on your Apache:

$ a2dismod autoindex

Enable the following Apache modules for OwnCloud to work correctly:

$ sudo a2enmod rewrite

$ sudo a2enmod headers

$ sudo a2enmod env

$ sudo a2enmod dir

$ sudo a2enmod mime

Restart Apache for the changes to take place:

$ sudo systemctl restart apache2

Step 2: Install MariaDB Server

Then install the MariaDB server by running the command below:

$ sudo apt-get install mariadb-server mariadb-client

By default, MariaDB installation is not secure; we need to run the command below to make it safe:

$ sudo mysql_secure_installation

This will allow us to;

  • Set a strong password for the root user of our MariaDB,
  • remove anonymous users
  • disallow root login and
  • remove test databases

Then login to your MariaDB server using the command below to create a database:

$ sudo mysql -u root -p

Enter your password when prompted.

Create OwnCloud database user and password by typing the commands below. Replace ‘PASSWORD’ with a strong value.

CREATE DATABASE owncloud;

CREATE USER ‘oc_user’@’localhost’ IDENTIFIED BY ‘PASSWORD’;

GRANT ALL ON owncloud.* TO ‘oc_user’@’localhost’ IDENTIFIED BY ‘PASSWORD’ WITH GRANT OPTION;

FLUSH PRIVILEGES;

EXIT;

Step 3: Install PHP

OwnCloud supports PHP 7.1 so we need to install it using the commands below:

$ sudo apt-get install software-properties-common

$ sudo add-apt-repository ppa:ondrej/php

$ sudo apt update

$ sudo apt install php7.1

Then we need to install all the related PHP modules using the command below:

$ sudo apt-get install php7.1-cli php7.1-common php7.1-mbstring php7.1-gd php7.1-intl php7.1-xml php7.1-mysql php7.1-zip php7.1-curl php7.1-xmlrpc

The default PHP settings may limit the way OwnCloud works, so we need to adjust some default values.

Open the default ‘php.ini’ file by typing the command below:

$ sudo nano /etc/php/7.1/apache2/php.ini

Find the settings below and change their values to correspond the ones we have at the bottom:

file_uploads = On

allow_url_fopen = On

memory_limit = 256M

upload_max_file_size = 100M

Then press CTRL+X, Y and Enter to save the changes.

Restart Apache:

$ sudo systemctl restart apache2

Step 4: Download the latest OwnCloud release:

CD to the ‘tmp’ directory and download the latest release of Owncloud using the commands below:

$ cd /tmp

$ wget https://download.owncloud.org/community/owncloud-10.0.3.zip

Then, unzip ‘owncloud-10.0.3.zip’ file to the current directory:

$ unzip owncloud-10.0.3.zip

Move the files to a new owncloud directory under the root folder of your website:

$ sudo mv owncloud /var/www/html/owncloud/

Step 5: Set directory and file permissions

In order for Owncloud to function correctly, we need to set the following directory permissions/ownership:

$ sudo chown -R www-data:www-data /var/www/html/owncloud/

$ sudo chmod -R 755 /var/www/html/owncloud/

Step 6: Finalize the Installation

Visit your server URL and to finalize the installation. In our case, we will visit http://ipadress/owncloud

Enter your preferred admin username and password as shown below:

Install Own Cloud On an ubuntu 18.04

Then configure the database by entering the database name, username, and password values that you created above as shown below:

Install Own Cloud On an ubuntu 18.04

Finally, click on ‘Finish Setup’ at the bottom of the screen.

You have thus learned how to create a cloud server. Your Owncloud instance is now set up and you can log in to the admin panel and start uploading files. I’ve thus shown how to create a cloud server windows.

Install Own Cloud On an ubuntu 18.04

Conclusion

That’s it when it comes to installing the OwnCloud self-hosted service. Remember, you can create different directories/folders to organize your files better. Owncloud allows you to share files with your team especially if you are working on a project. I hope you enjoyed reading the guide.

Leave a Reply

Your email address will not be published. Required fields are marked *