Skip to content

Instantly share code, notes, and snippets.

@ivuorinen
Last active August 2, 2019 09:36
Show Gist options
  • Save ivuorinen/e858a75901940e7febba2c9e23d4bd65 to your computer and use it in GitHub Desktop.
Save ivuorinen/e858a75901940e7febba2c9e23d4bd65 to your computer and use it in GitHub Desktop.
Enable xdebug for all PHP versions available on Laravel Homestead
#!/usr/bin/env bash
# Laravel Homestead
# Enable xdebug on all PHP versions (cli)
# Best place for this is in the user-customizations.sh in the Homestead folder
PHPV=$(ls /etc/php/)
for i in ${PHPV[@]}; do
if [ ! -f /etc/php/$i/cli/conf.d/20-xdebug.ini ]; then
sudo ln -s /etc/php/$i/mods-available/xdebug.ini /etc/php/$i/cli/conf.d/20-xdebug.ini
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment