#requirements
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew install openldap libiconv
#httpd
brew install httpd
sudo brew services start httpd
config 80 and localhost: /usr/local/etc/httpd/httpd.conf
sudo apachectl -k restart
#php
brew tap exolnet/homebrew-deprecated
brew install php@5.6
brew install php@7.0
brew install php@7.1
brew install php@7.2
brew install php@7.3
/usr/local/etc/php/5.6/php.ini
/usr/local/etc/php/7.0/php.ini
/usr/local/etc/php/7.1/php.ini
/usr/local/etc/php/7.2/php.ini
/usr/local/etc/php/7.3/php.ini
config: /usr/local/etc/httpd/httpd.conf
LoadModule php7_module /usr/local/opt/php@7.1/lib/httpd/modules/libphp7.so
DirectoryIndex index.php index.html
SetHandler application/x-httpd-php
sudo apachectl -k stop
sudo apachectl start
PHP Switcher Script
curl -L https://gist.github.com/rhukster/f4c04f1bf59e0b74e335ee5d186a98e2/raw > /usr/local/bin/sphp
sphp 7.0