Restart web server Nginx + PHP-FPM Mac OS

Restart NGINX

$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

Settings

$ cp /usr/local/Cellar/php55/5.5.31/homebrew.mxcl.php55.plist ~/Library/LaunchAgents/

Restart PHP-FPM

$ launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php55.plist
 
$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php55.plist

 

Nginx local config for laravel

Config Nginx for server Ubuntu 14 + Nginx + PHP5-fpm:

server {
 listen 80;

 root /var/www/laravel.local/public;
 index index.php;

 server_name laravel.local;

 location / {
 try_files $uri $uri/ /index.php;
 }
 
 location ~ \.php$ {
 fastcgi_pass 127.0.0.1:9000;
 fastcgi_index index.php;
 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 include fastcgi_params;
 }

 error_log /var/log/nginx/laravel.local.error.log;
 access_log /var/log/nginx/laravel.local.access.log;
}