This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
macos_lamp [2017/08/08 11:04] – [MacOS Lamp install] admin | macos_lamp [2021/12/06 23:02] (current) – removed admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== MacOS Lamp install ====== | ||
- | Install repos and unlink default php | ||
- | |||
- | < | ||
- | brew tap homebrew/ | ||
- | brew tap homebrew/ | ||
- | brew tap homebrew/ | ||
- | brew unlink php56 | ||
- | </ | ||
- | ===== Install required Software ===== | ||
- | |||
- | brew install php70 --with-httpd24 | ||
- | brew reinstall php70 --with-httpd24 | ||
- | |||
- | ===== Unload macos' system apache ===== | ||
- | |||
- | |||
- | sudo launchctl unload -w / | ||
- | |||
- | ===== General config ===== | ||
- | |||
- | atom / | ||
- | |||
- | ===== Add PHP7 Module ===== | ||
- | |||
- | Path depends on your installed PHP Version! | ||
- | |||
- | LoadModule php7_module | ||
- | |||
- | ===== Allow php mime type in < | ||
- | |||
- | AddType application/ | ||
- | |||
- | |||
- | ===== Config for Extra vHosts: ===== | ||
- | |||
- | atom / | ||
- | |||
- | ===== HTDOCS ===== | ||
- | |||
- | ls -la / | ||
- | |||
- | |||
- | < | ||
- | ## Local DNS | ||
- | brew install dnsmasq | ||
- | sudo brew services start dnsmasq | ||
- | |||
- | sudo mkdir -v / | ||
- | sudo bash -c 'echo " | ||
- | |||
- | https:// | ||
- | |||
- | |||
- | ## Notes about installing mysql/ | ||
- | |||
- | |||
- | |||
- | |||
- | complete -cf sudo | ||
- | </ | ||
- | |||
- | ## Notes about installing mysql/ |