Wordpress Installation Script Fails (Can't find/create wp-config.php) [SOLVED]

Hi,

I’m trying to streamline installing Wordpress and saw that there is a Wordpress installation script in Virtualmin.

I create a fresh virtual server, click “Install Scripts”, and select Wordpress.

I select “top level” installation directory, and use default credentials.

This is the output I get:

Configuring webserver PHP settings .. .. done. Applying web server configuration .. .. done

Now installing WordPress version 4.9.5 …
wp config create failed : Error: ‘wp-config.php’ not found. Either create one manually or use wp core config.
More information on using this script can be found at http://wordpress.org/.

… installation was only partially complete.
Re-loading Webmin …
… done

Applying web server configuration …
… done

I realize I could manually copy/create this file, but that seems to defeat the purpose of using the script.

Any thoughts as to why this might be failing?

Update: Turns out I had an older version of WP-CLI installed. Updating WP-CLI to the newest version resolved the issue.