I'm trying to install/configure wp-cli for my WordPress website but I keep getting an error everytime I try and run a command.

I have a VPS server with Bluehost and I followed a simple installation guide but I keep getting an error related to running a command as root in which I add the --allow-root tag but now I get the error below:

Error: Strange wp-config.php file: wp-settings.php is not loaded directly.

How can I fix this?

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.