How to Install OwnCloud on Ubuntu 18.04 LTS

OwnCloud is a main open-source document sharing and cloud joint effort stage whose administrations and functionalities are like those offered by DropBox and Google Drive. Nonetheless, dissimilar to Dropbox, OwnCloud doesn’t have the datacenter ability to store facilitated documents. In any case, you can even now share records, for example, archives, pictures, and recordings to specify a couple and access them across different gadgets, for example, cell phones, tablets, and PCs.

 

In this post, We will install and configure OwnCloud on ubuntu 18.04 LTS.

 

Step 1: Update the System

You need to update ubuntu repository and upgrade the installed packages by using the following command.

sudo apt-get update 
sudo apt-get upgrade -y

 

Step 2: Installing Apache2

You need to use the following command to install apache2 packages on ubuntu.

sudo apt-get install apache2 -y

Step 3: UFW Rules

 

Here you need to open the port 80 in your firewall also, If you have enabled the ufw firewall So then use the following command for that.

 

sudo ufw status 
sudo ufw allow 80

 

Test the apache2 web server default page by using the given URL :–

 

http://localhost or http://IP_Address

 

After testing the apache2 test page, You need to remove the index.html, Use the following command.

 

sudo rm  /var/www/html/index.html

Step 4: Install PHP

To install the PHP package and PHP modules, You need to execute the following commands.

sudo apt-get install php php-imagick php7.2-common libapache2-mod-php7.2 openssl php7.2-intl php7.2-json php7.2-curl php7.2-gd php7.2-imap 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 -y

After installation of PHP, verify the PHP modules by using the following commands.

php -m

 

You should get output like this.

Step 5: Install MariaDB

You need to install MariaDB database server, Use the following command for the same, Take login as root to avoid any of error.

sudo -i
apt-get install mariadb-server -y

After installation of the MariaDB, You need to secure it, Use the following commands.

mysql_secure_installation

 On this step, You need press enter button to reset or update the MariaDB database server.

 Press Y button to continue and save new password to login MariaDB access.

Remove the antonymous users from the MariaDB server Press Y for that.

Disable remotely login in MariaDB server Press Y to enable it.

Now you will be asked for the remove the test database from MariaDB server Press Y button for the same.

In the final step, You need to update the tables privileges by pressing the Y button.

 

After this you need to create Database, User and update the permission for OwnCloud.

To login in MariaDB server, Use the given command.

mysql -u root -p

Execute the given mysql query one by one.

CREATE DATABASE owncloud;
GRANT ALL ON owncloud.* TO 'owncloud_user'@'localhost' IDENTIFIED BY 'mypassword';
FLUSH PRIVILEGES;
EXIT

You should get output like this.

Step 6: Download OwnCloud

You need to download the OwnCloud file from the server by using the following commands.

 

cd /tmp/
wget https://download.owncloud.org/community/owncloud-complete-20201216.zip
apt-get install unzip -y
unzip owncloud-* -d /var/www/html/
chown -R www-data:www-data /var/www/html
chmod -R 755 /var/www/html/
systemctl restart apache2

Step 7: Setup OwnCloud 

Now we are ready to create new username and password to access the OwnCloud web panel as well as database credentials also.

 

http://localhost/owncloud/index.php or http://ip_address/owncloud/index.php

 

If everything okay So then you should get the web page like this.

 

 In this form you need to set username and password to manager OwnCloud Panel, and You need to provide the MariaDB’s database, username and password to connect OwnCloud with database server.

After that you should asked to login in OwnCloud web panel, Use your username and password to login OwnCloud panel.

You will get your first webpage of OwnCloud for the OwnCloud Android app also for Desktop, IOS app and Android App also.

Finally we have success fly installed the OwnCloud Storage solution.

 

Conclusion


we have figured out how to introduce and arrange ownCloud on your Ubuntu 18.04 machine.


How to Install OwnCloud on Ubuntu 18.04 LTS

One thought on “How to Install OwnCloud on Ubuntu 18.04 LTS

Leave a Reply

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

Scroll to top