How To Install OwnCloud On Ubuntu 18.04

install-owncloud-on-ubuntu-18.04

How To Install OwnCloud On Ubuntu 18.04

Posted on |
Install-OwnCloud-On-Ubuntu-18.04
Install OwnCloud On Ubuntu 18.04

Are you worried about the increasing security breaches on the Internet? Nowadays, it is pretty common to read about information security breaches from the companies that handle vital user information on the Internet. And the sad part is we cannot even take a step forward to stop those security breaches. It makes people wonder whether it is necessary to trust these giant companies?

The problem with these companies is that they do not take the security breaches seriously and their user handling of the files and essential company secrets are at least questionable.

Dataservermarket helps the companies and advertisers to make the company reach the top-most position on the Google Search Engine. And yes, you do not have to worry about security breaches as Dataservermarket takes the security issues seriously.

Moreover, large-scale organizations and even small startups prefer having their private cloud infrastructure without worrying about leaked information. At the software position, ownCloud is one such emerging solution.

Dataservermarket will help you understand the step-by-step process of install ownCloud on Ubuntu 18.04. However, before diving into the article, let’s first know about the concept of ownCloud setup and the pre-requisites of install ownCloud.

What is ownCloud setup?

ownCloud setup is an open-source file-sharing server and a collaboration platform that stores your personal content such as documents and pictures in one centralized location. The install ownCloud allows you to take control of the content and security by not just relying on third-party hosting services such as Dropbox.

Dataservermarket wants to walk through the install ownCloud server that started. However, installing ownCloud on Ubuntu is a bit different from other versions. So, let’s see how to install your ownCloud server on Ubuntu 18.04. The process isn’t challenging, especially if you know the pre-requisites of your ownCloud setup.

Pre-requisites for installing ownCloud on Ubuntu 18.04:

Dataservermarket suggests the following pre-requisites for installing ownCloud setup:

1. A firewall and sudo user on your server:

You can construct a user with sudo rights and set up a primary firewall system by install ownCloud on the Ubuntu Server 18.04.

2. A LAMP Stack:

ownCloud setup requires a PHP, a database, and a webserver to function correctly. Setting up a LAMP Stack server (Linux, Apache, MySQL, and PHP) fulfills all the requirements. For that, you need to install ownCloud and configure the LAMP stack server. The PHP packages are one of the most significant differences between install ownCloud on Ubuntu 18.04 and 16.04.

3. An SSL Certificate:

Setting up an SSL Certificate depends on whether or not you have a domain name.

  • If you have a domain name:

The most straightforward way to secure your site is with any trusted domain partner. Dataservermarket provides SSL Certificates with trusted hosting sites.

  • If you do not have a domain name:

You may self-sign the certificate or use the configuration for personal use or testing. It provides similar encryption but without domain validation.

Dataservermarket will help you to purchase domain names if you are planning.

4. Latest version of ownCloud setup:

Of course, you will need the latest version of ownCloud setup, which is possible with the wget URL. You need to administer the following command to get the latest install ownCloud version:

wget https://download.owncloud.org/community/owncloud-10.0.8.zip

Step by step install ownCloud on Ubuntu 18.04 by Dataservermarket:

Dataservermarket has given the step-by-step procedure of install ownCloud on Ubuntu 18.04, which is as follows:

Step 1: Installing dependencies:

The very foremost stage is to install the essential PHP dependencies. However, the process can be tricky. You first need to figure out which PHP version is installed on your PC. To know this, issue the command php -v. Generally, every PHP version must be 7.2, and make sure that all of our PHP modules are 7.2. For that, we will issue the command as:

sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-apcu php7.2-smbclient php7.2-ldap php7.2-redis php7.2-gd php7.2-xml php7.2-intl php7.2-json php7.2-imagick php7.2-mysql php7.2-cli php7.2-mcrypt php7.2-ldap php7.2-zip php7.2-curl

You may notice that you cannot install some of the modules. To resolve, delete those modules from the command mentioned above. Dataservermarket suggests you pay attention to the command’s output and go accordingly.

Step 2: Configure PHP:

The next step is to configure PHP. There are only two options left to deal with the issue. For that, you need to issue the command sudo nano /etc/php/7.2/apache2/php.ini and adjust the following parameters:

  • memory_limit =
  • date.timezone =

Ensure that the memory_limit option is not less than 256M and date. timezone option is set according to your location.

Save and close the file. Restart Apache with the following command:

sudo systemctl restart apache2

Step 3: Creating the database:

The following line of step is creating the database. For that, you need to issue the following command:

sudo mysql -u root -p

First, you will be prompted for the sudo password followed by MySQL root user password. Once you get the prompt for database command, insert the following command to create a database:

CREATE DATABASE ownCloud setup;

Next, create another new database user with the following command:

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

Where “PASSWORD” is a strong password for the user.

Allocate the new user permissions for the new database by issuing the following command:

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

Where “PASSWORD” is a strong password for the user.

Exit the database shell and flush the privileges by issuing the following command:

FLUSH PRIVILEGES;

EXIT;

Step 4: Unpack and Move the ownCloud setup file:

The subsequent step is to unpack and move the ownCloud setup file to give proper permissions. Let’s assume you downloaded the file to the home directory. Keeping that in mind, everything is done by issuing the following commands:

cd ~/

unzip unzip owncloud-*.zip

sudo mv owncloud /var/www/html/

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

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

Step 5: Configure Apache:

We must configure Apache to get aware of our new install ownCloud site. For that, you need to create a conf file by issuing the following command:

sudo nano /etc/apache2/sites-available/owncloud.conf

Dataservermarket describes the content of the file as follows:

ServerAdmin admin@example.com

DocumentRoot /var/www/html/owncloud/

ServerName example.com

ServerAlias www.example.com

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

Options +FollowSymlinks

AllowOverride All

Require all granted

Dav off

SetEnv HOME /var/www/html/owncloud

SetEnv HTTP_HOME /var/www/html/owncloud

ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined

If you don’t need domains or install ownCloud IP address, you may comment out these lines where you can see www.example.com.

Save and close the file.

The following step is to enable the necessary modules and the site. These steps are handled by issuing the following commands:

sudo a2ensite owncloud.conf

sudo a2enmod rewrite

sudo a2enmod headers

sudo a2enmod env

sudo a2enmod dir

sudo a2enmod mime

Dataservermarket suggests that some of the above modules will already be enabled.

Restart the Apache with the following command:

sudo systemctl restart apache2

Step 6: The Final Step:

At this point, you need to open up a browser and point to http://SERVER_IP/owncloud. You should be greeted with a popup of the install ownCloud. Here you need to create the admin user and enter the information for the database.

Click Finish Setup and rest you are relieved, as by install ownCloud will take care of everything. You will eventually be prompted to log in with the admin user you just created.

Congratulations! You have install ownCloud– the best on-cloud server, probably well for keeping the company’s information intact. You many configure further to meet the organization’s needs.

Frequently Asked Questions (FAQs) to install ownCloud on Ubuntu 18.04 by Dataservermarket:

Dataservermarket has answered a few frequently asked questions that people would generally have while install ownCloud on Ubuntu 18.04:

1. What are the advantages of install ownCloud being open-source software?

As by install ownCloud, it is easy to audit the code to ensure it responds to what you need. It also means that install ownCloud is more adaptable and flexible than other closed-source software. You can write the extensions quickly and even modify the core codes. The transparency in the software enables peer view, leading to efficient coding, good performance, and reduced costs.

2. For which deployment scenarios by install ownCloud is suitable?

Install ownCloud fits the number of scenarios and needs. For instance,

  • It improves the collaboration within your organization
  • You may find, edit, and share documents on mobile devices at home or in the office.
  • You may seamlessly collaborate in real-time and remotely.
  • You may even share data with external contacts with selected files and folders.
  • The software assures safe compliance that meets even the strictest regulations.
  • You may send links instead of attachments to unburden the mail server.
  • You can integrate and adapt the changes as per your requirements with install ownCloud.

Wrapping up:

Install ownCloud can replicate the capabilities of third-party cloud storage services. You can share content externally between the users with the links and URLs. The most significant advantage of install ownCloud is that you store and manage the information totally without any third-party interference.

We hope the detailed guide on install ownCloud on Ubuntu 18.04 presented by Dataservermarket helped you.

Leave a Reply

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