snipt

Ctrl+h for KB shortcuts

Text only

PHP cli on Mamp for Mac OSx

1
2
3
4
5
6
Edit or create the file: /Users/*userdir*/.profile and insert the line:

> export PATH=/Applications/MAMP/bin/php5.3/bin:$PATH

or equivalent path of MAMP php installation.
On next Terminal session it will use MAMP php executable instead of OSX default (thus enabling the use of cli for use with frameworks and like).
https://snipt.net/embed/854c3df975e7076b0a8a32f269654b20/
/raw/854c3df975e7076b0a8a32f269654b20/
854c3df975e7076b0a8a32f269654b20
text
Text only
6
2019-07-10T02:42:12
True
False
False
/api/public/snipt/43352/
php-cli-on-mamp-for-mac-osx
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Edit or create the file: /Users/*userdir*/.profile and insert the line: </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>&gt; export PATH=/Applications/MAMP/bin/php5.3/bin:$PATH </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>or equivalent path of MAMP php installation. </span><span id="L-6"><a name="L-6"></a>On next Terminal session it will use MAMP php executable instead of OSX default (thus enabling the use of cli for use with frameworks and like). </span></pre></div> </td></tr></table>
MAMP, mac, osx, php

Text only

Quit MySQL processes to restart MAMP

killall -9 mysqld
https://snipt.net/embed/faf4123bfdef32d606658ff8b1477e3b/
/raw/faf4123bfdef32d606658ff8b1477e3b/
faf4123bfdef32d606658ff8b1477e3b
text
Text only
1
2019-07-14T03:28:56
True
False
False
/api/public/snipt/38688/
quit-mysql-processes-to-restart-mamp
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>killall -9 mysqld </span></pre></div> </td></tr></table>
MAMP, MySQL