User Tools

Site Tools


If you want to send us your comments, please do so. Thanks
More on comments

Owncloud manual installation

Nextcloud is an open fork of Owncloud


  • Warning: The data directory on the server is exclusive to ownCloud and must not be modified manually. So do not add files nor directories manually. If you do the files will not show up
  • Remark: Setting up Owncloud with mySQL / MariaDB can be a hassle. We did not succecd so far
  • Remark: Autosync is not possible as far as we can tell
  • Read the instructions on the ownCloud manual installation page
  • On HTTP servers other than Apache it is recommended to install ownCloud outside of the document root


  • Download Owncloud from the download page
  • Download the sha256 file and compare the checksum in this file and the checksum calculated from the zip file: sha256sums owncloud-complete-*.zip


Do not put the previous config/config.php file back. Update it later

Database issues

After reinstalling we got:

SQLite wordt gebruikt als database.
Voor grotere installaties adviseren we een andere database engine te kiezen.
Vooral wanneer de desktop client wordt gebruik voor bestandssynchronisatie wordt gebruik van sqlite afgeraden.

Why this is in Dutch we do not know. Our computer is set to English. Also do we not know why we got the message in the first place since we removed sqlite3 as much as possible and installed MariaDB 10.3

As root do
MariaDB's systemd service will start at boot after

systemctl enable mariadb.service

MariaDB's systemd service is started by with

systemctl start mariadb.service

The status of MariaDB's systemd service

systemctl status mariadb.service

We guess we have to set up a database beforehand. But then, how does Owncloud know the username and password? We found this documentation on this issue



Owncloud Lighttpd configuration
Add to /etc/lighttpd/external.conf :

# Owncloud
#Disable access to data folder:
$HTTP["url"] =~ "^/owncloud/data/" {
        url.access-deny = ("")

#Disable directory listing:
$HTTP["url"] =~ "^/owncloud($|/)" {
        dir-listing.activate = "disable"
# Finish Owncloud

Restart lighttpd

systemctl restart lighttpd
systemctl restart lighttpd.service


  • Make sure PHP 7.2, 7.3 or 7.4 is installed. On Debian 10 Buster PHP 7.3 is the default so we use it
  • In a terminal run php -m | less and check if all the items listed in PHP Extensions section of the Owncloud intallation manual are present
  • Make sure one of the database extensions is installed:
    • pdo_mysql (MySQL & MariaDB)
    • pgsql (PostgreSQL (Version 9.0 or above is needed))
  • In a terminal run php -m | less and check if these items from the Optional section are installed:
    • Bzip2 (Install php7.3-bz. Required for extraction of applications)
    • Fileinfo (Highly recommended, as it enhances file analysis performance)
    • Mcrypt (It is not in the Debian repository. Installing this can be a challange. Increases file encryption performance)
    • OpenSSL (Required for accessing HTTPS resources)
    • imagick (We do not need this. If you need it install php7.3-imagick. Required for creating and modifying images and preview thumbnails)
  • Check if you need to install any of the other items in the Prerequisites section

Trusted domains

Add all the domains and / or IP addresses which need to have access to the 'trusted_domains' ⇒ section in owncloud/config/config.php

Change the database type

Change from sqlite3 to MySQL or MariaDB
We got stuck on the run the conversion part. It is not clear how to configure the command
Work in progress


  • Install the ownCloud app
  • If it is not installed install Termux on your Android device
    • In Termux run ip addr to see which IP address your Android device has: TheIPaddressOfYourAndroidDevice
  • In /etc/nftables.conf of the ownCloud server set something like
tcp dport { 80 }  ip saddr TheIPaddressOfYourAndroidDevice accept; # Some comment
tcp dport { 443 } ip saddr TheIPaddressOfYourAndroidDevice accept; # Some comment
  • If you run a firewall on your Android device make the appropriate settings for it
  • From the ownCloud app on the Android device login to the server
  • Configure the ownCloud settings on the Android device to your needs


  1. Files put in owncloud/data do not appear in the ownCloud webinterface nor in the Android app
    • The data directory on the server is exclusive to ownCloud and must not be modified manually. See Debugging sync issues

Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

Privacy statement
Bugs statement
Copyright © : 2014 - 2022 and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
owncloud_installation.txt · Last modified: 08-06-2021 17:00 by wim