Provision wp-config.php

How can I edit and provision the wp-config.php file before running the wordpress installation wizard in localwp.

Reason: preset from the installation of DB_CHARSET and DB_COLLATE different from the default configuration of wordpress.

Thanks!

Hey @DevOverSysNET, Welcome to the Local Community Forums!

I can see how you would need this, but I don’t think there is a way to edit and configure the wp-config.php file before provisioning WordPress in Local.

Going forward, you might want to create a feature request to help better define how this should work:

In terms of a work around, you might be able to:

  1. create a new site in Local
  2. drop the DB
  3. make the changes to the wp-config.php file
  4. re-create the db
  5. install WordPress again

I haven’t tried this in a while, but I know that it might not be as easy as it sounds because wpcli needs some upstream changes in order to communicate with Local’s database.