Glorify for ecommerce images

Step by step Guide on how to Install and Run WordPress on Synology NAS


A NAS is a network-attached storage device that allows you to access files from any computer on your network. It’s a great way to back up your files, and it’s also a great way to host websites on your domain.


WordPress on Synology NAS

With all the recent news about cloud storage services like Amazon’s S3 and Google Drive, it’s easy to think that a NAS isn’t necessary. However, there are still plenty of reasons to have your own NAS, and in this guide, I will show you how to install and run a WordPress site on your own NAS. Regardless of what you are using the Synology NAS for, installing WordPress on the Synology NAS is extremely easy.


What are the requirements for running a WordPress website on a Synology NAS?

Basically, when you own a Synology NAS, which I assume, otherwise you wouldn’t read this article, you are good to go to install WordPress on Synology.

However, there are a few things you need to pay some attention to.

Intel NUC
  • Would you like to make the website accessible from the Internet? If yes, you need to purchase a domain name (example.com)
  • Port forwarding is necessary for ports 80 and 443.
  • There are two scenarios to use your Synology as a router or a separate router/firewall. In the first scenario, you would need a Synology with two ethernet ports, one connected to the internet modem and the other to the internal network. The second use case needs only one ethernet port which is my preferred setup. I highly recommend a firewall if you plan to make your WordPress on Synology accessible from the Internet.
  • I recommend a Synology NAS with at least two hard drives in the RAID1 (harddrive mirroring) setup. Don’t plan to host WordPress on Synoology with only one disk.
  • I recommend the DS720+. It has an Intel Celeron CPU, 2GB of system memory, and a free slot to expand up to 6GB.

How to install WordPress on a Synology NAS?

There are a few different ways to install WordPress on Synology NAS. This guide will show you how to install it using the Package Center.

So it is time to log in to your Synology and go to the package center. A good practice is to check beforehand if a new DSM update is available.

In this example, I log in with the username ‘Admin’ for easier understanding. However, Synology recommends disabling the admin default user and recommend using another username for security purposes.


WordPress on Synology: Package Center

Unfortunately, the WordPress package offered in the Synology distro is not the latest.


Step 1: Install the WordPress package

Click the ‘Install’ button

The installer will also install all the required packages it needs to run.

  • Apache HTTP server
  • Maria DB
  • PHP
  • Web Station
dependent packages

Now a few necessary steps will follow, and you must enter some login information.

Please note them down. It’s crucial in case later you need to access the database.

Click ‘YES’


Step 2: MariaDB

Set a password for MariaDB. I would leave the port as it is.

WordPress on Synology: Set up MariaDB

Step 3: Set up WordPress on Synology

Set up WordPress on Synology. Enter the credentials of MariaDB for the user ‘root’. You will later use these credentials for PHPmyadmin to access all your WordPress databases. In theory, you could use another username here. However, I don’t recommend it. Instead of changing the username ‘root,’ I recommend setting up another user for MariaDB later.

WordPress on Synology: Set up WordPress

Step 4: Set up WordPress Database

Enter the credentials for your database installation. The installer will set up a database on MariaDB for WordPress.

Set up WordPress Database

WordPress is now installed!

If you go to the package center you notice the WordPress is running and also on which volume it is installed. In my case, I installed WordPress on Volume 1.

WordPress on Synology

Step 5: Log in to WordPress on Synology (last step)

It’s time to fire up WordPress and login to the backend dashboard.

usually, it is the address http://name of your NAS/wordpress/wp-admin

Synology creates a web folder ‘wordpress’

Fill in the information, as for the username please do not use ‘admin’ or ‘administrator’ and also use a strong password. See my article Harden WordPress.

I recommend ticking ‘discourage search engines from indexing this site. I would untick it when you are ready to present your website to the world.


Welcome WordPress

WordPress is installed and ready. Enjoy!! 🙂

You can now manage your WordPress site directly from your Synology NAS. Install any plugin you want from the WordPress repository, or customize your site with themes and plugins from third-party sources.

I love the Kadence or Astra theme together with the Elementor page builder.


My pick

Featured image Elementor Pro

Elementor Pro Review

Full Comparison – Elementor Pro VS Free


Install the package phpMyAdmin

It’s not required to install phpMyAdmin, however, I recommend it in case you need to manage or modify the database. It’s a web GUI. You find the package in the packager center and it is easy to install, with no wizard to follow.

Accessing phpMyAdmin, http://name of the NAS/phpmyadmin

To log in enter the credentials you entered in step 3.

WordPress on Synology: phpMyAdmin

What are the benefits of running WordPress on Synology NAS?

There are several benefits to running WordPress on Synology NAS. Perhaps the most obvious is that it provides a fast and reliable way to host your website. Additionally, since WordPress is already pre-installed on many Synology NAS devices, it is quick and easy to set it up.

Another great benefit of using a Synology NAS to host your WordPress site is that you can take advantage of the many features and applications that Synology offers. For example, you can use tools like Synology Directory Server to run your domain or download packages like Photo Station to manage and share your photos online.

Finally, by running WordPress on a Synology NAS, you gain the peace of mind that comes with knowing your website is always accessible and backed up.


What are the drawbacks of running WordPress on a Synology NAS?

There are a few potential drawbacks of running WordPress on a Synology NAS:

  1. WordPress may be slower and more unstable on a Synology NAS than if WordPress was running locally.
  2. You need to secure WordPress yourself.
  3. It can be more difficult to troubleshoot problems. There is no support available. You are basically on your own
  4. You cannot use the WordPress upgrade feature. In order to upgrade WordPress, you must wait until a new version is available in the package center. Synology does not upgrade WordPress immediately when a new release is public.


Synology DS720+ 2Bay

Seagate IronWolf 8TB


Technical aspects / Questions and Answers

We will dive into more technical aspects and how you can adjust WordPress on Synology for an even better experience and eliminate some mentioned drawbacks in the next part.


Why I’m not able to upgrade WordPress from the Dashboard?

WordPress Updates

I have no idea why Synology decided to disable upgrade possibilities. So let us find out what the reason is. Let’s go to the File Station, (on the Synology dashboard), web-packages, folder ‘wordpress’, look for the file ‘wp-config.php. right-click and open it with the text editor – I use the text editor from the package center – We are looking for this in ‘wp-config-php’

define( ‘AUTOMATIC_UPDATER_DISABLED’, true );

It’s not there, so weird why we cannot upgrade WordPress from the dashboard. But wait, in ‘wp-config-php’, there is a reference to another file.

require_once DIR . ‘/syno-wp-config-custom.php’;

Right, a file ‘syno-wp-config-custom.php’ exists too. Open it with the text editor, and there you will see updates are disabled.

If we are trying to modify the line from ‘true’ to ‘false’ and save the file, we get the message

Sorry, the user account has not been assigned proper privileges to perform this action.


What is the reason why I cannot modify WordPress files on Synology?

Well in most cases we are logged in to Synology NAS with an admin account. We need to investigate further what’s going on. Right-click the folder ‘wordpress’ in File Station and click on properties

WordPress Folder properties
WordPress Folder properties

We notice the owner is a new user called ‘WordPress’. Unfortunately, it is not so simple and we could add our account and give us write permission. The permissions you see here are only for the application ‘File Station’. In addition when you go to the Control Panel, Users & Group you will not see a new user called ‘WordPress’

We have to ssh now to the Synology NAS and have a look under the hood. I use putty for Windows or Terminus for MacOS.

Type in the below command and the Synology NAS will list all users. We noticed indeed a user ‘WordPress’ was created.

cat /etc/passwd

We can do the same for groups

cat /etc/group

Interesting a group ‘WordPress’ was set up too.

Next, we navigate to the WordPress folder and have a look at which user and group is the owner of the folder ‘WordPress’

cd /volume1/web_packages

Please note: WordPress is installed in my case on volume1. This might be different in your case.

WordPress permissions under hood

The owner of the main folder ‘wordpress’ and each subfolder and file is the user ‘WordPress” and the group is ‘http’. Looking at the permission we noticed that all others have only ‘read’ permissions.

This is the answer to the question of why we cannot edit the WordPress files.

I like to refer you to my articles about Users & Groups and file permissions.


How can I edit files in WordPress on Synology NAS?

The easiest way is to

  • make your login username a member of the group ‘http’

The command below adds the user ‘Admin’ to the http group

synogroup –add http Admin

The next step is to edit the file ‘syno-wp-config-custom.php’ with the vi editor

vi syno-wp-config-custom.php

We need to amend ‘false’ to ‘true’ and also delete the line highlighted in yellow.

Press the letter i to change to insert mode in order to make the changes. When you are finished press the ESC key followed by :wq. That’s the command to save the changes and exit the vi editor.

Go back to your WordPress dashboard and now it should change. Automatic updates are enabled and scheduled.

WordPress Updates

WordPress on Synology will update to the latest version automatically.


Bottom line

In this article, I have walked you through the steps of installing WordPress on Synology. I also showed you how to install phpmyadmin as an additional package. Finally, I weighed the pros and cons of doing so. Following my instructions, you should now be able to install WordPress on Synology and also modify it in order to get the latest WordPress version automatically.

Thanks for reading! Questions or comments? Let me know in the comments below or email me at info@edywerder.ch

Full Disclosure

Any purchases made from clicks on links to products on this page may result in an affiliate commission for me.

As an Amazon Associate I earn from qualifying purchases
Als Amazon-Partner verdiene ich an qualifizierten Verkäufen

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *