Skip to content

Instantly share code, notes, and snippets.

@croxton
Last active March 29, 2021 12:34
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save croxton/4073583 to your computer and use it in GitHub Desktop.
Save croxton/4073583 to your computer and use it in GitHub Desktop.
Install xdebug 2.2.0 for AMPPS on OSX
Grab the 'PHP Remote Debugging Client' (the pre-complied xdebug binary for OSX) from here:
http://code.activestate.com/komodo/remotedebugging/
Unzip it, find the folder that corresponds to the version of PHP you want to install it for and copy the xdebug.so file from there into your php extensions folder in the relevant PHP version directory. E.g. for PHP 5.4:
/Applications/AMPSS/php-5.4/lib/extensions/ext/
Now open PHP.ini in a text editor:
/Applications/AMPSS/php-5.4/etc/php.ini
And add this line towards the bottom of the file, just above the dynamic extensions section:
zend_extension = /Applications/AMPPS/php-5.4/lib/extensions/ext/xdebug.so
Restart Apache, and you're done.
@griffiti
Copy link

Thanks tons!

@semachka
Copy link

Much Appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment