OwnCloud is the leading open source cloud file sharing and collaboration platform, services and features of its services and features with DropBox and Google Drive offer similar. However, unlike Dropbox different, OwnCloud no functional data center to store the managed file. However, you can still share files, images and video files, to name a few, and works across multiple devices (such as smart phones, tablet PCs and PC) to access them.
The first step: Updating Ubuntu system packages
Before you begin, use the following command to update the system packages and apt repository.
Step 2: Install Apache and PHP 7.2 in Ubuntu
OwnCloud based on PHP build, usually accessible via the Web interface. Therefore, we will install the Apache Web server to provide documents and other Owncloud PHP 7.2 and PHP modules required for normal operation of OwnCloud.
After the installation is complete, you can verify that Apache is installed by running dpkg command.
From the output you can see that we have the Apache 2.4.29 version installed.
To start and allow Apache to run at startup, run the following command.
Now go to your browser and enter the IP address of the server's URL bar, as shown below:
To give a web page as shown below, display Apache installed and running.
Check that you have PHP installed.
Step 3: Install MariaDB in Ubuntu
To install MariaDB, please run.
By default, MariaDB is insecure, prone to security vulnerabilities. Therefore, we need to perform additional steps to strengthen the MariaDB server.
To start protecting your MySQL server, run the following command:
When you are prompted to enter the root password and press the Enter key, then press the "Y" set the root password.
For the rest of prompt, just type "Y", and then press Enter.
Now, your MariaDB server has been security.
Step Four: Create a database OwnCloud
We need to create a database for the Owncloud, in order to store files in the installation during and after installation. So, log on to MariaDB.
Run the following command:
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> EXIT;
Bye
Step five: Download OwnCloud in Ubuntu
After you create a database, use the following wget command to download now OwnCloud compressed files.
After the download, decompress the compressed to / var / www / directory.
Step 6: Configuring Apache to OwnCloud
In this step, we will configure Apache to provide OwnCloud file. To this end, we will Owncloud create a configuration file, as shown.
Add in the following configurations.
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 necessary Apache modules and configure newly added by running the following command:
In order for the changes to take effect, restart the Apache Web server.
Step Seven: Complete OwnCloud installed in Ubuntu
After completing all the necessary configuration, the only remaining part is installed OwnCloud on the browser. So, go to your browser and enter the address of the server, and then enter / owncloud suffix.
You will see a page similar to the following. In the following, click on the "storage and databases." In the "Database Configuration" section under Select "MySQL / MariaDB", and fill in your database credentials defined when creating the database OwnCloud, namely database user, database user's password, and database name.
Finally, click "Finish Settings" to end Owncloud settings.
This will take you to the login screen as shown. Enter your user name and password previously defined, and then press Enter.
Close the instrument panel to access the pop-up window, as shown below:
OK, so! We have successfully installed on Ubuntu 18.04 OwnCloud file sharing platform.