MacOS dotfiles with sensible web development setup.
cd; curl -#L https://github.com/rozsival/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}
When setting up a new Mac (or clean install) reboot in Recovery Mode, open Terminal and run:
csrutil disable
Reboot back to OS.
source .macos
Reboot in Recovery Mode and run this in Terminal:
csrutil enable
Reboot back to OS.
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
source brew.sh
source node.sh
Follow this awesome manual. Parts with $PATH
setup can be skipped, everything is set in .path
.
⚠️ Apache configuration should preferphp-fpm
overmod_php
.
LoadModule proxy_module lib/httpd/modules/mod_proxy.so
LoadModule proxy_fcgi_module lib/httpd/modules/mod_proxy_fcgi.so
<IfModule proxy_fcgi_module>
<VirtualHost *:*>
ProxyPassMatch "^/(.*\.php(/.*)?)$" "fcgi://127.0.0.1:9000/<$serverRoot>/$1"
</VirtualHost>
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</IfModule>