June 30, 2015

Installing Sonar Source on Mac OSX – Part 2

I had some notes a while ago for installing Sonar on a Mac. Recently I upgraded to a new Mac, OS X Yosemite (10.10.3), and found I needed to add a few steps to the install process.

  • You need the JDK to run Sonar
  • You need xdebug


To install xdebug run:

sudo pecl install xdebug

Then add to your php.ini the following (I just added it to the bottom), replace the version in the path with whichever you installed:


To find which php.ini you’re using (useful if you’re using multiple versions of PHP via brew as I do) run:

php -i | grep php.ini

Then restart apache:

sudo apachectl restart

To check that the xdebug module is loaded:

php -m | grep xdebug

Then you should be set :)

© Michael Sharman 2017