Forum archive
Unable to use WP-CLI nor Gravity view CLI
Hello,
You'll immediately realise that I'm a newbie, sorry in advance if my issue comes from a simple settings solution. I'm using Wordpress on Turnkeylinux and installed WP-CLI.
wp --info gives me the following :
OS: Linux 3.16.0-6-amd64 #1 SMP Debian 3.16.56-1 (2018-04-28) x86_64 Shell: PHP binary: /usr/bin/php5 PHP version: 5.6.33-0+deb8u1 php.ini used: /etc/php5/cli/php.ini WP-CLI root dir: phar://wp-cli.phar WP-CLI vendor dir: phar://wp-cli.phar/vendor WP_CLI phar path: /root WP-CLI packages dir: WP-CLI global config: WP-CLI project config: WP-CLI version: 1.5.1
I'd like to install Gravity CLI to be able to import entries. I tried :
> wp plugin search gravity
Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress install exists under.
If you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.
If you'd like to continue as root, please run this again, adding this flag: --allow-root
If you'd like to run it as the user that this site is under, you can run the following to become the respective user:
sudo -u USER -i -- wp <command>
So I tried :
> wp plugin search gravity --allow-root Error: This does not seem to be a WordPress install. Pass --path=`path/to/wordpress` or run `wp core download`.
Then tried to move to the Wordpress folder :
cd /var/www/wordpress
And again :
> wp plugin search gravity --allow-root PHP Notice: Constant AUTH_KEY already defined in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1145) : eval()'d code on line 10 PHP Notice: Constant AUTH_SALT already defined in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1145) : eval()'d code on line 11 PHP Notice: Constant FS_METHOD already defined in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1145) : eval()'d code on line 37
Honestly I have no idea to solve my issue. So I tried installing Gravity-CLI from the wordpress plugin manager. But get the same things :
> wp help gf --allow-root PHP Notice: Constant AUTH_KEY already defined in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1145) : eval()'d code on line 10 PHP Notice: Constant AUTH_SALT already defined in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1145) : eval()'d code on line 11 PHP Notice: Constant FS_METHOD already defined in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1145) : eval()'d code on line 37
May someone give me a hand with this one ? Thanks
Mic



Read the topic on this page but I don't know how to use the :
sudo chown -R apache:group /my/php/session