I am not an expert on any of the following but I looked up some tutorials and was able to make it work for me. However, I can imagine that there are some hurdles you might have that I did not. So look at this as a general guidance at a high level.
- DDNS domain name
- The domain ssranch.synology.me is a dynamic domain because my internet service provider (ISP) has not given me a static IP address. The way to assign a fixed domain name to a dynamic IP address is by using a Dynamic Domain Name System (DDNS). Synology has provided this service for free, it’s just a matter of finding the feature in the synology software.
- Static IP address for NAS
- So even though your ISP does not give you a static IP address, you can assign the NAS a static IP address within your home network. The reason to do this – I think – is that you’ll want your router to forward external requests to your NAS. That comes later in the port forwarding section. You can tell your router to assign a fixed IP address to your NAS. Log in to your router, hunt and peck around in the software and look for DHCP.
- DHCP is the service that automatically assigns a new IP address to your system so that new hardware automatically connects to your router more easily. There are a limited number of IP addresses so your router will shuffle these around to make sure any device can connect. This is a problem for port forwarding so you’ll want to allow DHCP to function but save a few fixed IP addresses for things like the NAS that will never change.
- Check the firewall on the NAS
- Only certain ports should be opened to the internet. List those ports explicitly to include ports so that you can communicate with the NAS and not much more.
- Update Port Forwarding on the Router.
- Tell the router to allow communication from the internet to the NAS static IP address and only on the required ports. The techniques discussed in the referenced video series tells you how to use the uPnP service likely provided by your router. They say uPnP has some security concerns. I tried it and it didn’t even work for me. Instead I went into the router and set the port forwarding manually to match those ports I set up in step 3 above. It wasn’t hard so honestly I would recommend trying it instead of uPnP.
- Load MariaDB and WordPress
- These are free packages available through the internet and the Synology software makes it easy to install.
- write some html code to send the root directory to wordpress
- By default the code above doesn’t connect your DDNS to wordpress. You’ll have to add \wordpress\ to your domain url in order to get access. So ssranch.synology.me\wordpress\ works but not ssranch.synology.me by itself. The fix is to change the root directory index.html file to redirect to wordpress. The html code is just <meta http-equiv=”refresh” content=”0; URL=’http://ssranch.synology.me/wordpress/'” /> so it’s worth the extra hassle to simplify accessing your wordpress site.
- Find the rss feed
- WordPress generates it’s own rss feed by default. This step actually gave me a lot of trouble until I realized that even though my site can be accessed by typing ssranch.synology.me the site is actually at ssranch.synology.me/wordpress/. That means the feed is found at ssranch.synology.me/wordpress/feed/. Not complicated but it gave me some trouble.
- Setup IFTTT
- IF This Then That is a simple web automation tool that connects apps together. This is what publishes my posts to facebook now. It crawls the web and when it notices that my wordpress feed has been updated it will collect the information and make a post there. It would be just as easy to post to twitter, instagram, google drive, apple products, and many other places.
I set my NAS up a long time ago to store my data, so some of those details are a little foggy. I wish I had the video playlist shown here describing the basics for setting up a Synology NAS from the ground up. I learned a lot of what I should have known back then… a little later than I would have liked.
Basics for setting up WordPress on Synology NAS
The result of all this is that I own my website and it physically sits in my house. That’s kind of a nice feeling. Plus I can control a bit more of how this website is organized and is displayed. There is no character limit. It feels like I’ve unplugged facebook and because of that I’m more in control of the information that I see. We’ll see how it goes. It’s something new to try out which is also kind of fun regardless of the outcome.