title: How update php.ini on a Mac OS X Mojave?
body: <p>I'm on Mac OS X Mojave </p>
  
  <p><em>Step 1</em></p>
  
  <p>I ran </p>
  
  <pre><code>php -i | grep php.ini
  </code></pre>
  
  <p>I got </p>
  
  <pre><code>Configuration File (php.ini) Path =&gt; /usr/local/php5/lib
  Loaded Configuration File =&gt; /usr/local/php5/lib/php.ini
  </code></pre>
  
  <p><em>Step 2</em></p>
  
  <p>I open up the ini file </p>
  
  <pre><code>vi /usr/local/php5/lib/php.ini , 
  
  and update memory_limit to -1 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/eKzc1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eKzc1.png" alt="enter image description here"></a></p>
  
  <p><em>Step 3</em></p>
  
  <p>I ran </p>
  
  <pre><code>php -i | grep memory_limit
  </code></pre>
  
  <p>I got </p>
  
  <pre><code>memory_limit =&gt; 256M =&gt; 256M                                                                                      
  </code></pre>
  
  <p><em>Step 4</em></p>
  
  <p>I restart my  </p>
  
  <pre><code>sudo apachectl -k restart
  </code></pre>
  
  <p>and type in my password </p>
  
  <p>and tried </p>
  
  <pre><code>php -i | grep memory_limit
  </code></pre>
  
  <p>again, I still got </p>
  
  <pre><code>memory_limit =&gt; 256M =&gt; 256M                                                                                      
  </code></pre>
  
  <p>Seems like my chages never take any effect ... </p>
  
  <p>Do I need to start any service on a Mac? If so, what command to do that? </p>
  
  <p><strong>phpinfo</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/WWtYR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WWtYR.png" alt="enter image description here"></a></p>