Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wdmtech/17b920bb8e56729b24b9325371d1fa72 to your computer and use it in GitHub Desktop.
Save wdmtech/17b920bb8e56729b24b9325371d1fa72 to your computer and use it in GitHub Desktop.
Laravel Homestead XDebug Nginx and Composer config changes

Laravel Homestead XDebug Nginx and Composer config changes

/etc/nginx/fastcgi_params

Update nginx config to support a longer timeout to prevent it dropping the connection when trying to debug in PHP Storm

fastcgi_read_timeout 600; # Set fairly high for debugging

XDebug config

Add the following to the /etc/php5/fpm/conf.d/20-xdebug.ini file to enable PHPStorm debugging

xdebug.cli_color=1
xdebug.show_local_vars=1
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port="9000"
xdebug.idekey=phpstorm
xdebug.scream = 0
xdebug.max_nesting_level=300

Add github auth to composer, so it can fetch everything easily

Detailed info here: https://coderwall.com/p/kz4egw

But really you just need to do this...

composer config github-oauth.github.com YOUR-TOKEN-HASH-GOES-HERE

Add aliases to .bash_aliases

alias art='php artisan'
alias autoload='composer dump-autoload'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment