Synology Wordpress



Dear All
I try to use synology virtual host to point to my wordpress site hosting in my synology box. below is my virtual host setup. After this, i try to access my site test.com. It pop up “Error establishing a database connection”. If trying to access test.com/wordpress, it will show 404. Is there anything i have to change in .htaccess or wp-config.php as i am new to test. please help as i have struggle with this a few days without any hints. please help and thanks!
Hostname:test.com
port 80/443
document root: web/wordpressJohnson
https setting: HSTS
Http back end server: Nginx
PHP: PHP 5.6- This topic was modified 11 months, 4 weeks ago by . Reason: not a request/feedback
Install Wordpress On Synology
My daughter has her own Wordpress.com blog where she posts articles about whatever she finds interesting. A few days back, she asked me if she could have a ISP-hosted Wordpress blog, as she now wants have more control over things like themes and plugins etc. Before investing any money into. Synology Web Station uses a special HTTP user for it’s default web folders, including it’s WordPress package. If you create your own folders, like for multiple WordPress sites, the system will use your permissions instead. This is what causes the issues with installing/updating plugins, themes and WordPress. The WordPress package maintained by Synology is locked to PHP 5.6 and Apache HTTP Server 2.2 meaning there’s no upgrade path for either PHP or Apache HTTP Web Server. Here’s how to migrate from the Synology WordPress package to Web Station.
Nginx doesn’t support htaccess files. You’ll need to translate the htaccess directives to the Nginx config file.
Your webhost should be able to help you on some of this… The first thing I’d ask them would be to ask for an Apache server but that’s me.
I did find this document… I skimmed through it some but I reserve Nginx for proxies…
AFAIK that has nothing to do with the faulty db-connection. I’m struggling with the same issue. I can remember from a earlier attempt you have to use 127.0.0.1 instead of ‘localhost’ in wp-config or something like that. But that doesn’t help me this time.
@johnsonleungmk did you solved it in the meantime?
- This reply was modified 8 months, 1 week ago by .
Synology Drupal

- The topic ‘synology virtual host for wordpress site -error establishing database connection’ is closed to new replies.
