This error occurs when installing a drupal 9 installation. Drupal requires you to provide a folder to put in your configuration yml files. Add the following to your settings.php file:

$settings["config_sync_directory"] = '../config';

This fixes the issue.

Make sure the folder exists!


Saved you some valuable time?

Donate and get more free time-saving code on this website in the future.