| SYSTEM INFORMATION
OS type and version: Ubuntu 22.04.5 LTS
Webmin version: 2.303
Virtualmin version: 7.30.8 Pro
Webserver version: Apache/2.4.52 (Ubuntu)
Related packages: WebApps-> Wordpress + WP Workbench
Hi everyone,
I’m running into an issue deploying a WordPress site with an Amazon RDS database that has SSL enforced. I’ve already configured RDS with SSL in Virtualmin Pro, and a manual connection works fine when I add the necessary SSL parameters in my wp-config.php
(i.e., define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL)
). However, when I use WP Workbench to deploy WordPress, I hit a snag:
Partial installation error
wp config create
failed : Error: Database connection error (1045) Access denied for user ‘domain’@‘ipaddress’ (using password: YES)
To clarify:
- Manual Configuration: By manually editing
wp-config.php
to include the required SSL flag (and adding any other SSL-related parameters like certificate paths if necessary), and the parameters for the external RDS endpoint, my site (and virtualmin) connects to RDS without issues. - WP Workbench Issue: WP Workbench, which relies on running
wp config create
to generate the configuration, seems to “forget” about the SSL connection details. The connection test fails with error 1045—even though the same credentials work fine when I hard-code the parameters in the config.
I suspect that the WP Workbench (or the underlying WP-CLI commands) isn’t including MYSQLI_CLIENT_SSL
(or the SSL certificate parameters) automatically in the configuration it generates. I haven’t found any mention of this in the docs (or at least I haven’t looked hard enough), and I’m wondering if this is a known issue or if there’s a recommended workaround.
Has anyone encountered this mismatch between manual config and WP Workbench when using an RDS instance with SSL enforced?
Any insights on one or more of the following would be very helpful:
- A method to have WP Workbench (or wp-cli) include the necessary SSL parameters automatically during the configuration creation.
- A recommended workflow or patch—perhaps running a manual config creation step before WP Workbench continues.
- Confirmation if this is a known issue with Virtualmin Pro’s ‘Web Apps’ handling of WordPress installations under these conditions.
I appreciate any help or pointers in resolving this issue.
Thanks in advance,
– keijo