Reputation: 8675
I'm trying to get xdebug set up on my local OS 10.9 dev environment but without much success. I installed it using homebrew and it seemed to install ok. In terminal it seems to be loading ok, php -i
loads Loaded Configuration File => /usr/local/etc/php/5.4/php.ini
and further down shows info about xdebug but phpinfo()
in my index.php
file seems to load a different php.ini
located at /etc/php.ini
.
Why are there 2 different php.ini files and which one should I use? How do I change to the appropriate file?
I've been googling and fiddling for 3 hours now and can't figure it out... Any help would be appreciated!
Edit:
I tried to add:
[xdebug]
zend_extension="/usr/local/Cellar/php54-xdebug/xdebug.so"
to the /etc/php.ini
file but it had no effect. The file path is verified to be correct.
Upvotes: 1
Views: 589
Reputation: 8675
In case it is of benefit to someone else, here is how I got xdebug working.
I didn't realise that homebrew installed a separate new version of php and didn't update httpd.conf
so until I figured this out, I was loading the wrong php module in my httpd.conf
.
When I changed this to the homebrew built module, everything worked as expected.
Upvotes: 2