Posted  by  admin

Synology Wordpress

  1. Synology Wordpress Backup
  2. Synology Wordpress Backup
Synology wordpress docker

One of the first things you’ll realize when you navigate here to buy the Synology DS718+ is that you can use the Web Station package to install WordPress sites. However, you can only install one site at a time. That being said, it’s still possible to both manually run and install several WordPress websites on Synology NAS.

In the Synology File Explorer, right-click on the phpMyAdminnew folder, click Properties and select the permission tab. Select Create, select the HTTP user and select the read permissions. Synology is often a little slow in updating their plugins, and WordPress is one of them. Fortunately it’s very simple to manually update to the latest version WordPress on your Synology NAS. Download the latest version of WordPress & unzip to a folder Delete the wp-content folder from the new installation folder.

If you’ve got multiple computers running any operating system (Linux Ubuntu, Mac or Windows 10) in your house and you’d like to connect to WordPress development onto the localhost from another PC in the home that uses the same home network without having to deal with Onedrive, Dropbox and WP Migrate DB Pro plugins, then you’re exactly where you need to be right now.

You should be able to program several sites onto your localhost if you carefully follow the steps below. Some of the ones you can create are showcase-pro.dev and local.dev which can be accessed from any machine logged on to your home network.

  • Log into the NAS LAN
  • Search for Web Station at the Package Center and then install it. You’ll then find a “web” folder created in the root of your NAS.
  • You’ll also need to set up and install the WordPress package. While you won’t need to use the site that’s been created by the package, if you don’t want, it’s a good idea to take this step so that the dependencies, like Maria DB and PHP, that’ll be required can be installed.
  • Install the latest Apache HTTP Server 2.4 and phpMyAdmin packages. Most people usually consider the most relevant ones to be; WordPress, Web Station, PHP 7.2 phpMyAdmin, PHP 7.0, PHP 5.6, MariaDB 10, Apache HTTP Server 2.0 and Apache HTTP Server 2.2. Keep in mind, not all of them will be needed.
  • Go to the Main Menu, find File Station, and launch it. Go to the web folder and then proceed on to creating a folder for the website you’ve just created, let’s call it, ‘latest-wordpress’. Enter the folder and then download WordPress onto the computer. Extract the zip and then transfer all the content to the ‘latest-wordpress’. However, you can alternatively use the Download Station package, if you have it, and enter https:/wordpress.org/latest.zip for its URL and then download the data into ‘latest-wordpress’ and use the context menu to extract.
  • Place your website into a new folder
  • Transfer all the content from ‘latest-wordpress’ into the site’s new folder
  • Go to Properties by right-clicking on the folder. Log into the Permissions tab.
  • For the “http” user, create a new Permission granting it all Write Permissions
  • Log in to the phpMyAdmin using the username “root” or use the one that you’d created when installing MariaDB10. Once you’ve logged in you can change the password to something else if you like. Get your site a new database.
  • In Windows Finder/Explorer, log into the network drive of your Synology enclosed by the NAS servers and then proceed on to your site’s folder.

Change the ‘wp-config-sample.php into wp-config.php and then edit it. Create a database name. Lastly, use ‘root; as the username and then enter your password.

Synology is often a little slow in updating their plugins, and WordPress is one of them.
Fortunately it’s very simple to manually update to the latest version WordPress on your Synology NAS.

  • Download the latest version of WordPress & unzip to a folder
  • Delete the wp-content folder from the new installation folder
  • Move all files and folders from your web server WordPress folder to a backup folder, EXCEPT these;
    • wp-content (Folder)
    • wp-config.php (File)
    • .htaccess (File)
    • syno-misc.php (File)
    • pingbackIsOpend (File)
  • Move all the files from the installation folder into your webserver directory.
    Ensure you’re not overwriting any of the above folders/files if there are duplicates.

Log back in to your web server. You will see a screen prompting you to update the WordPress database. Do this – not that you have a choice. Then click continue once it’s done, and you’re in.

Synology Wordpress Backup

I found that the WordPress had a problem updating plugins after I updated to the latest version.
The issue is a detection process for user names on the server that could compromise your site if there are several sites running on the same box. For most Synology users this won’t be an issue.
Alas, the detection process doesn’t always detect the proper access method so you get a prompt for an FTP login.
You can either create the FTP user on your NAS (Login to DSM, then Control Panel/File Services/FTP/Enable SFTP/Create User/Give read/write access to WEB folder/Allow FTP access/No Quota, then forward port 21 & 22 in your router to the NAS) and login with that.

Or you can add the following small line in your wp-config.php file to force it to use direct file access (same user as PHP).

Synology Wordpress Backup

//*The next line allows direct downloads – it fixes the FTP download prompt for updating plugins*/
define(‘FS_METHOD’, ‘direct’);