There's the native installer of web environment for Mac.
Requirements
Installation
This script will install and setup Nginx + MySQL + PHP through Homebrew.
curl -L https://raw.github.com/mrded/brew-emp/master/tools/install.sh | bash
Update PHP version
curl -L https://raw.github.com/mrded/brew-emp/master/tools/update.sh | bash
Uninstall
curl -L https://raw.github.com/mrded/brew-emp/master/tools/uninstall.sh | bash
Usage
brew-emp [start | stop | restart]
Example of creating new VirtualHost
Copy Drupal preset:
cp /usr/local/etc/nginx/sites-available/drupal.local /usr/local/etc/nginx/sites-available/mysite.local
Change name and path to site:
server {
listen 80;
server_name mysite.local;
root /Users/mrded/Sites/mysite;
access_log /usr/local/var/log/nginx/mysite.access.log;
error_log /usr/local/var/log/nginx/mysite.error.log;
include /usr/local/etc/nginx/common/drupal;
}
Enable virtual host
ln -s /usr/local/etc/nginx/sites-available/mysite.local /usr/local/etc/nginx/sites-enabled/mysite.local
Add 127.0.0.1 mysite.local to /etc/hosts
Default Settings
MySQL
Username: root
Password: {empty}
Port: 3306
Xdebug Remote port is 9002
Configs
Nginx: /usr/local/etc/nginx/nginx.conf
FastCGI: /usr/local/etc/nginx/fastcgi.conf
PHP: /usr/local/etc/php/5.6/php.ini
Redis: /usr/local/etc/redis.conf
Xdebug: /usr/local/etc/php/5.6/conf.d/ext-xdebug.ini
MySQL: $(brew --prefix mysql)/my.cnf