Feed Rss

Advanced Setup Guide

ownCloud works perfectly out of the box but there are some advanced features you might miss.

First of all: if you haven’t installed ownCloud yet, please read my installation instructions.

1. MySQL Database

By default ownCloud uses a SQLite database System which works quick and well. However if you want to use a MySQL Database with all of its benefits like the advanced user control features, a remote storage of the database itself or the backup and direct editing features, here is a guide on how to set it up:

1.1 Enable MySQL in DSM if you haven’t done already: Control Panel -> Web Services -> Enable MySQL

1.2 To manage the MySQL database system install phpMyAdmin from Package Management -> Available

1.3 The DSM link created during install leads to the phpMyAdmin login page (http://Your.NAS.I.P/phpMyAdmin/) login with user: root password: <empty>

1.4 Click the „Users“ Tab in the top bar and enter a password for all three „root“ accounts (I entered the same for all three so I don’t have to care from where I log in)

1.5 Create an owncloud user. Just click the „Add user“ button and fill in the opening popup like the one below (You’ll need the password later on)

1.6 The phpMyAdmin configuration is done (more information about phpMyAdmin on Synology devices here), now open ownCloud (click the DSM link), click the „Advanced“ link and fill in the db settings just created in phpMyAdmin.

The first two fields are independent, they create the ownCloud admin account.

Do not change the data folder directory.

The rest is filled by the MySQL connection data.

2. LDAP connection

LDAP is a Directory system. The main advantage is that you have to create every user once at the Directory Server so every client uses the data provided by the Directory Server to authorize logins.

2.1 Install the Directory Server via Package Management -> Available

2.2 open it, enable LDAP Server and fill in some domain name (FQDN) and password (e.g. domain.local)

2.3 Create some LDAP user. The user management is very similar to the DSM one. LDAP users can own home directory folders as well. More information about the Synlogy Directory Server can be found in the official user’s guide.

2.4 Enable the php_ldap extension in the DSM at Control Panel -> Web Services -> PHP Settings -> Select PHP Extention

2.5 Login to ownCloud as admin, go to Settings->Apps and enable „LDAP user and group backend“

2.6 In ownCloud go to Settings->Administrator. The LDAP client configuration appears. Fill in the Domain settings like you created them before. The User Login Filter has to be (uid=%uid).

The advanced settings should look like this2.7 After you filled in the LDAP Configuration you can test it. If the Connection couldn’t be established have a look at the ownCloud log below. If it works you can now login to ownCloud with users created at the Directory server.

Not included, yet: Proper WebDAV and CalDAV syncing with iOS devices; Windows Sync client configuration; External Storage support (->Has anyone managed this? I can’t get it to work.)

40 Responses to Advanced Setup Guide

  1. Pingback: ownCloud 4.5.4-016 Synology package | eg-blog

  2. Thanks you for this GREAT documentation !
    It helped me to fix some issues on my Syno.

  3. 2012-12-14 at 08:41 Gueschmid


    hatte Owncloud mal mit MySQL auf der DS laufen. Du solltest noch erwähnen daß man keine wirklich großen Dateien draufkopieren kann (nur bis 10 MB oder so). Lag an einer *.conf die man hätte editieren müssen.

    Vielleicht nimmst du das noch in dein TUT auf.



  4. 2012-12-21 at 22:20 Luke H

    ownCloud Version 4.5.5 is out — lots and lots of bug fixes, can’t wait for the update !! 🙂

    • I am sorry to tell you that I can’t provide the new package before 3rd January. I was looking for this update every day during last week but unfortunately it didn’t arrive in time =(.
      No Christmas present from me this year.
      Better spent your time with your families than your computers, I’ll be back in 2013, I promise ;).

  5. great working making this so smooth….
    I cannot help notice the irony of using Dropbox to make it available to users 😉

    Thx and looking forward to new year update

    Happy New Year all!

  6. 2013-01-05 at 20:48 Macrockdoc

    I just updated ownCloud to Version 4.5.5-017.spk on my Synology DiskStation (DSM 4.1). Now all my contacts are gone… 🙁
    Can you help me in any way?


  7. 2013-01-13 at 10:06

    Hi, any hints how to set up e-mail for this? Sharing by creating a link and forward it to an e-mail address leads to an error that sendmail cannot be found. Would be good if ownCloud could make use of an external SMTP server, but I’m not sure if and how this can be configured…


  8. Hi,

    Any update on this documentation ?
    You wrote you will provide us more great information ;o)

  9. 2013-01-31 at 23:55 bruzzy


    great tutorial! Thanks!

    I set up my owncloud using ldap and it’s working just fine, as well as synchronization with my Android mobile and Thunderbird.

    What I could not get working yet, is sharing calendars between users. When I try to share a calendar from the webinterface (using the share button), there are no users found at all I could share with… I did not create any users in owncloud, the users I would like to share with are only defined in ldap. Did any one get it working? Any idea, what I might miss?


  10. 2013-02-01 at 22:08 bruzzy

    … was just reading in the help and playing around a bit and got it working… yeaha!!!

    Just used the example setting for „user list filter“ and „group filter“ (wasn’t mentioned in your tutorial, you might want to add a few words about this as well):

    User List Filter: The filter to use when a search for users will be executed.
    Example: objectClass=posixAccount
    Group Filter: The filter to use when a search for groups will be executed. In case you do not want to use LDAP groups in ownCloud, leave it empty.
    Example: objectClass=posixGroup“

    Now it’s just working perfect…


  11. 2013-02-01 at 22:12 bruzzy

    And for the completness (and to avoid copy right complains), I copied the last paragraph from here:

  12. Superb guide, but fix the typo in the headline ‚Advanved‘ => ‚Advanced‘.
    Now it looks like you are lisping. 😉

    • 😀 Haven’t noticed that, for real!

      I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno’t mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt! if you can raed tihs forwrad it.

  13. 2013-03-06 at 14:52 Jeffrey

    I was wondering, where are the files that you upload saved, under /web/owncloud/* ? Cause I don’t really feel like exposing my files to the internet that way.

  14. 2013-04-04 at 17:15 JussiL

    To get the local files available in Owncloud running on Synology Diskstation you have to modify the PHP open_basedir. This can be noted from the errors in owncloud.log as it states that the path you’re trying to mount is not within the allowed path.

    This can be done via DSM Control Panel -> Web services -> PHP settings and modifying the PHP open_basedir. Here you should add the „/path/to/your/files“ and remember to use „:“ as separator.

    I didn’t even have to change any rights for the folder I added so I’m not sure if it is fully safe. I’m no big expert on PHP or web-servers.

    Now, I can see my music over my owncloud account but the music player still does not see them. Maybe because of missing UTF-8 locale which I’m installing next.

    • 2013-04-04 at 21:42 JussiL

      I just used the internal Owncloud update to go to the newest version (5.0.3) and it wiped out all user data. By creating first a backup of those, of course, so no data loss.

      But still, a better way to put user data outside the web-folder you can apply the same technique as with the local mounts. Just add the new data path into open_basedir and voilá. Still, I have to confirm from a workmate (who knows more about PHP) if this is a proper way to add rights to PHP.

  15. hello,

    do i need to set all the php settings like these ones?

    and i want to add my files from /volume1/music

    so i add :/volume1/music/*.*

    is that correct?

  16. 2013-04-25 at 20:44 doubleUS

    Just installed ownCloud 5.05 on DSM 4.2 (DS213+). When I login as admin en click on Admin I get the following error:

    Locale not working
    This ownCloud server can’t set system locale to en_US.UTF-8/en_US.UTF8. This means that there might be problems with certain characters in file names. We strongly suggest to install the required packages on your system to support en_US.UTF-8/en_US.UTF8.

    Any idea how to solve this?

    – Wilfred

  17. Hallo Eric,
    ich benutze onwcloud und habe ein Installationsproblem auf meiner DS 213+. Wenn ich Kontakte in owncloud importieren will, soll immer eine Datei uploadimport.json im iexplorer gespeichert oder geöffnet werden. Klickt man auf OK im Uploadmenü von owncloud bricht der Import ab und es kommt eine Fehlermeldung.
    Was mach ich falsch?

  18. Pingback: [OwnCloud] Einrichten auf Synology NAS | Jochen Bachmann

  19. 2013-06-28 at 16:34 Stephan

    Hallo Eric,

    erst einmal vielen Danke für den klasse Job, den Du hier machst!

    Hätte mal eine ergänzende Frage, da ich leider bisher dazu nicht anderswo fündig geworden bin. Hast Du, oder evtl. auch jemand anders, schon den „Owncloud Cronjob“ anstatt des „Ajax Refresh“ einrichtet?

    Ein kleines „HowTo“ dazu wäre echt klasse!

    Gruß Stephan

  20. Pingback: ownCloud auf Synology NAS installieren | Antary

  21. 2013-07-27 at 23:19 noh wann

    vielen Danke für den Artikel.

    Ich habe genaue so installiert. Leider LDAP funktioniert nicht. „The configuration is valid, but the Bind failed. Please check the server settings and credentials“. Ich bin Anfaenger 😐

  22. 2013-07-28 at 14:49 H Limbada


    Thank you for this package. It has made sharing and connecting to my files remotely a breeze.

    Is there a way to mount users home directory to owncloud? I tried the way Jussil suggested above, but for the /volume1/homes I get the below PHP warning in owncloud..

    Can you please help?

    Kind regards


    is_executable(): open_basedir restriction in effect. File(/var/services/homes/file) is not within the allowed path(s): (/etc.defaults:/usr/bin/php:/usr/syno/synoman:/etc:/var/run:/tmp:/var/spool/php:/volume1/@tmp/php:/var/services/web:/var/services/photo:/var/services/blog:/var/services/homes:/volume1/limbada:/volume1/homes) at /volume1/web/owncloud/lib/helper.php#507

  23. 2013-08-17 at 23:50 farsons

    Perfektes Tutorial:

    Kurze Frage:
    Welche Ports müssen auf dem DSL-Router, hinter dem das Synology steht, freigeschaltet werden, für Zugriff von Extern auf:
    1. Owncloud WebOberfläche über https
    2. CALDAV über verschlüsselte Verbindung
    3. CARDDAV über verschlüsselte Verbindung


  24. just getting back to using own cloud (after the disaster that Apple did with Mavericks and droping USB sync for Calendar / Contacts.
    I needed to uninstall earlier version then install latest version. The install looks OK but I see the following error:

    opendir(/volume1/web/owncloud/data//cache/): failed to open dir: No such file or directory at /volume1/web/owncloud/lib/files/storage/local.php#40

    Let me know what I can do.

    Thanks a lot!


  25. Hi !

    Thanks a lot for this great tutorial. One (newbie) question : What is the use of TLS ? and does this option (in owncloud/settings/admin/LDAP Advanced) have to be checked ?
    Default this box is checked (but then it can’t connect to server). When I uncheck it, it works. So I was wondering about the consequences of unchecking it.

    Thanks again.

  26. 1 million for huizen 49 amortization of acquired intangibles and professional
    services revenue increased 26%. 3 million in
    Q4 of fiscal 2006 to $0. Four, we expect non-GAAP diluted earnings per share increased 41% from $0.

  27. This design is spectacular! You most certainly know how to keep a reader amused.
    Between your wit and your videos, I was almost moved to start my own blog (well,
    almost…HaHa!) Great job. I really enjoyed what you had to say, and more than that, how you presented it.

    Too cool!

  28. Hallo Eric
    Ich habe folgende Probleme mit OwnCloud:
    Auf meinem Synology DS ist die Version 5.0.11 installiert. Sie läuft so weit so gut.
    Nun ist meine Frage, wie ich auf die DB zugreifen kann.
    Ich habe es leider verschwitzt bei der Installation die MySql Datenbank zu wählen. Gibt es eine möglichkeit trotzdem auf die DB zuzugreifen? Vor allem damit ich ein Backup machen und laden kann – das habe ich bis jetzt noch nicht geschafft.

    Zudem habe ich das Problem das ich auf dem Windows-Client immer wieder die gleiche Datei löschen muss und sie wird trotzdem immer wieder synchronisiert.

    Kennst du du das? was soll ich tun?

    Danke für deine Hilfe.
    Freundliche Grüsse aus der Schweiz

  29. 2014-01-09 at 16:26 Francesco

    when i send a recover email o notification email a see this

    – Could not execute: /var/qmail/bin/sendmail

    can i do?


  30. Good morning , after installing the latest version even if i select to use owncloud on port 80 i get a dsm link to https.
    if i look into the log i see: „https link selected“ but it is not true.
    how can i modify the link from https to http ?
    please let me know.
    thank you

  31. Ich bin sehr der Owncloud angetan, wie du sie zur Verfügung stellst. Vielen Dank dafür!. Heute hab‘ ich DSM 5.0 installiert und habe jetzt das Problem, trotz Nueinstallation von Owncloud: „Data directory (/volume1/web/owncloud/data) not writable by ownCloud“ mit dem Hinweis „Permissions can usually be fixed by giving the webserver write access to the root directory“. Dafür wird „chown -R www-data:www-data /path/to/your/owncloud/install/data“ empfohlen, ich komme aber mit der Syntax zurecht: was soll „www-data“ heißen?

  32. Thanks for sharing your thoughts on cele mai bune oferte
    de vacanță on-line. Regards

    My blog: Ferienhausbesitzer (Tiffany)

  33. 2014-03-24 at 00:34 mrkozma

    I have the same problem as borg:

    After installing the package (v.5.0.11-028) on DSM v.5.0-4458 and running it I received the following error:

    Data directory (/volume1/web/owncloud/data) not writable by ownCloud
    Permissions can usually be fixed by giving the webserver write access to the root directory.

    Can someone tell us what to do?

  34. There is defibately a great deal to learn about this topic.
    I likme all the points you’ve made.


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.