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.)

86 Kommentare zu 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. ;-)

    • :D 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.

  35. 剑灵美服金币(BNS)客户评价:已经记不清买多少次了,就是想告诉还在犹豫的你们PLS173这个网站是值得信赖的。

  36. 剑灵美服金币(BNS)客户评价:速度很快,我见过代练态度最好的一个,PLS173值得推荐

  37. Thank you a lot for giving everyone remarkably pleasant opportunity to discover important secrets from here.
    It’s usually so terrific and as well , full of fun for me personally
    and my office co-workers to search your blog at minimum 3 times in one week to see the new
    issues you have got. And definitely, I am just at all times contented with all the
    beautiful creative ideas served by you. Selected 3 areas in this post are without a doubt the most suitable we have
    all ever had.

  38. Boa leitura obrigado

  39. I was wondering if you ever thought of changing the page layout of your website?

    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or two
    pictures. Maybe you could space it out better?

  40. Hi there, this weekend is pleasant for me, as this time i am reading this great informative paragraph here at
    my house.

  41. I would like to thank you for the efforts you have put in writing
    this website. I am hoping the same high-grade site post from you in the upcoming as well.
    In fact your creative writing skills has encouraged me to get
    my own web site now. Actually the blogging is spreading its wings quickly.
    Your write up is a great example of it.

  42. Some genuinely excellent information, Sword lily I detected this.

  43. I got this site from my buddy who informed me regarding this web page and now this time I am
    browsing this site and reading very informative articles or reviews at this time.

  44. I see you don’t monetize your site, don’t waste your traffic,
    you can earn extra cash every month because you’ve got hi
    quality content. If you want to know how to make extra money, search for: Ercannou’s essential
    tools best adsense alternative

  45. It’s remarkable to go to see this web site and reading the views of all friends regarding this
    article, while I am also zealous of getting experience.

  46. これは、明治時代後期頃から大阪で流行した飲み食い方法で、その時は、一時的な飲食のその場レストランと名づけられていた飲み食い。それまでの宴席料理と違い、自らの嗜好に応じて、包丁人が向こう正面で即座に料理した出来立てのハイグレードなご飯をカジュアルなイス席で食べられることから、大正・昭和初期に大阪で大人気[6]となり、国全体に普及していった。

  47. Its not my first time to go to see this web page, i am visiting this website dailly and obtain pleasant information from here everyday.

  48. Guests can appreciate the on-website restaurant.

  49. Hi colleagues, its enormous piece of writing on the topic of educationand completely explained, keep it up all the time.

  50. Good web page you have here, i do concur on some items
    however, but not all.

  51. great issues altogether, you just received a logo new reader.
    What would you suggest in regards to your put up that you made some days ago?

    Any positive?

  52. ขายยาสอด ขายยาเหน็บ ยาทำแท้ง
    ยาขับเลือด ru486 cytotec cytolog
    ติดต่อได้ 24 ชม.
    ID line : มี 2 ไอดี

  53. Now, with more than a million Conflict of Clans MODDED APK  out there all over the web, why this one.

  54. Your style is really unique compared to other people I’ve read
    stuff from. Many thanks for posting when you have the opportunity, Guess I will just book
    mark this site.

  55. Hey! This post could not be written any better!
    Reading this post reminds me of my old room mate!
    He always kept chatting about this. I will forward this article to him.
    Fairly certain he will have a good read.

    Thank you for sharing!

  56. I’m amazed, I have to admit. Rarely do I come across a blog that’s both educative and amusing, and without a doubt, you have hit the nail on the head.
    The issue is something not enough folks are speaking
    intelligently about. I am very happy that I found this in my hunt for something
    regarding this.

  57. I was excited to uncover this website. I want to to thank you for your time for this particularly fantastic read!!
    I definitely liked every little bit of it and I have you book
    marked to check out new stuff in your site.

  58. First of all I would like to say terrific blog!

    I had a quick question that I’d like to ask if you do not mind.
    I was curious to find out how you center yourself and
    clear your mind prior to writing. I have had trouble clearing my mind in getting my
    thoughts out. I truly do enjoy writing however it just seems
    like the first 10 to 15 minutes are wasted just trying to figure out
    how to begin. Any recommendations or tips?

  59. I’ve been exploring for a bit for any high quality
    articles or blog posts in this sort of house . Exploring in Yahoo I ultimately stumbled upon this web site.
    Studying this info So i am happy to show that I’ve an incredibly just right uncanny feeling I found out
    just what I needed. I most definitely will make sure to do not
    omit this site and provides it a glance on a constant basis.

  60. Hi there, all is going sound here and ofcourse every one is
    sharing information, that’s in fact good, keep up writing.

  61. W myśli hierarchii potrzeb Maslowa, potrzeba bezpieczeństwa spotyka się
    na nowym miejscu, tuż za potrzebami fizjologicznymi. Każdy z nas marzy się czuć bezpiecznie we rodzinnym
    kraju, żeby nie musieć każdego dnia martwić się o bezpieczeństwo własne plus najdroższych nam
    osób. Gdy wejdziemy do wyszukiwarki internetowej Łódź ochrona,
    ochrona fizyczna łódź lub agencja ochrony Łódź, dostaniemy całą
    listę firm dostarczających pomocy w tym aspekcie.

    Obecność ochroniarza pozwala zachować nam pewny komfort psychiczny.
    Czujemy się o moc bezpieczniej, jak na koncertach,
    czy w interesach widzimy ochroniarzy pilnujących naszego bezpieczeństwa.

  62. Everything is very open with a precise explanation of the issues.
    It was definitely informative. Your site is very useful.
    Thank you for sharing!

  63. Nice post. I was checking continuously this weblog and I
    am impressed! Extremely helpful info specifically the ultimate part :
    ) I deal with such info much. I was seeking this certain information for a long time.
    Thank you and good luck.

  64. With havin so much content and articles do you ever run into any
    problems of plagorism or copyright infringement? My site has a lot
    of exclusive content I’ve either authored myself or outsourced but it seems a lot of it
    is popping it up all over the web without my permission. Do you know any solutions to help
    stop content from being stolen? I’d truly appreciate it.

  65. Hurrah! After all I got a website from where I know how to genuinely
    take valuable facts regarding my study and knowledge.

  66. I goo to seee day-to-day a few web sites and information ites
    to reaqd articles or reviews, however this webite givs quality baed writing.

    Also visit myy weblog – fire warden training Hampshire

  67. When someone writes an piece of writing he/she keeps the
    idea of a user in his/her mind that how a user can be aware of it.

    Thus that’s why this paragraph is amazing. Thanks!

  68. I am shocked when i checkk my instagram followers.

  69. wonderful issues altogether, you just received a new reader.
    What would you recommend in regards to your put up that you just made a few days
    in the past? Any sure?

  70. I am actually grateful to the owner of this web site who has shared this enormous piece
    of writing at here.

  71. Just what I was looking for, thanks for putting up.

  72. You havе mentioned ᴠery inteгesting poіnts! ps nice web site.

  73. You actually make it appear really easy together with your presentation however I in finding this matter to be really something which I think I would by
    no means understand. It sort of feels too complex and extremely broad for me.

    I’m taking a look ahead on your subsequent submit, I will attempt to get the hold of it!

  74. Thank you for every other magnificent article. Where else
    could anyone get that kind of information in such a perfect means of writing?
    I’ve a presentation next week, annd I am at the look for such information.

    My web ssite rv backup camera not working

  75. Some companies may charge for creating a seating chart if you sell reserved
    seating, or others may apply a primary charge for starting one’s body, therefore it pays
    to buy around a bit. Ease of use is one of the primary considerations when researching what the next or new point of sale
    system should consist of. I’m a B2B guy, so I feel that I’m on shaky ground talking about consumer products sales and merchandising-but I am a great consumer.

  76. You can construct steel chapels which are not only
    durable and environmentally friendly however are also cost effective.
    Introducing the topic – One of the extremely significant current discussions in [area of research]
    is [topic of research]. Lay out the pieces around the perimeter from the larger OSB circle, equidistant apart, with the pieces pointing toward the
    actual centre from the ring.

  77. Hey there, I think your website might be having browser compatibility issues.
    When I look at your website in Ie, it looks fine but when opening in Internet Explorer,
    it has some overlapping. I just wanted to give you a quick heads up!
    Other then that, great blog!

  78. This page really has all the information and facts I wanted about
    this subject and didn’t know who to ask.


Hinterlasse eine Antwort

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

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>