Page 1 of 1
Problem with installation on DS916+ 8GB
Posted: Fri Nov 08, 2019 7:56 am
by Paul Barrett
It's been a while since I did a WordPress installation on my Synology.
In the meantime, php7.2 for Syno has been released and installed.
I have followed the instructions but when I run the 5 min install I can't get a connection to the database.
Has anything changed?
Re: Problem with installation on DS916+ 8GB
Posted: Sat Nov 09, 2019 10:46 pm
by steven
Nothing has changed. Are you using WordPress from Synology or WordPress.org?
I ask because if you use the WordPress.org version you need to make sure you are using the correct socket. Also check the mysql.default_port in the php core configuration. Synology defaults to 3306 but MariaDB 10 uses 3307. While checking the core, make sure the correct socket is specified.
The php 7.2 configuration for MariaDB10 mysql.default_socket is as follows:
Plus the line below must be in your WordPress configuration file:
Code: Select all
define('DB_HOST', 'localhost:/run/mysqld/mysqld10.sock');
If these are correct make sure you do not have any typos for the database name, user and password.
Last, check that the user has the correct privileges. Which is explained in this
post.
Re: Problem with installation on DS916+ 8GB
Posted: Mon Nov 11, 2019 5:55 pm
by Paul Barrett
I'm using WordPress.org.
Just for a stopgap, I tried installing the Syno package and discovered to my horror that although it installs WP 5.2, it STILL does it on php5.6!!!!
I'll try those tips.
Thanks
Re: Problem with installation on DS916+ 8GB
Posted: Mon Nov 11, 2019 6:13 pm
by steven
It appears Synology REALLY LIKES php 5.6 even though it is obsolete. Unfortunately they have a few programs that still require this version. I sent a request asking them to update their programs, so I could delete php5.6, but never received a reply.
One thing I forgot to mention is to run phpinfo.php to verify mysql is enabled. This is a simple file you can create yourself by inserting the code below:
Additionally I added this post some time ago about
connecting to MariaDB.