User Tools

Site Tools


macos_lamp

This is an old revision of the document!


MacOS Lamp install

Install required Software

brew install php70 --with-httpd24
brew reinstall php70 --with-httpd24

Unload macos' system apache

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

General config

atom /usr/local/etc/apache2/2.4/httpd.conf

Add PHP7 Module

Path depends on your installed PHP Version!

LoadModule php7_module        /usr/local/Cellar/php70/7.0.19_11/libexec/apache2/libphp7.so

Allow php mime type in <IfModule mime_module>

AddType application/x-httpd-php .php .phtml .php3

Config for Extra vHosts:

atom /usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf

HTDOCS

ls -la /usr/local/var/www/htdocs/

## Notes about installing mysql/mariadb should go here …

macos_lamp.1498114409.txt.gz · Last modified: 2017/06/22 08:53 by admin