Synology NAS has many things we can do with it, one is installing a WordPress site using the Web Station package. But it only lets us install one instance of WordPress. You can manually setup additional wordpress instance via WordPress.org download or keep a fresh copy of “wordpress” folder. This was done under DSM 6.2.4-25556.
For WordPress installation see https://weblog.orbit9.org/wordpress-installation-and-setup-on-synology-nas/
Create a master copy of wordpress folder
- Terminal window, ssh to Synology NAS via a user, su into root “sudo -i” and
set the current directory “cd /volume1/web”. - Synology’s WordPress, after you complete WordPress install package,
“cp –ar wordpress wordpress-syno”, create master copy “wordpress-syno” folder.
“chown -R http:http wordpress-syno”, fix ownership permission. - WordPress.Org, download from https://wordpress.org/download/,
“tar zxf wordpress-5.8.tar.gz”, unpack and create “wordpress” folder.
“chown -R http:http wordpress”, fix ownership permission.
“chmod -R 755 wordpress”, fix access right.
Edit and setup wp-config.php
- Define database name, user and password in wordpress/wp-config.php
define( ‘DB_NAME’, ’database_name‘);
define( ‘DB_USER’, ’database_user’);
define( ‘DB_PASSWORD’, ’password’) - Generated new authentication unique keys and salts in at https://api.wordpress.org/secret-key/1.1/salt/
define(‘AUTH_KEY’, ‘random_key’);
define(‘SECURE_AUTH_KEY’, ‘random_key’);
define(‘LOGGED_IN_KEY’, ‘random_key’);
define(‘NONCE_KEY’, ‘random_key’);
define(‘AUTH_SALT’, ‘random_key’);
define(‘SECURE_AUTH_SALT’,’random_key’);
define(‘LOGGED_IN_SALT’, ‘random_key’);
define(‘NONCE_SALT’, ‘random_key’); - Launch phpMyAdmin (install if you have not) and create a new database name as in
/wordpress/wp-config.php defined previously. - Launch WordPress and define your site name, user and password. Log into your WordPress site’s admin, go to Settings > Permalinks and click Save to generate the .htaccess.
Move wordpress folder to a sub folder, launch Web Station so that it maps that domain name to that sub folder