How to enable SSL on Owncloud 10 installed on Debian 9

Debian Tutorial – On my previous tutorial, I have shown how to install Owncloud 10 on Debian 9 Stretch. By default, SSL is not enabled on the Owncloud. If we want to enable SSL on Owncloud 10, we need to configure some things first. Enabling SSL on Owncloud 10 is pretty easy and it will only took few seconds to complete. But first, make sure you have a running Owncloud 10 on your Debian Server. Please check the link above if you wish to install your first Owncloud server on Debian 9.

How to enable SSL on Owncloud 10

This tutorial has been verified to work with Debian 9 Stretch. Any Debian 9 derivatives should also works. Open Terminal or connect to Debian 9 via SSH and execute these commands below:

a2enmod ssl
a2ensite default-ssl
systemctl reload apache2


root@debian-vm:/home/dhani# a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
  systemctl restart apache2

root@debian-vm:/home/dhani# a2ensite default-ssl
Enabling site default-ssl.
To activate the new configuration, you need to run:
  systemctl reload apache2

root@debian-vm:/home/dhani# systemctl reload apache
Failed to reload apache.service: Unit apache.service not found.
root@debian-vm:/home/dhani# systemctl reload apache2

Now open your Owncloud page using https protocol. For example: Thank you

Be the first to comment

Leave a Reply