我尝试使用VCCW使wp与自定义路径一起使用。
当前文件看起来与此类似:
index.php: .. require( 'wpcore/wp-blog-header.php' );
wp load.php: <?php require_once('wpcore/wp-load.php');
conf.php - custom config, actually moved wp-config
wpcore - original wp folder
.htaccess
这是wp调试
vagrant@customconf:/www/customconf/public_html$ wp config get --debug
Debug (bootstrap): Using default global config: /home/vagrant/.wp-cli/config.yml (0.22s)
Debug (bootstrap): No project config found (0.225s)
Debug (bootstrap): argv: /usr/local/bin/wp config get --debug (0.225s)
Debug (bootstrap): ABSPATH defined: /www/customconf/public_html/ (0.226s)
Debug (bootstrap): Running command: config list (0.228s)
Error: Strange wp-config.php file: wp-settings.php is not loaded directly.
wpcore / wp-config.php:
require_once(path / to / conf.php);
除了wp cli之外,所有功能都完美运行
如何启用它?
谢谢