Last active
November 15, 2017 16:33
-
-
Save tg247/d4bcec7c7325fc244765b48d884a8e32 to your computer and use it in GitHub Desktop.
Mac OS X High Sierra / PHP Apache httpd Config Node NPM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions | |
# https://robots.thoughtbot.com/starting-and-stopping-background-services-with-homebrew | |
# https://getgrav.org/blog/macos-sierra-apache-mysql-vhost-apc | |
# https://gist.github.com/rcugut/c7abd2a425bb65da3c61d8341cd4b02d | |
## brew install php | |
$ brew install php56 --with-httpd | |
$ brew unlink php56 | |
$ brew reinstall php70 --with-httpd | |
## php switching | |
## 70 71 ... | |
$ sphp 70 | |
## brew update | |
$ brew update | |
$ brew upgrade | |
## xdebug / ini | |
## 70 71 ... | |
$ brew install php70-xdebug --build-from-source | |
$ code /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini | |
# [xdebug] | |
# zend_extension="/usr/local/opt/php70-xdebug/xdebug.so" | |
# xdebug.remote_enable=1 | |
# xdebug.remote_host=localhost | |
## brew services httpd | |
## once | |
$ sudo brew services start httpd | |
## list / stop | |
$ brew services list | |
$ brew services stop <SRV> | |
## apache control | |
$ sudo apachectl start | |
$ sudo apachectl stop | |
$ sudo apachectl -k restart | |
## apache conf | |
$ code /usr/local/etc/httpd/httpd.conf | |
## updating n (node updater) | |
#$ npm install -g n | |
## updating node.js | |
#$ n latest | |
$ brew update node | |
## updating yarn | |
$ brew update yarn | |
## updating npm | |
#$ curl https://www.npmjs.org/install.sh | sh | |
$ npm update -g npm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment