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 |1 Answer
Reset to default 1Yes 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
版权声明:本文标题:installation - Installed WordPress without configuration screen 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741300724a2371075.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wp-config.php
then WP will assume the installation has already occurred – Tom J Nowell ♦ Commented Sep 25, 2021 at 19:33