Last active
August 2, 2019 09:36
-
-
Save ivuorinen/e858a75901940e7febba2c9e23d4bd65 to your computer and use it in GitHub Desktop.
Enable xdebug for all PHP versions available on Laravel Homestead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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