[英]Wordpress wp-config.php
Is there any way to fully and manually install Wordpress via a script / CLI?有没有办法通过脚本/ CLI 完全手动安装 Wordpress?
I've tried to configure wp-config.php to do it, but I can't seem to be able to pass the language selection page.我已经尝试配置 wp-config.php 来做到这一点,但我似乎无法通过语言选择页面。
I've tried to manually download the language package and add a line to the config file, as follows (assume sudo where needed, as well as the correct path to everything):我尝试手动下载语言包并在配置文件中添加一行,如下所示(假设需要 sudo,以及所有内容的正确路径):
As for the following steps, below in images, any idea as to how I can achieve a full installation or where could I find more information regarding my problem?至于以下图片中的以下步骤,是否有关于如何实现完整安装或在哪里可以找到有关我的问题的更多信息的任何想法?
This server is running on a VM (VirtualBox), powered by CentOS 8.该服务器在由 CentOS 8 提供支持的 VM (VirtualBox) 上运行。
Images of the necessary steps in the browser:浏览器中必要步骤的图像:
Yep, the nifty: wp cli
, from here: https://wp-cli.org/是的,漂亮的:
wp cli
,来自这里: https : //wp-cli.org/
wp core download
wp config create --dbname=YOURDBNAME --dbuser=YOURDBUSER --dbpass=DBPASS
wp core install --url=http://www.example.com --title='My WP Site' --admin_user=ADMINUSERNAME --admin_password=CLEARTEXTPASS --admin_email=ADMINEMAIL --skip-email
And you are done :)你完成了:)
WP loading calls is_blog_installed()
which checks a number of things and decides whether to show the install screens. WP 加载调用
is_blog_installed()
,它会检查许多内容并决定是否显示安装屏幕。
From the looks of it, you must set the siteurl
in wp_options table to load the site instead of the installer从外观上来看,你必须设置
siteurl
在wp_options表中加载网站而不是安装的
This could be relevant as well: https://wordpress.org/support/article/automated-installation/这也可能是相关的: https : //wordpress.org/support/article/automated-installation/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.