Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.52 KB

README.md

File metadata and controls

78 lines (52 loc) · 1.52 KB

Vít’s dotfiles

MacOS dotfiles with sensible web development setup.

Installation

Download

cd; curl -#L https://github.com/rozsival/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}

Disable csrutil

When setting up a new Mac (or clean install) reboot in Recovery Mode, open Terminal and run:

csrutil disable

Reboot back to OS.

Sensible Mac OS defaults

source .macos

Enable csrutil again

Reboot in Recovery Mode and run this in Terminal:

csrutil enable

Reboot back to OS.

Install build tools

xcode-select --install

Install brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
source brew.sh

Setup development environment

Node.js

source node.sh

PHP

Follow this awesome manual. Parts with $PATH setup can be skipped, everything is set in .path.

⚠️ Apache configuration should prefer php-fpm over mod_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>