Setting up your software development environment can be painful but there are lot of awesome tools out there to make our life easier. In this post I'll guide you through your PHP development environment setup with Nginx and Mysql with couple of easy steps. No Apache, Sorry.
#1 Get Homebrew <3
To install, (If you haven't already) open up your terminal and :
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#2 Run BEMP
BEMP is an one step easy installation script to install Nginx, MySQL and PHP via Homebrew.
curl -L https://raw.githubusercontent.com/thesabbir/bemp/master/install.sh | bash
You are done! Just open up your browser and visit
For phpinfo() go to
/var/www/is where you put your documents.
usr/local/etc/nginx/sites-enabledis where you active and configure you virtual hosts.
/usr/local/etc/nginx/conf.d/php-fpm.confis where your nginx configs for php-fpm.
/usr/local/etc/nginx/nginx.confis your main nginx config file.
Having any trouble? Just leave a comment bellow or tweet @alreadySabbir.
Subscribe to console.log('blog')
Get the latest posts delivered right to your inbox