Install Owncloud 9.1 Server on Ubuntu 16.04 with auto update feature

December 25, 2016 | By | 1 Reply More

This tutorial is going to show you how to install Owncloud Server 9.1 on Ubuntu 16.04 with auto update feature. Many end user that want to have their own Owncloud server and don’t want to be confused with future updates. Owncloud provide special repository for various Linux distributions such as Ubuntu where the auto update is enabled by default. We don’t have to worry about upgrading Owncloud manually. So basically, we will install Owncloud from a repository.

Steps to install Owncloud Server with Auto update on Ubuntu 16.04

First, make sure you have an Ubuntu 16.04 up and running. I recommend to use Ubuntu 16.04 Server installed locally, as Virtual Machine guest or on the Cloud.

Step 1. Install LAMP Server

I recommend to install LAMP Server prior to Owncloud installation. You can read this tutorial to install LAMP server on Ubuntu 16.04.

Step 2. Install the key

Step 2. Add the repository

Step 3. Update system and install Owncloud

Output:

dhani@owncloud:~$ sudo apt-get install owncloud
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libc-client2007e libcurl3 libmcrypt4 libpq5 libzip4 mlock
owncloud-deps-php7.0 owncloud-files php7.0-curl php7.0-gd php7.0-imap
php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-pgsql php7.0-sqlite3
php7.0-xml php7.0-zip
Suggested packages:
uw-mailutils libmcrypt-dev mcrypt php7.0-ldap php-smbclient | libsmbclient
Recommended packages:
exim4 | mail-transport-agent
The following NEW packages will be installed:
libc-client2007e libcurl3 libmcrypt4 libpq5 libzip4 mlock owncloud
owncloud-deps-php7.0 owncloud-files php7.0-curl php7.0-gd php7.0-imap
php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-pgsql php7.0-sqlite3
php7.0-xml php7.0-zip
0 upgraded, 19 newly installed, 0 to remove and 106 not upgraded.
Need to get 26.9 MB of archives.
After this operation, 106 MB of additional disk space will be used.
Do you want to continue? [Y/n]

When completed, open web browser and type the server IP address

http://ip-address/owncloud

Create a new admin user and password. And then configure the data folder, configure the database. I recommend to use MySQL/Mariadb for better performance.

At this point we have successfully installed Owncloud with automatic update feature enabled. If in the future there is a new stable version/update, we can simply use update feature in Ubuntu 16.04. We don’t have to worry about anything else.

Optional Owncloud Tweaking

On a fresh install, you will see the following security warnings on the Admin page.

We want to fix that warning so we have a better Owncloud server performance and security.

  1. Enable Memory Cache using APCu on Owncloud

It is highly recommended to enable memory caching on our Server because this can improve the Owncloud performance significantly. To enable memory caching on Owncloud using APCu, please follow these steps.

Install APCu module

Enable the caching

Open Owncloud config file

Add the following line to the config.php file

‘memcache.local’ => ‘\OC\Memcache\APCu’,

So, the new config.php file should looks like this:

Close and save the file and then restart apache2

2. Enable SSL/Https on Ubuntu 16.04

By default, Owncloud installation use HTTP to access it. For better security, it is recommended to enable the SSL/HTTPS support on Owncloud. Read the tutorial to enable SSL/HTTPS on Ubuntu 16.04.

Thank you for reading this post. I have been tested this tutorial on my system and if there are any issues, please leave us comments and we will fix it.

 

 

Tags: , ,

Category: Ubuntu

Leave a Reply

%d bloggers like this: