Skip to content

Instantly share code, notes, and snippets.

@rin9424
Last active March 27, 2021 09:27
Show Gist options
  • Save rin9424/84606f82da2316bd64f6377966666bc3 to your computer and use it in GitHub Desktop.
Save rin9424/84606f82da2316bd64f6377966666bc3 to your computer and use it in GitHub Desktop.
Useful commands for installing Xdebug inside a docker container with Linux Alpine, Nginx, and PHP
  • To dowload Xdebug source code: curl <link-of-the-tarball>  -- outout <filename>
  • To reload Nginx config: nginx -s reload
  • To find the Process ID(PID) of the php-fpm master process: ps aux
  • To reload php-fpm without using init script: kill -USR2 <PID-of-php-fpm-master-process>
  • To find the default extension directory for php: php-config  -- extension-dir
  • To find the php.ini files being used for the PHP: php  --ini
  • To check if XDebug is installed or not: php -v
  • To check all extensions installed by php: php -m
  • To get all information about a package in Alpine Linux: apk info -a package-name
  • To check if Internet access is available inside the container: ping -c 2 8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment