Skip to content

Instantly share code, notes, and snippets.

@karlkaebnick
Last active December 9, 2019 18:00
Show Gist options
  • Save karlkaebnick/bcc7a2b05f49f2e3e1d50737a546507d to your computer and use it in GitHub Desktop.
Save karlkaebnick/bcc7a2b05f49f2e3e1d50737a546507d to your computer and use it in GitHub Desktop.
steps to install php debugger

Note: see https://xdebug.org/docs/install for installation notes

  • Update your system modules:
    sudo apt-get update; sudo apt-get dist-upgrade
  • Install pecl:
    sudo apt install php-pear
  • Install Xdebug:
    sudo pecl install xdebug
  • add
    zend_extension=/usr/lib/php/20180731/xdebug.so
    to the files
    /etc/php/7.3/apache2/php.ini
    (and, in ubuntu, add it to the following file as well):
    /etc/php/7.3/cli/php.ini
  • run
    php -m -c
    to verify Xdebug has been installed (it should show up under the section 'Zend Modules])
  • restart apache:
    sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment