wp-cli: choose php version
-
wp-cli over ssh from my MacOS in terminal.
Server php is 5.5.38
Change to the directory where my wp install is, php version is 7.2.22
While in that directory:
wp cli info
PHP binary: /opt/cpanel/ea-php55/root/usr/bin/php
PHP version: 5.5.38
php.ini used: /opt/cpanel/ea-php55/root/etc/php.ini
WP-CLI root dir: phar://wp-cli.phar
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 0.24.1and any command returns the same error
wp plugin list
Your server is running PHP version 5.5.38 but WordPress 5.3.2 requires at least 5.6.20.I’ve searched every way I know how and can’t find how to convince it to use 7.2.22.
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘wp-cli: choose php version’ is closed to new replies.