Skip to content

Instantly share code, notes, and snippets.

@Basster
Forked from croxton/gist:4073583
Last active January 3, 2016 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Basster/8441857 to your computer and use it in GitHub Desktop.
Save Basster/8441857 to your computer and use it in GitHub Desktop.
Activate xdebug 2.2.3 for AMPPS on OSX
On AMPPS 2.2 xdebug.so is included for all shipped PHP versions but not at the correct folders.
To activate it, follow these steps:
1.) make sure xdebug.so can be found in these locations:
/Applications/AMPPS/php-5.3/lib/extensions/xdebug.so
/Applications/AMPPS/php-5.4/lib/extensions/xdebug.so
/Applications/AMPPS/php-5.5/lib/extensions/xdebug.so
As AMPPS just changes a symlink when changing PHP versions, you need to edit the config files for each of the versions:
2.) Open the following files with a text editor and add this line to the bottom of the file:
zend_extension = /Applications/AMPPS/php/lib/extensions/xdebug.so
Files:
/Applications/AMPPS/conf/php-5.3.ini
/Applications/AMPPS/conf/php-5.4.ini
/Applications/AMPPS/conf/php-5.5.ini
Restart Apache, and you're done.
You can now switch between PHP versions and keep xdebug activated for all versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment