brodia10
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Synology NAS & WordPress domain URL@tomlawesome and @ericyu no problem!! I’m glad it worked out for you guys!
Forum: Fixing WordPress
In reply to: Synology NAS & WordPress domain URLAlso you need to make sure that you set DB_HOST to 127.0.0.1:3307 if you’re using MariaDB10, it needs to be explicitly set to this not local host.
And you need to make sure that you check the php curl extension to be included with the php version you are using. In web station go to PHP Settings, click on the version you’re using and hit edit. Then check next to the box for php curl. Without this you will not be able to install or update any plugins or make any http requests from your site, took me forever to figure these 2 out! hopefully it helps someone!
Forum: Fixing WordPress
In reply to: Synology NAS & WordPress domain URLHey all, I just setup a wordpress site on my synology nas using virtual host today. This worked for me!! – From https://www.reddit.com/r/synology/comments/7hzcdo/hosting_multiple_wordpress_sites_on_one_nas/
HOW TO HOST MULTIPLE WORDPRESS INSTALLS ON A SYNOLOGY NAS starting with george.com
if you’ve previously installed the synology wordpress package, remove it, and delete everything inside your /web folder.
if you have not already done so, install and run MariaDB, phpmyadmin, and Web Station. in MariaDB make a root password, then in phpmyadmin log in with those credentials and make a new User called ‘suzie’ and password ‘password’ and assign that user all Global Privileges.
go to your domain name registrar and make two changes: point your A record for george.com to the external ip address of your syno – just that – and make a CNAME record pointing “www” to your domain name.
make a subfolder in /web called ‘george’
in phpmyadmin, make a new, empty, database and call it ‘george’
in Web Station>Virtual Servers, make two new entries: one for ‘george.com’, another for ‘www.george.com,’ and point them both at ‘/web/george’
download a copy of wordpress from wordpress.org. upload it to /web/george, extract it there, move the contents of the ‘wordpress’ folder to /george, and then delete the zip file and the now empty ‘wordpress’ folder
open the wp-config-example.php file. make the following changes: DB_NAME ‘george’, DB_USER ‘suzie’, DB_PASSWORD ‘password’, $table_prefix ‘grg_’. save this file as ‘wp-config.php’…..make sure you change the table prefix to something unique, and of course make a strong password in step 2.
in your new wp-config file, add the following two entries, before the ‘that’s all, stop editing’ message: firstly, add ‘define(‘WP_MEMORY_LIMIT’, ‘128M’);’ you’ll need this, or 256M, if you want to run woocommerce. Secondly, add ‘define(‘FS_METHOD’, ‘direct’);’. this is important because without it you won’t be able to install or update plugins!
if your DNS change has propagated, type ‘george.com/wp-admin/install.php’ in your browser and follow the setup instructions. database name is ‘george’, username is ‘suzie’, password is ‘password’, db host is ‘localhost’, and table prefix is ‘grg_’. WP SITE and WP HOME are ‘george.com.’
when you get the Welcome screen, set your own username and password for logging into wp-admin.
that’s it. you can now log into the backend of your site at george.com/wp-admin. for fred.com, and dave.com etc, redo numbers 3 – 11 again. This time subfolder ‘/fred’ and ‘/dave’ etc
if you have any problems let me know.