- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
25
" >sudo port -f uninstall installed
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
3
" >sudo port -f uninstall installed
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
26
" >fink remove --recursive daemonic xinitrc
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
4
" >fink remove --recursive daemonic xinitrc
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
27
" >ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"</pre>
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
5
" >ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
28
" >brew doctor</pre>
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
6
" >brew doctor</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
29
" >brew tap homebrew/dupes
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
7
" >brew tap homebrew/dupes
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
30
" >brew update</pre>
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
8
" >brew update</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
31
" >sudo apachectl stop
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
9
" >sudo apachectl stop
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
32
" >brew install httpd24 --with-privileged-ports --with-http2</pre>
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
10
" >brew install httpd24 --with-privileged-ports --with-http2</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
33
" >#check if server is up
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
11
" >#check if server is up
- <br /><pre class="codelisting" data-syntax="null" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
34
" >#if using the global root
+ <br /><pre class="codelisting" data-syntax="null" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
12
" >#if using the global root
- <br /><pre class="codelisting" data-syntax="HTTP" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox3
5
" >#if using the global root
+ <br /><pre class="codelisting" data-syntax="HTTP" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
1
3" >#if using the global root
- <br /><pre class="codelisting" data-syntax="HTTP" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
36
" >AllowOverride All</pre>
+ <br /><pre class="codelisting" data-syntax="HTTP" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
14
" >AllowOverride All</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
37
" ># remove existing PHP/PEAR config files (only need to do this the first time)
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
15
" ># remove existing PHP/PEAR config files (only need to do this the first time)
- </li><li> Make changes to Apache
t
o
use
n
ewly
i
ns
t
alled PHP vers
ion
<br
/>Af
t
er
PHP installs, H
o
m
e
b
r
ew wi
l
l sh
o
w a
c
oup
le
of op
t
ions for making the
ap
propri
a
te
ch
ang
e
s
t
o A
p
a
c
he t
o
re
co
gniz
e t
he PHP versi
o
n
yo
u
'v
e
just
installed
.
For
example, h
er
e i
s
a descript
ion
from Homebrew of one option:
<br /><pre class="codelisting" data-syntax="null" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
38
" >
To enable PHP in
A
pache a
dd
t
h
e
fol
lo
wing
t
o
httpd.
co
nf
and
restart Apache:
LoadModule php5_module /usr/local/opt/php55/libexec/apache2/libphp5.so</pre>
+ </li><li> Make changes to Apache
c
on
f
i
gura
tion
a
t
<c
o
d
e
>/us
r
/
loc
a
l
/
et
c/
apache
2/2.4/ht
tp
d.
co
nf</
co
d
e
>
to u
s
e
newly
installed
PHP
v
ersion<br /><pre class="codelisting" data-syntax="null" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
16
" >
#
Add
p
h
p
lo
ad
m
o
dule
co
mm
and LoadModule php5_module /usr/local/opt/php55/libexec/apache2/libphp5.so
# Set directory indexes to PHP by changing the DirectoryIndex options<IfModule dir_module> DirectoryIndex index.php index.html</IfModule># Add FilesMatch directive<FilesMatch \.php$> SetHandler application/x-httpd-php</FilesMatch>
</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
39
" >brew install php55-xdebug</pre>
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
17
" >brew install php55-xdebug</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
40
" >xdebug.remote_enable=1
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
18
" >xdebug.remote_enable=1
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
4
1" >sudo apachectl restart</pre>
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox1
9
" >sudo apachectl restart</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
4
2" >brew mysql</pre>
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox2" >brew mysql</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
43
" >mysql.server restart</pre>
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
21
" >mysql.server restart</pre>
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
44
" >#list versions of all programs installed by home-brew
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
22
" >#list versions of all programs installed by home-brew
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
45
" >brew update #first update homebrew itself
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
23
" >brew update #first update homebrew itself
- <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox4
6
" ># to see what would be removed (without removing anything)
+ <br /><pre class="codelisting" data-syntax="shell" data-wrap="1" dir="ltr" style="white-space:pre-wrap; white-space:-moz-pre-wrap !important; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" id="codebox
2
4" ># to see what would be removed (without removing anything)