Monday, 20 May 2013

Why can't the WP-CLI installer find my php.ini?

Why can't the WP-CLI installer find my php.ini?

I am trying to install WP-CLI on my Mac using the standard installation command (found here: http://wp-cli.org), yet I am receiving the following error message:
A php.ini file does not exist. You will have to create one. If you cannot modify the ini file, you can also run php -d option=value to modify ini values on the fly. You can use -d multiple times.`
I have not installed the bundled PHP that ships with OS X, nor am I using any kind of package. I use MAMP for my local development environment, so my php.ini file is located here:
/Applications/MAMP/conf/php5.4.4/php.ini
Can anyone please advise on the best way to get around this error message? Thanks.

No comments:

Post a Comment