Easy methods to Set up OwnCloud on Ubuntu 18.04

OwnCloud is a number one open-source file sharing and cloud collaboration platform whose companies and functionalities are much like these provided by DropBox and Google Drive. Nonetheless, in contrast to Dropbox, OwnCloud doesn’t have the datacenter capability to retailer hosted recordsdata. Nonetheless, you’ll be able to nonetheless share recordsdata akin to paperwork, photos, and movies to say a couple of and entry them throughout a number of units akin to smartphones, tablets, and PCs.

On this article, you’ll discover ways to set up OwnCloud on Ubuntu 18.04 and newer variations.

Step 1: Replace Ubuntu System Packages

Earlier than getting began, replace the system packages and repositories utilizing the next apt command.

$ sudo apt replace -y && sudo apt improve -y

Update Ubuntu System Packages

Replace Ubuntu System Packages

Step 2: Set up Apache and PHP 7.2 in Ubuntu

OwnCloud is constructed on PHP and is usually accessed through an online interface. Because of this, we’re going to set up Apache internet server to serve Owncloud recordsdata in addition to PHP 7.2 and extra PHP modules vital for OwnCloud to operate easily.

$ sudo apt set up apache2 libapache2-mod-php7.2 openssl php-imagick php7.2-common php7.2-curl php7.2-gd php7.2-imap php7.2-intl php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-pgsql php-smbclient php-ssh2 php7.2-sqlite3 php7.2-xml php7.2-zip

Install Apache and PHP in Ubuntu

Set up Apache and PHP in Ubuntu

As soon as the set up is full you’ll be able to confirm if Apache is put in by working the dpkg command.

$ sudo dpkg -l apache

From the output we are able to see that we’ve put in Apache model 2.4.29.

Check Apache Version in Ubuntu

Examine Apache Model in Ubuntu

To start out and allow Apache to run on boot, run the instructions.

$ sudo systemctl begin apache2
$ sudo systemctl allow apache2

Now head over to your browser and kind in your server’s IP deal with within the URL bar as proven:

http://server-IP

You must get a webpage beneath exhibiting that Apache is put in and working.

Verify Apache Page in Ubuntu

Confirm Apache Web page in Ubuntu

To examine if PHP is put in.

$ php -v

Check PHP Version in Ubuntu

Examine PHP Model in Ubuntu

Step 3: Set up MariaDB in Ubuntu

MariaDB is a well-liked open supply database server that’s extensively utilized by builders, database fans and in addition in manufacturing environments. It’s a fork of MySQL and has been most well-liked to MySQL for the reason that takeover of MySQL by Oracle.

To put in MariaDB run.

$ sudo apt set up mariadb-server

Install MariaDB in Ubuntu

Set up MariaDB in Ubuntu

By default, MariaDB just isn’t secured and is liable to safety breaches. We, due to this fact, must carry out extra steps to harden the MariaDB server.

To get began with securing your MySQL server, run the command:

$ sudo mysql_secure_installation

Hit ENTER when prompted for the basis password and press ‘Y’ to set the basis password.

Set MySQL Password in Ubuntu

Set MySQL Password in Ubuntu

For the remaining prompts, merely kind ‘Y’ and hit ENTER.

Secure MySQL in Ubuntu

Safe MySQL in Ubuntu

Your MariaDB server is now secured to a good degree.

Step 4: Create a OwnCloud Database

We have to create a database for Owncloud to retailer recordsdata throughout and after set up. So log in to MariaDB.

$ sudo mysql -u root -p

Run the instructions beneath:

MariaDB [(none)]> CREATE DATABASE owncloud_db;
MariaDB [(none)]> GRANT ALL ON owncloud_db.* TO ‘owncloud_user’@’localhost’ IDENTIFIED BY ‘[email protected]’;
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

Create OwnCloud Database in Ubuntu

Create OwnCloud Database in Ubuntu

Step 5: Obtain OwnCloud in Ubuntu

After creating the database, now obtain the OwnCloud zipped file utilizing the next wget command.

$ sudo wget https://obtain.owncloud.org/group/owncloud-10.4.0.zip

As soon as downloaded, unzip the zipped bundle to the /var/www/ listing.

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

Step 6: Configure Apache for OwnCloud

On this step, we’re going to configure Apache to serve OwnCloud’s recordsdata. To do this, we’re going to create a configuration file for Owncloud as proven.

$ sudo vim /and so forth/apache2/conf-available/owncloud.conf

Add the configuration beneath.

Alias /owncloud “/var/www/owncloud/”

<Listing /var/www/owncloud/>
Choices +FollowSymlinks
AllowOverride All

<IfModule mod_dav.c>
Dav off
</IfModule>

SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud

</Listing>

Save and shut the file.

Subsequent, it is advisable to allow all of the required Apache modules and the newly added configuration by working the instructions beneath:

$ sudo a2enconf owncloud
$ sudo a2enmod rewrite
$ sudo a2enmod headers
$ sudo a2enmod env
$ sudo a2enmod dir
$ sudo a2enmod mime

For the modifications to return into impact restart Apache internet server.

$ sudo systemctl restart apache2

Step 7: Finalizing the OwnCloud Set up in Ubuntu

With all the mandatory configurations finalized, the one half remaining is to put in OwnCloud on a browser. So head out to your browser and kind in your server’s deal with adopted by the /owncloud suffix.

http://server-IP/ownlcloud

You’ll be offered with an online web page much like the one beneath.

Create OwnCloud Admin Account

Create OwnCloud Admin Account

Just under, click on on ‘Storage and database’. Choose ‘MySQL / MariaDB’ below the ‘configure the database’ part and fill within the database credentials that you simply outlined while creating the database for OwnCloud i.e database consumer, password of the database consumer, & database title.

Add OwnCloud Database Settings

Add OwnCloud Database Settings

Lastly, click on ‘End setup’ to wind up establishing Owncloud.

Finish OwnCloud Setup

End OwnCloud Setup

This takes you to the login display screen as proven. Enter the username and password outlined earlier and hit ENTER.

OwnCloud Admin Login

OwnCloud Admin Login

A notification can be offered indicating different avenues that you would be able to entry OwnCloud from i.e iOS, Android & desktop App.

OwnCloud Supported Platforms

OwnCloud Supported Platforms

Shut the pop-up to entry the dashboard as proven:

OwnCloud Dashboard

OwnCloud Dashboard

And that’s it, guys! We now have efficiently put in the OwnCloud file sharing platform on Ubuntu 18.04.

Supply

Germany Devoted Server

Leave a Reply