Last active
November 12, 2022 10:11
-
-
Save gaddoz/4be95844ddfd0f9ff2f0b2e4b336d8a0 to your computer and use it in GitHub Desktop.
macos-dev-setup-old #macos
This file contains 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
inspired from | |
http://getgrav.grav.netdna-cdn.com/blog/macos-sierra-apache-multiple-php-versions | |
https://lukearmstrong.github.io/2016/12/setup-apache-mysql-php-homebrew-macos-sierra/ | |
https://mallinson.ca/osx-web-development/ | |
xcode-select --install | |
sudo apachectl stop | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
brew tap homebrew/apache | |
brew tap homebrew/completions | |
brew tap homebrew/php | |
brew install bash-completion | |
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion | |
brew install httpd24 --with-privileged-ports --with-http2 | |
which apachectl -> expected output: /usr/local/bin/apachectl | |
sudo apachectl start | |
sudo brew services start homebrew/apache/httpd24 | |
brew tap homebrew/php | |
brew unlink php55 | |
brew install php56 --with-httpd24 | |
brew unlink php56 | |
brew install php70 --with-httpd24 | |
brew unlink php70 | |
brew install php71 --with-httpd24 | |
brew unlink php71 | |
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime | |
sublime /usr/local/etc/php/5.5/php.ini | |
sublime /usr/local/etc/php/5.6/php.ini | |
sublime /usr/local/etc/php/7.0/php.ini | |
sublime /usr/local/etc/php/7.1/php.ini | |
date.timezone = Europe/Rome | |
sublime /usr/local/etc/apache2/2.4/httpd.conf | |
brew install mariadb | |
mysql_install_db | |
mysql.server start | |
/usr/local/bin/mysql_secure_installation | |
brew services start mariadb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment