admin管理员组文章数量:1122832
I cannot get Wordpress to work with using SSL connection for the database.
My client/server setup is working with a regular DB user over ssl so I can confirm it is setup correctly using MariaDB client.
Here is my 50-clientf
[client]
ssl_ca = /etc/mysql/ssl/ca-cert.pem
ssl_cert = /etc/mysql/ssl/client-cert.pem
ssl_key = /etc/mysql/ssl/client-key.pem
And here is my WordPress wp-config.php with the client flag configuration.
define( 'MYSQL_CLIENT_FLAGS', 'MYSQLI_CLIENT_SSL' );
I also tried to define the SSL_CA, SSL_KEY, and SSL_CERT in wp-config.php but that didn't help either.
define( 'MYSQL_SSL_KEY', '/etc/apache2/ssl/client-key.pem' );
define( 'MYSQL_SSL_CERT', '/etc/apache2/ssl/client-cert.pem' );
define( 'MYSQL_SSL_CA', '/etc/apache2/ssl/ca-cert.pem' );
Has anyone got this working and what did you need to do?
I cannot get Wordpress to work with using SSL connection for the database.
My client/server setup is working with a regular DB user over ssl so I can confirm it is setup correctly using MariaDB client.
Here is my 50-client.cnf
[client]
ssl_ca = /etc/mysql/ssl/ca-cert.pem
ssl_cert = /etc/mysql/ssl/client-cert.pem
ssl_key = /etc/mysql/ssl/client-key.pem
And here is my WordPress wp-config.php with the client flag configuration.
define( 'MYSQL_CLIENT_FLAGS', 'MYSQLI_CLIENT_SSL' );
I also tried to define the SSL_CA, SSL_KEY, and SSL_CERT in wp-config.php but that didn't help either.
define( 'MYSQL_SSL_KEY', '/etc/apache2/ssl/client-key.pem' );
define( 'MYSQL_SSL_CERT', '/etc/apache2/ssl/client-cert.pem' );
define( 'MYSQL_SSL_CA', '/etc/apache2/ssl/ca-cert.pem' );
Has anyone got this working and what did you need to do?
Share Improve this question asked Apr 26, 2024 at 23:07 themegamenuguy99themegamenuguy99 1- duplicate of stackoverflow.com/a/45602638 – Gantendo Commented Apr 26, 2024 at 23:16
1 Answer
Reset to default 0I got it working after removing the quotes around MYSQLI_CLIENT_SSL.
Before:
define( 'MYSQL_CLIENT_FLAGS', 'MYSQLI_CLIENT_SSL' );
After:
define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL );
本文标签: databaseConfigure Wordpress to use MariaDB over SSL
版权声明:本文标题:database - Configure Wordpress to use MariaDB over SSL? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309050a1933879.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论