Nextcloud on Synology

This blog will walk through the steps necessary to install and configure Nextcloud 15 on Synology NAS running DSM 6.2.

The following packages need to be installed on the NAS:

It’s recommended by Nextcloud to keep your data outside of the internet accessible folder so first we setup a shared folder to keep the data:

Now a lot of guides I have found on the web tell you to log into your NAS and change the owner and permission of this shared folder to http. I don’t like to do this out of two reasons. First, http should have no access rights to my shared folders for security reasons and second, if you do that you can’t access your data anymore via the File Station.

So here is a little workaround to solve this problem:

With this little change we’ll be able to get Nextcloud to write to this folder, don’t have http owning the shared folder and still be able to access the files.

Next setup MariaDB:

Next configure Webstation

Virtual Host configuration

Next we are getting Nexcloud

Change ownership permission on web/nextcloud folder

Setting up Nextcloud

That’s it your Nextcloud should be starting up. It might take a few minutes until it’s ready to connect and you get an HTTP timeout.

Tags: