Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Coleman ideadude

View GitHub Profile
@jeromegamez
jeromegamez / php_debug.bash
Last active Jul 9, 2019
Simple script to enable or disable the xdebug extension
View php_debug.bash
#!/bin/env bash
# Simple script to enable or disable the xdebug extension
case $1 in
on)
[ -f /etc/php.d/xdebug.ini.deactivated ] && sudo mv /etc/php.d/xdebug.ini.deactivated /etc/php.d/xdebug.ini
sudo service php-fpm restart
sudo service nginx restart
;;
You can’t perform that action at this time.