admin管理员组

文章数量:1277901

Is there a way install WordPress without configuring it manually on configuration screen?

For example, by providing configurations in configuration file?

I'm talking about configuration as code fashion. Once webserver and db is up, WordPress is already configured using configuration file settings.

So, WordPress admin page is immediately will be available after raising up the webserver.

Is there a way install WordPress without configuring it manually on configuration screen?

For example, by providing configurations in configuration file?

I'm talking about configuration as code fashion. Once webserver and db is up, WordPress is already configured using configuration file settings.

So, WordPress admin page is immediately will be available after raising up the webserver.

Share Improve this question asked Sep 25, 2021 at 17:57 rokpotorokpoto 2243 silver badges14 bronze badges 1
  • have you looked into WP CLI? If the database details are present in wp-config.php then WP will assume the installation has already occurred – Tom J Nowell Commented Sep 25, 2021 at 19:33
Add a comment  | 

1 Answer 1

Reset to default 1

Yes and no. You can bypass the first step of the installation by supplying a wp-config.php file with all the DB details (and hopefully you will not forget to change the secrets in it), but the second stage includes configuring the admin user, and this information needs to be stored in the DB therefor either the DB need to be "magically" set with this information or you will need to amend the install process to create it based on your configuration file.

tl;dr It is possible but unless you predict that you will need to automate the process for tens of sites (and you still need to create your configuration file per site) not sure it is worth the effort.

本文标签: installationInstalled WordPress without configuration screen