ELLORDNET-MPR:~ ellord$ php -v
PHP 7.1.23 (cli) (built: Nov 7 2018 18:20:35) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
ELLORDNET-MPR:~ ellord$ brew list | grep php
php
php56
php70
php71
php71-imagick
php71-mcrypt
php72
php@5.6
php@7.0
php@7.1
ELLORDNET-MPR:~ ellord$ brew update
Updated 1 tap (homebrew/core).
==> Updated Formulae
node ✔ docker dscanner dynamips jhipster ponyc swagger-codegen
cassandra@2.1 docker-completion duck eccodes logtalk rust swiftlint
cassandra@2.2 dovecot dwdiff elasticsearch@5.6 mosquitto sbcl tmux-xpanes
click dpkg dwm emscripten mysql@5.6 skaffold xmrig
dita-ot draco dyld-headers gdk-pixbuf pdftoedn sn0int youtube-dl
ELLORDNET-MPR:~ ellord$
ELLORDNET-MPR:~ ellord$ brew upgrade
==> Upgrading 38 outdated packages:
pyenv 1.2.8_1 -> 1.2.9, libtiff 4.0.8_5 -> 4.0.10_1, php@7.1 7.1.11_22 -> 7.1.26, jansson 2.10 -> 2.12, ffmpeg 4.1_1 -> 4.1.1, libxml2 2.9.7 -> 2.9.9_2, gdb 7.12_1 -> 8.2.1, nghttp2 1.27.0 -> 1.36.0, libpng 1.6.34 -> 1.6.36, mariadb 10.3.12 -> 10.3.13, freetype 2.8.1 -> 2.9.1, python 3.7.1 -> 3.7.2_2, boost 1.65.1 -> 1.68.0_1, jemalloc 5.0.1 -> 5.1.0, maven 3.5.3 -> 3.6.0, icu4c 62.1 -> 63.1, readline 7.0.5 -> 8.0.0, carthage 0.29.0 -> 0.32.0, sqlite 3.26.0 -> 3.27.1, c-ares 1.13.0 -> 1.15.0, php 7.2.0RC6_9 -> 7.3.2, unixodbc 2.3.4 -> 2.3.7, mongodb 3.0.4 -> 4.0.3_1, curl 7.56.1 -> 7.64.0, libvpx 1.7.0 -> 1.8.0, httpd 2.4.29 -> 2.4.38, freetds 1.00.15 -> 1.00.109, libsodium 1.0.15 -> 1.0.17, apr 1.6.3 -> 1.6.5, mono 4.6.1.5 -> 5.18.0.240, e2fsprogs 1.44.0 -> 1.44.5, pcre 8.41 -> 8.43, x265 2.9 -> 3.0, node 11.1.0 -> 11.10.1, jpeg 9b -> 9c, imagemagick 7.0.7-10 -> 7.0.8-28, ruby 2.5.3_1 -> 2.6.1, git 2.19.1 -> 2.21.0
==> Upgrading apr
==> Downloading https://homebrew.bintray.com/bottles/apr-1.6.5.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring apr-1.6.5.mojave.bottle.tar.gz
==> Caveats
apr is keg-only, which means it was not symlinked into /usr/local,
because Apple's CLT package contains apr.
If you need to have apr first in your PATH run:
echo 'export PATH="/usr/local/opt/apr/bin:$PATH"' >> ~/.bash_profile
==> Summary
🍺 /usr/local/Cellar/apr/1.6.5: 60 files, 1.3MB
Removing: /usr/local/Cellar/apr/1.6.3... (60 files, 1.3MB)
==> Upgrading e2fsprogs
==> Downloading https://homebrew.bintray.com/bottles/e2fsprogs-1.44.5.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring e2fsprogs-1.44.5.mojave.bottle.tar.gz
==> Caveats
e2fsprogs is keg-only, which means it was not symlinked into /usr/local,
because this installs several executables which shadow macOS system commands.
ELLORDNET-MPR:~ ellord$ brew install php@7.3
Updating Homebrew...
Warning: php 7.3.2 is already installed and up-to-date
To reinstall 7.3.2, run `brew reinstall php`
ELLORDNET-MPR:~ ellord$ brew reinstall php
==> Reinstalling php
==> Downloading https://homebrew.bintray.com/bottles/php-7.3.2.mojave.bottle.1.tar.gz
Already downloaded: /Users/ellord/Library/Caches/Homebrew/downloads/36ec6f4e1c8a5e9ea3a1aa819bba2a7cbaa704bc399011fc14e5c249eeea383b--php-7.3.2.mojave.bottle.1.tar.gz
==> Pouring php-7.3.2.mojave.bottle.1.tar.gz
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set php_ini /usr/local/etc/php/7.3/php.ini system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set php_dir /usr/local/share/pear system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set doc_dir /usr/local/share/pear/doc system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set ext_dir /usr/local/lib/php/pecl/20180731 system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set bin_dir /usr/local/opt/php/bin system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set data_dir /usr/local/share/pear/data system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set cfg_dir /usr/local/share/pear/cfg system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set www_dir /usr/local/share/pear/htdocs system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set man_dir /usr/local/share/man system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set test_dir /usr/local/share/pear/test system
==> /usr/local/Cellar/php/7.3.2/bin/pear config-set php_bin /usr/local/opt/php/bin/php system
==> /usr/local/Cellar/php/7.3.2/bin/pear update-channels
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php7_module /usr/local/opt/php/lib/httpd/modules/libphp7.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
Finally, check DirectoryIndex includes index.php
DirectoryIndex index.php index.html
The php.ini and php-fpm.ini file can be found in:
/usr/local/etc/php/7.3/
To have launchd start php now and restart at login:
brew services start php
Or, if you don't want/need a background service you can just run:
php-fpm
==> Summary
🍺 /usr/local/Cellar/php/7.3.2: 521 files, 77MB
ELLORDNET-MPR:~ ellord$ echo 'export PATH="/usr/local/opt/php@7.3/bin:$PATH"' >> ~/.bash_profile
ELLORDNET-MPR:~ ellord$ echo 'export PATH="/usr/local/opt/php@7.3/sbin:$PATH"' >> ~/.bash_profile
ELLORDNET-MPR:~ ellord$ source ~/.bash_profile
ELLORDNET-MPR:~ ellord$ php -v
PHP 7.3.2 (cli) (built: Feb 14 2019 10:08:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.2, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.2, Copyright (c) 1999-2018, by Zend Technologies
'Mac' 카테고리의 다른 글
OSX SVN Server 세팅 (0) | 2022.04.12 |
---|---|
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory (0) | 2020.09.01 |
원격 타임머신으로 복구하기 (0) | 2019.01.08 |
원격 타임머신 백업 두번째 (0) | 2019.01.08 |
디스크유틸리티에서 파티션 비활성화 될 때. (0) | 2019.01.08 |