• Resolved jplew

    (@jplew)


    Hi: when I try to install WP-CLI on my Mac using the curl https://wp-cli.org/installer.sh | bash command, I get the following error message:

    The detect_unicode setting must be disabled.
    Add the following to the end of your php.ini:
    detect_unicode = Off

    A php.ini file does not exist. You will have to create one.
    If you can not 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.

    PHP is not installed using the OS X bundle or any kind of package, but it is working using MAMP. Therefore my php.ini file is located here: /Applications/MAMP/conf/php5.4.4/php.ini

    Is there any way to tell the installer to use that ini file by using symlinks or changing PATH variables, or do I need to install PHP using one of the former methods? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Command Line Interface: WP-CLI] Problem installing WP-CLI: cannot locate php.in’ is closed to new replies.