WordPress website on Synology NAS
This is a tutorial on how to set up Synology NAS running DiskStation Manager 5.0 so that WordPress website is visible from the internet, even with a dynamic IP address from your internet provider. My goal was to get my own website as cheap as possible. For that I’ve utilized Synology NAS DS214se and domain name registrar easyDNS.
Even though my internet service provider (UPC Czech Republic) offers a static IP for an extra money I didn’t want to accept that before exploring another ways of connecting to my server. Synology provides a complimentary DDNS hostname for you in format <your domain>.synology.me. It’s the same service you can get from well-known noip.com. Connecting to this address gets you always to your NAS, whatever IP address you’ve been provided by your ISP.
Another challenge awaits us when dealing with domain registrars. Even though I had one second-level domain before, it was not possible with my domain registrar to set my apex (aka naked) domain to the *.synology.me DDNS address. That’s not about incompetence of the domain registrar, it’s about limitations of the DNS RFC. However there are a few companies which found a workaround and they provide the ability to set the hostname (not IP address) even for the apex domain. Most of the registrars consider it as a premium service, except for easyDNS, which offers such capability complimentary for domains registered with them. I’ve chosen this way – to get new domain and point it to my NAS. I’ve googled coupon with $10 discount so my new domain cost $5 instead of $15 for one year.
I’ve decided for WordPress website publication system because of tons of free templates and little of programming. Synology also offers system Drupal as a DSM package which is similar to WordPress, but because I have zero experience with these systems, I’ve chosen WordPress rather randomly. If you want to go the WordPress way like me, follow these steps to set up your NAS correctly:
- Enable Web Station in DSM -> Control Panel -> Web Services
- Install WordPress package through DSM Package Center
- The installed WordPress is accessible from http://<diskstation hostname>/wordpress by default
- To have possibility to move the installation to the root http://<diskstation hostname>, you need to change access permissions of the web folder
- Within DSM, go to File Station -> right-click on web folder -> Properties -> Permission -> add write permission to http group
- Now go to WordPress admin centre – http://<diskstation hostname>/wordpress/wp-admin
- In Settings -> General, change the ‘Site Address (URL)’ to http://<diskstation hostname>. Your WordPress has ‘Move Site Files’ plugin pre-installed (by Synology), which does everything for you.
- To change the ‘Site Address (URL)’ to custom internet address, like http://www.bocekm.com, you need to disable the ‘Move Site Files’, which handles moves just in the scope of the NAS
- Make sure you have your router set up to forward port 80 to your NAS. If your router supports UPnP, enable the port forwarding easily in Control Panel -> Info Center -> Service -> allow Web Station
Tested with Synology DS214se, DSM 5.0-4458 Update 1, WordPress package v3.8.1-018, easyDNS.com Domain Plus package.