HOW TO COPY A LIVE WORDPRESS SITE TO YOUR SYNOLOGY DEVICE

I have tried to make this as simple as possible, as I found most of the tutorials online to be either difficult to follow, incomplete or just so long-winded that I gave up out of sheer misery!

I would like to point out that I am an amateur in WordPress and web material in general, so I am open to all suggestions on how to make this article better for other people to read and understand, as I have may have some glaring mistakes, that are not apparent to me.

I have worked through this list a number of times and it has worked for me, so I hope it does the same for you.

Lets start by going to your WordPress enabled web site, and installing a new plugin called: DUPLICATOR

Duplictor Plugin

You can search for this in the plugins section, or download it from the creator’s web site over at: http://lifeinthegrid.com/labs/duplicator/

And yes… the plugin is FREE!

Once you have it installed, click on Duplicator at the bottom of the left hand side of the screen. You should see on the right hand side that there are no packages to be found.

Duplicator Packages
Click the button to create a new package and after a few seconds you will be prompted for a name for this backup and also an option to comment on it if required. Just click on Create Package Set and the backup will be created. Depending in the size of your site, this may take a few minutes to complete.

Create New Package

Once done, you should see something similar to the image below.

Duplicator Packages

All you need to do now is click on the button INSTALLER and it will download an installation file, and then click on PACKAGE to download all the site data.

Package Set

Once we have the data saved, then it’s time to get the Synology device ready.

Log into your Synology device and do the following:

Go to the CONTROL PANEL and click WEB SERVICES.
Make sure you tick ENABLE WEB STATION and also ENABLE MYSQL.

Enable Web Station and MySQL

Go to the PACKAGE CENTRE.

Install phpMyAdmin and then WordPress.

Install phpMyAdmin

If you go to FILE STATION you should see a folder called WEB, and in there are the various folders that have been created to let you do your own thing.

Voila_Capture7

The WordPress folder is the default one that is created, and you can safely use that if you are just starting out learning WordPress. If you muck things up you can just uninstall WordPress, re-install and start again. Sorry about that.. let’s get back on track again!

Create a folder under the folder WEB and call it the name of the site you are looking to import. As an example, my site of http://www.tasystems.org will sit in a folder called TAS. You can call it anything you like.

Go back to the Control Panel, click on Web Services again, and then click on VIRTUAL HOST. Click on create, and enter the folder name you created earlier. The hostname should be set to local. Change the port to 81 or whatever one you prefer. (You can change the hostname to your WAN ip address and port to whatever you want, if you wish to access this site from the Internet. You will have to set up port forwarding in your router for this work correctly.)

Voila_Capture8

Now go to phpMyAdmin, and at the top, click on DATABASES.

Voila_Capture9
Now you need to create a name for the database, so I’ll stick with tas as that is the folder I’m working in and an abbreviation for the site I have live. Just click create.

Copy the installer.php file and the package file you saved at the start of this, into the folder you created in the web folder of the Synology device.

Note: In this screenshot you will see I have a number of files already in there, but you should only have the zip file and the installer.php file. Just ignore the other files you see here.

Voila_Capture15

Once this has been done, go to your web browser and type in:

http://synology_ip_address/folder_you_created/installer.php

Mine’s as an example is: http://omega/tas/installer.php

If everything has been done correctly… you should see the following below:

You will see that I have a Green light indicating that the system has passed the first phase, and is looking good.

Voila_Capture16
Now you need to fill in your settings and then click on TEST CONNECTION!

Voila_Capture17

If all goes well… you should see this next:
Voila_Capture18
Now click on the option “I have read all warnings & notices” and then click on RUN DEPLOYMENT. A screen will then prompt you  to continue… do so!

Voila_Capture19

Now you need to wait until the files are copied across.

Voila_Capture20
If all goes well, you should see something similar to the screenshot below:

Voila_Capture21

The next part may not be needed, but I did experience a few issues trying to log into my site, so have included it anyway just so you can try it if you too have any issues.

Click the section that says NEW ADMIN ACCOUNT and create a new username and password.

Voila_Capture22

Once this has been done, click on RUN UPDATE. At the end you sill have a summary screen that will give you information on any issues found.

Voila_Capture23

Click on Resave Permalinks, and then finally click on Delete Installer Files.

After that… click Test Entire Site… and if all goes well… you have a fully working site now sitting on your Synology device.

I hope this will help someone out in some way, but would appreciate having mistakes pointed out and any way to improve upon this way of doing things. As it is, it works but I’m sure there must be some things that could do with improving upon!

UPDATE: 06-10-2013
One issue you may experience once the site has been transferred across to your Synology device is that the plugins will not automatically update and you will be presented with a screen asking for ftp details and a username and password. It makes no difference what you do here, the plugins do not want to update.

The way around this is simple as long as you go back in to the Synology device, go to the control panel, Terminal and make sure you have enabled TELNET SERVICE.

Next, you want to TELNET into the Synology device and log in with the username of root and the password you have set up for your main admin account. Once you have logged in, you need to issue the following command:  chown -R nobody:nobody /volume1/web/name_of_your_folder

Once this has been done, the plugins will automatically download and update when you select them.

Thanks go to PedroT over at the forum.synology.com site for this information: http://forum.synology.com/enu/viewtopic.php?p=75746

UPDATE: 20-02-2014
With the release of DSM 5 the option for the telnet section should now be:chown -R http:http /volume1/web/name_of_your_folder

UPDATE: 06-04-2014
I have removed a large section of the installation section that mentioned that you had to download and install WordPress into the new folder you created, before copying the installer and zip file over. That is not required and saves you a lot of extra work.

About the Author

6 Comments

  1. I’m guessing this is for a .org site rather than a basic .com?

    • This should all work for any wordpress site that you host yourself be it .co.uk, .com, .org etc…

      I have this posted on the Synology forums and have asked if there is anyone who can show me a quicker way of doing this download to synology, and then re-upload to the hosting site but so far zero replies, so this must rate as a good way of doing it!

      • Ah well that rules me out then till I get more views to make self hosting worth while.

        • 🙂 Its cheaper than you think!

  2. Dear Gordon,
    Very helpfull tutorial. Unfortunately i get a „database failure message”: failure while making database connection; after step: Once this has been done, go to your web browser and type in:

    http://synology_ip_address/folder_you_created/installer.php

    Can you help with this?

    I use a downloaded and unzipped wordpress site/database set

    Thanks Baldwin

    • Hi There,

      When you have created the folder, you copied over the installer.php file and the zipped Duplicator backup file into that folder?

      You than ran the http://YOUR NAS BOX IP ADDRESS OR NAME/installer.php and did you get the installer option appear?

Leave a Reply

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