Title: [Command Line Interface: WP-CLI] Problem installing WP-CLI: cannot locate php.in
Last modified: August 21, 2016

---

# [Command Line Interface: WP-CLI] Problem installing WP-CLI: cannot locate php.in

 *  Resolved [jplew](https://wordpress.org/support/users/jplew/)
 * (@jplew)
 * [13 years ago](https://wordpress.org/support/topic/command-line-interface-wp-cli-problem-installing-wp-cli-cannot-locate-phpin/)
 * Hi: when I try to install WP-CLI on my Mac using the `curl http://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)

 *  [jmslbam](https://wordpress.org/support/users/jmslbam/)
 * (@jmslbam)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/command-line-interface-wp-cli-problem-installing-wp-cli-cannot-locate-phpin/#post-3770623)
 * Looks like you got it fixed on GitHub, could you close this ticket? Thnx!
 *  Thread Starter [jplew](https://wordpress.org/support/users/jplew/)
 * (@jplew)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/command-line-interface-wp-cli-problem-installing-wp-cli-cannot-locate-phpin/#post-3770625)
 * sure thing! it’s closed.
    Here’s the solution for any of you fine folk from the
   future: [https://github.com/wp-cli/wp-cli/issues/466](https://github.com/wp-cli/wp-cli/issues/466)

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.

## Tags

 * [command line](https://wordpress.org/support/topic-tag/command-line/)
 * [path](https://wordpress.org/support/topic-tag/path/)
 * [php.ini](https://wordpress.org/support/topic-tag/php-ini/)
 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 2 replies
 * 2 participants
 * Last reply from: [jplew](https://wordpress.org/support/users/jplew/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/command-line-interface-wp-cli-problem-installing-wp-cli-cannot-locate-phpin/#post-3770625)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
