Wordpress installations being created with unmodified wp-config.php

It looks like since the upgrade to 6.06 that Wordpress installations done through Virtualmin are being done with wp-config.php files that are identical to the sample file:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );

/** MySQL database username */
define( 'DB_USER', 'username_here' );

/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
...

define( 'AUTH_KEY',         'put your unique phrase here' );
define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
define( 'NONCE_KEY',        'put your unique phrase here' );
define( 'AUTH_SALT',        'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
define( 'NONCE_SALT',       'put your unique phrase here' );

etc.

I've confirmed this with two Wordpress installations in the last 12 hours.

Craig

Status: 
Closed (fixed)

Comments

Presumably if I just manually edit the wp-config.php file the Wordpress installation will work, but my concern when something like this breaks is that something else is also broken.

I know it's the weekend, but I'd like some feedback on this by Monday morning UTC so that I can move forward with the user. Thanks.

timbrogdon's picture
Submitted by timbrogdon on Sun, 02/24/2019 - 12:44 Pro Licensee

I have also confirmed this. It used to always setup the database connection details in wp-config.php file, however now a manual edit is required to get wordpress working. As a sysadmin this is an easy work around but for a customer, this will not be known, so having the file auto updated is somewhat important.

Do you have the wp CLI command for installing Wordpress on your system?

Hi Jamie,

No. I'm aware of its existence, but I have never installed it and don't even know off the top of my head if it's something installed server-wide or if it's something that's somehow jailed inside a particular Wordpress installation.

But the short answer is NO.

Craig

I can confirm that manually creating the wp-config.php file gets Wordpress working. Like I say, however, I don't know if other functions related to "installing" web apps generally might be affected by whatever has broken.

I had a closer look at this, and it turns out that the format of wp-config.php changed slightly in the latest Wordpress release. We will release an update to the script installer to handle this case.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.