Different output from WP-CLI in bash vs PHP exec()

I installed this package on WP-CLI. When I run wp login create in bash it works fine, but when I run exec(“wp login create”) in PHP script WP-CLI return this error:

Error: ‘login’ is not a registered wp command. See ‘wp help’ for available commands.

Did you mean ‘plugin’?

I checked the user from exec(“whoami”) and it’s the same. How can I find the problem?

Read more here:: Different output from WP-CLI in bash vs PHP exec()

Leave a Reply

Your email address will not be published. Required fields are marked *