Skip to content

Instantly share code, notes, and snippets.

@k0pernikus
Last active January 21, 2025 11:54
Show Gist options
  • Save k0pernikus/5ba79c239a8473ef1ba6438b14f54d1f to your computer and use it in GitHub Desktop.
Save k0pernikus/5ba79c239a8473ef1ba6438b14f54d1f to your computer and use it in GitHub Desktop.
Create xdebug config file in local user's home dir
#!/usr/bin/env bash
mkdir -p ~/config/etc/php/8.0/fpm/conf.d/
touch ~/config/etc/php/8.0/fpm/conf.d/20-xdebug.ini
cat > ~/config/etc/php/8.0/fpm/conf.d/20-xdebug.ini <<EOL
zend_extension=xdebug.so
xdebug.mode = debug
xdebug.client_host = 127.0.0.1
xdebug.client_port = 9003
xdebug.idekey = PHPSTORM
xdebug.discover_client_host=false
EOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment