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 disableReboot back to OS.
source .macosReboot in Recovery Mode and run this in Terminal:
csrutil enableReboot back to OS.
xcode-select --install/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
source brew.shsource node.shFollow this awesome manual. Parts with $PATH setup can be skipped, everything is set in .path.
⚠️ Apache configuration should preferphp-fpmovermod_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>