How To Install OwnCloud On Ubuntu 18.04

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.

com/install-owncloud-on-ubuntu/

 

Apple-iPhone-13-
Pro Max-Super-Retina-
Comprar >
$44099
>
>

$39689.1

is a leading open-source �le sharing and cloud collaboration platform whose services and functionalities
are similar to those offered by and . However, unlike , does not have the
datacenter capacity to store hosted �les. Nevertheless, you can still share �les such as documents, images, and
videos to mention a few, and access them across multiple devices such as smartphones, tablets, and PCs.

In this article, you will learn how to install on and newer versions.

Before getting started, update the system packages and repositories using the following apt command.

$ sudo apt update -y && sudo apt upgrade -y

Anótate un Gol con Enviamanía


dhlproductosyservicios.com

1 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

is built on and is typically accessed via a web interface. For this reason, we are going to install
webserver to serve �les as well as and additional PHP modules necessary for
to function smoothly.

$ sudo apt install apache2 libapache2-mod-php7.2 openssl php-imagick php7.2-common php7.2-curl ph

Once the installation is complete you can verify if is installed by running the dpkg command.

$ sudo dpkg -l apache2

From the output, we can see that we have installed version .

2 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

To start and enable to run on boot, run the commands.

$ sudo systemctl start apache2


$ sudo systemctl enable apache2

Now head over to your browser and type in your server’s IP address in the URL bar as shown:

http://server-IP

You should get a webpage below showing that is installed and running.

To check if is installed.

3 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

$ php -v

Estudia biotecnología en ASUCQ

is a popular open-source database server that is widely used by developers, database enthusiasts, and
also in production environments. It’s a fork of and has been preferred to since the takeover of
by .

To install run.

$ sudo apt install mariadb-server

4 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

By default, is not secured and is prone to security breaches. We, therefore, need to perform additional steps
to harden the MariaDB server.

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

$ sudo mysql_secure_installation

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

Vida Universitaria Bilingüe, que mezcla


actividades en Inglés y en Español.

For the remaining prompts, simply type ‘Y’ and hit .

5 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

Your MariaDB server is now secured to a decent level.

We need to create a database for to store �les during and after installation. So log in to .

$ sudo mysql -u root -p

Run the commands below:

MariaDB [(none)]> CREATE DATABASE owncloud_db;


MariaDB [(none)]> GRANT ALL ON owncloud_db.* TO 'owncloud_user'@'localhost' IDENTIFIED BY '
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

6 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

After creating the database, now download the OwnCloud zipped �le using the following wget command.

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

Vida Universitaria Bilingüe, que mezcla


actividades en Inglés y en Español.

Once downloaded, unzip the zipped package to the /var/www/ directory.

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

Then, set permissions.

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


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

In this step, we are going to con�gure to serve OwnCloud’s �les. To do that, we are going to create a
con�guration �le for as shown.

$ sudo vim /etc/apache2/conf-available/owncloud.conf

Add the con�guration below.

Alias /owncloud "/var/www/owncloud/"

7 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

<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 �le.

70% discount on MS O�ce 2019 Keys - ce�i�ed genuine k


with instant delivery

cjs-cdkeys.com

Next, you need to enable all the required Apache modules and the newly added con�guration by running the
commands below:

$ sudo a2enconf owncloud


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

For the changes to come into effect restart the Apache webserver.

$ sudo systemctl restart apache2

8 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

With all the necessary con�gurations �nalized, the only part remaining is to install on a browser. So head
out to your browser and type in your server’s address followed by the /owncloud suf�x.

http://server-IP/owncloud

You will be presented with a web page similar to the one below.

Just below, click on ‘ ’. Select ‘ ’ under the ‘ ’ section


and �ll in the database credentials that you de�ned whilst creating the database for OwnCloud i.e database user,
password of the database user, & database name.

9 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

70% discount on MS O�ce 2019 Keys - ce�i�ed genuine k


with instant delivery

cjs-cdkeys.com

Finally, click ‘ ’ to wind up setting up Owncloud.

This takes you to the login screen as shown. Input the username and password de�ned earlier and hit ENTER.

10 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

A noti�cation will be presented indicating other avenues that you can access OwnCloud from i.e iOS, Android &
desktop App.

Close the pop-up to access the dashboard as shown:

11 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

And that’s it, guys! We have successfully installed the �le sharing platform on .

 ,


If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts?
do ask for help in the comments section.

Apple-iPhone-13-
Pro Max-Super-Retina-
Comprar >
$44099
>
>

$39689.1

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles,
Guides and Books on the web. Millions of people visit TecMint! to search or browse the
thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of
appreciation.

12 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

13 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

14 de 24 31/08/22, 20:04
How to Install OwnCloud on Ubuntu 18.04 https://www.tecmint.com/install-owncloud-on-ubuntu/

15 de 24 31/08/22, 20:04

You might also like