Thursday, October 29, 2015

Install ownCloud on Synology NAS DS413

Here is a list of steps required to install ownCloud on a Synology NAS. I have a DS413 and I was able to install ownCloud on it. I don't know about the other Synology models out there. Let me know, if you succeeded to install ownCloud on any other model.

ownCloud is not part of the official Synology packet repository. You need to add the community repository to install packets from there.


  1. Log into the Synology admin site
  2. Open Package Center and open the Settings. Under Package Sources, add http://packages.synocommunity.com/ as a source (see screenshot). Click Ok to confirm the new repository.
  3. In Package Center, refresh the list of available packets by pressing the Refresh button at the top of the window
  4. Now search for MariaDB and install it. This is required to install Owncloud. Otherwise, the installation of ownCloud will abort with an error. MariaDB is a fork of MySQL and is one of two databases recommended by ownCloud. The other one is PostgreSQL.
  5. Next enable Web Station in the Control Panel. ownCloud is a webapp and needs the http server to properly work.
  6. Before we continue with the ownCloud installation, you need to create a new shared folder. The installation of ownCloud failed in the beginning, because this folder is required, but could not be created.
  7. Open the Control Panel and open Shared Folder. Create a new shared folder and give it the name ownCloud (this is the default during the ownCloud installation).
  8. Check off Hide this shared folder in "My Network Places". Nobody should modify any content in this directory. This belongs to the ownCloud installation!
  9. Change the permissions of the newly created shared folder. In order to grant ownCloud read/write permissions, select http from the Local Groups (in the Dropdown list on the left hand side above the table) and check the box in the Read/Write column. Press the OK button when done.
  10. Now search for ownCloud and install it.
  11. During the installation of ownCloud, you will be asked to enter the password for the root user. Leave this field empty. By default there root password is not set (this is not secure at all, but for demo purposes, this should be alright)
  12. After ownCloud was installed properly, click on the URL in the ownCloud overview page in the Package Center. In my case it's http://192.168.1.22/owncloud.
  13. Now you will be greeted with ownCloud's login page. Type in your admin password and log into your ownCloud installation. The administration is part of another blog post.

Summary

This is a list of steps to install ownCloud on a Synology NAS DS413. The steps cover the installation of dependencies required to run ownCloud. The administration of ownCloud is not part of this post.
I hope this will help anyone to successfully install ownCloud. Let me know if you have any questions or other constructive feedback.

6 comments:

Ian Weatherburn said...

Hi there. Thanks for your help.
Unfortunately no matter what I have the mySQL root password set to, I get the error:
"owncloud incorrect mysql root password"

I'm running DSM 6.0-7321 on a Synology DS2413+

I found this link which seems to indicate a problem with DSM 6? Any ideas?
Thanks very much
Ian

Ian Weatherburn said...

Hmmmm, here's a complicated process for installing the package manually. Ouch :D
http://www.iholken.com/index.php/2016/03/15/guide-for-installing-owncloud-9-to-synology-nas-running-dsm-6/

Juha said...
This comment has been removed by the author.
Ingo Richter said...

Hi Ian,
I haven't seen this issue before. I have updated owncloud manually to 9.0.1 lat weekend, after I couldn't install any updates from within owncloud. It was so annoying, that I decided to go the manual route this time. It seems, that there is no update to the community package of owncloud and I didn't want to wait any longer.
I used the instructions in the guide (the link you posted here) and it worked fine. There were some minor things that I did, especially copying the config files from the 8.x installation over to the 9.0.1 installation. Adjusting some of the permissions and it was ready to go.

Chris Nagle said...

Thanks for this but I have ownCloud installed in a DataCenter and want to install the ownCloud CLIENT on a Synology DS1815+ NAS at home to sync.
Any ideas how to do this?

Ingo Richter said...

Wow, that is quite a NAS! Excuse the question, but what exactly do you want to install on your NAS? There are 3 desktop clients: Windows, Mac and Linux. There is no official command line client to connect to an owncloud instance. So, you could either run a VM with Windows or Linux on your NAS and install the client in the VM. But it might be easier to install one of the graphical clients on your main computer and connect to your owncloud instance that way. So, for me it looks like your NAS is not really part of that solution anymore. I don't know if this is what you had envisioned.