Last active
August 29, 2015 14:27
-
-
Save gegere/9346a9e3fa8369c50b58 to your computer and use it in GitHub Desktop.
Error: Strange wp-config.php file: wp-settings.php is not loaded directly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/temp && cd temp | |
git clone https://github.com/markjaquith/WordPress-Skeleton.git wordpress && cd wordpress | |
git submodule update --init --recursive | |
wp plugins list --allow-root | |
# this works, let's say I edit the database credentials | |
# move WordPress Core back a directory | |
mv wp ../ | |
# symlink the directory | |
ln -s ~/temp/wp wp | |
# wp-config.php needs to point to the correct one | |
echo '<?php include_once("${_SERVER['DOCUMENT_ROOT']}/wp-config.php");' >> wp/wp-config.php | |
wp plugins list --allow-root | |
# this does NOT work | |
# "Error: Strange wp-config.php file: wp-settings.php is not loaded directly." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment