title: OSX Sierra - how to increase PHP memory limit correctly?
body: <p>I need to increase the memory limit for PHP on the command line so I can use Composer.</p>
  
  <p>Output of <code>php -i | grep memory_limit</code></p>
  
  <blockquote>
    <p>memory_limit => 256M => 256M</p>
  </blockquote>
  
  <p>Output of <code>php --ini</code></p>
  
  <pre><code>Configuration File (php.ini) Path: /usr/local/php5/lib
  Loaded Configuration File:         /usr/local/php5/lib/php.ini
  Scan for additional .ini files in: /usr/local/php5/php.d
  Additional .ini files parsed:      /usr/local/php5/php.d/10-extension_dir.ini,
  /usr/local/php5/php.d/20-extension-opcache.ini,
  /usr/local/php5/php.d/40-openssl.ini,
  /usr/local/php5/php.d/50-extension-apcu.ini,
  /usr/local/php5/php.d/50-extension-curl.ini,
  /usr/local/php5/php.d/50-extension-gmp.ini,
  /usr/local/php5/php.d/50-extension-igbinary.ini,
  /usr/local/php5/php.d/50-extension-imap.ini,
  /usr/local/php5/php.d/50-extension-intl.ini,
  /usr/local/php5/php.d/50-extension-mcrypt.ini,
  /usr/local/php5/php.d/50-extension-memcache.ini,
  /usr/local/php5/php.d/50-extension-memcached.ini,
  /usr/local/php5/php.d/50-extension-mongo.ini,
  /usr/local/php5/php.d/50-extension-mssql.ini,
  /usr/local/php5/php.d/50-extension-oauth.ini,
  /usr/local/php5/php.d/50-extension-pdo_dblib.ini,
  /usr/local/php5/php.d/50-extension-pdo_pgsql.ini,
  /usr/local/php5/php.d/50-extension-pgsql.ini,
  /usr/local/php5/php.d/50-extension-propro.ini,
  /usr/local/php5/php.d/50-extension-raphf.ini,
  /usr/local/php5/php.d/50-extension-readline.ini,
  /usr/local/php5/php.d/50-extension-redis.ini,
  /usr/local/php5/php.d/50-extension-solr.ini,
  /usr/local/php5/php.d/50-extension-ssh2.ini,
  /usr/local/php5/php.d/50-extension-twig.ini,
  /usr/local/php5/php.d/50-extension-uploadprogress.ini,
  /usr/local/php5/php.d/50-extension-xdebug.ini,
  /usr/local/php5/php.d/50-extension-xhprof.ini,
  /usr/local/php5/php.d/50-extension-xsl.ini,
  /usr/local/php5/php.d/60-extension-pecl_http.ini,
  /usr/local/php5/php.d/99-liip-developer.ini
  </code></pre>
  
  <p>So I edit <code>/usr/local/php5/lib/php.ini</code> but it's always 256MB...</p>
  
  <p>Restarted Apache, but it's cli, but still no success.</p>