I trying to use the wp-cli for wordpress in XAMPP:
I downloaded wp-cli.phar into wordpress directory in XAMPP in ubuntu 16.04
/opt/lampp/htdocs/wordpress/
prompting php wp-cli.phar
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
and checking the info: php wp-cli.phar --info
PHP binary: /usr/bin/php7.0
PHP version: 7.0.8-0ubuntu0.16.04.2
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:
WP-CLI project config: /opt/lampp/htdocs/wordpress/wp-cli.local.yml
WP-CLI version: 0.25.0
I notice that I'm not using the PHP installed inside XAMPP.
How can I change those wp-cli.phar path to use the php.ini in /opt/lampp/etc ?