On a development server I have a co-install of PHP 5.6 & 7; nginx is configured with PHP 5.6. When I type "wp" it returns several errors and at the end of the error is a message containing the following:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Typing wp --info returns:
PHP binary: /usr/bin/php7.0
PHP version: 7.0.10-2+deb.sury.org~precise+1
php.ini used: /etc/php/7.0/cli/php.ini
WP-CLI root dir: phar://wp-cli.phar
WP-CLI packages dir:
WP-CLI global config: /srv/www/wp-cli.yml
WP-CLI project config:
WP-CLI version: 0.26.0-alpha-5672b63
WP-CLI seems to be defaulting to PHP 7, I would prefer it to use PHP 5.6.
So I was wondering if there was an option I could add to the configuration yml file to select which PHP version to use?
If you need any further information, please let me know