HOW TO COPY A LIVE WORDPRESS SITE TO YOUR SYNOLOGY DEVICE
HOW TO ENABLE YOUR SYNOLOGY DEVICE
TO HOST A COPY OF YOUR LIVE ONLINE WEB SITE
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
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.
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.
Once done, you should see something similar to the image below.
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.
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.
Go to the PACKAGE CENTRE.
Install phpMyAdmin and then WordPress.
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.
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.)
Now go to phpMyAdmin, and at the top, click on DATABASES.
Now, go to http://wordpress.org/download/ and download the latest version of WordPress. Once it is downloaded, unzip it and it will create a folder called wordpress. Go inside that folder and copy everything from it, into the new folder you created.
You can check to see if things are working by typing in:
http://synology_name_or_ip_address/wordpress for the standard wordpress site.
http://synology_name_or_ip_address/name_of_folder_you_created and the new site should appear, but it will tell you that there is no wp-config.php file available. That’s fine, but just ignore this, as we are not interested in creating a new site.
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 the original wordpress zip file in the folder. Makes sure you don’t have that there as having another zip file there will cause you problems, but you will get warned about it if it does happen.
Once this has been done, go to your web browser and type in:
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.
Now you need to wait until the files are copied across.
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.
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.
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!
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
Posted on October 5, 2013, in How To, NAS, Opinion, Review, Software, Wittering and tagged Backup, computer, Copy, DS1513+, DS212, DS213, Synology, Transfer, Wordpress. Bookmark the permalink. 16 Comments.