Last active
March 8, 2018 08:41
-
-
Save bordeo/c42adef81807d5cd1823 to your computer and use it in GitHub Desktop.
New Mac Web developer
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
#LAST EDIT 18/07/2017 | |
# | |
# CHANGELOG | |
# | |
# * 18/07/2017 update docker images, port bind and mount dir | |
# | |
xcode-select --install | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
brew install svn | |
brew install siege | |
brew tap homebrew/services | |
brew install redis | |
brew install mysql | |
brew install nginx | |
#brew install varnish | |
brew services start varnish | |
# httpd | |
sudo apachectl stop | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null | |
brew install homebrew/apache/httpd24 --with-privileged-ports --with-http2 | |
sudo cp -v $(brew --prefix httpd24)/homebrew.mxcl.httpd24.plist /Library/LaunchDaemons | |
sudo chown -v root:wheel /Library/LaunchDaemons/homebrew.mxcl.httpd24.plist | |
sudo chmod -v 644 /Library/LaunchDaemons/homebrew.mxcl.httpd24.plist | |
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.httpd24.plist | |
sudo brew services start httpd24 | |
open -e /usr/local/etc/httpd/httpd.conf | |
#Attenzione aggiungere il bind 127.0.0.1 su | |
#Listen 127.0.0.1:8080 | |
#needed for magento2 | |
sudo brew services restart httpd24 | |
#PHP | |
brew tap homebrew/homebrew-php | |
brew install libxml2 | |
brew install php55 --with-httpd24 | |
brew unlink php55 | |
brew install php56 --with-httpd24 | |
brew unlink php56 | |
brew install php70 --with-httpd24 | |
brew unlink php70 | |
brew install php71 --with-httpd24 | |
curl -L https://gist.github.com/w00fz/142b6b19750ea6979137b963df959d11/raw > /usr/local/bin/sphp | |
sudo chmod +x /usr/local/bin/sphp | |
brew install libjpeg | |
brew install libpng | |
brew install phpmyadmin | |
echo "alias restart_httpd24='sudo brew services restart httpd24'" >> ~/.extra | |
echo "alias restart_mysql='brew services restart mysql'" >> ~/.extra | |
echo "Include /usr/local/etc/httpd/extra/vhosts/*.conf" >> /usr/local/etc/httpd/extra/httpd-vhosts.conf | |
open https://getgrav.org/blog/macos-sierra-apache-mysql-vhost-apc | |
open https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions | |
#Install docker | |
mkdir -p ~/mysqldatabases | |
docker search mariadb | |
docker pull mariadb:10.1.23 | |
docker run --name mariadblocal -e MYSQL_ROOT_PASSWORD=sqladm -p 3306:3306 -v ~/mysqldatabases:/var/lib/mysql -d mariadb:10.1.23 | |
docker update --restart=always mariadblocal | |
docker restart mariadblocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment