Apache not loading Xdebug, but does when started from the Command Line

Posted by JamesD on Stack Overflow See other posts from Stack Overflow or by JamesD
Published on 2010-02-05T13:32:40Z Indexed on 2010/03/22 21:41 UTC
Read the original article Hit count: 344

Filed under:
|
|

I know that this sounds odd, but believe me, it's what is happening. Here are my system settings:

Windows7
Apache 2.2
PHP 5.2.12
Xdebug 2.0.5

I have XDebug configured in my PHP.ini file. When I run php -m, I do in fact see that Xdebug is loaded. Now, if I start Apache AS A SERVICE (or by the Apache Monitor), and run phpinfo(), it is NOT showing Xdebug as being loaded.

However, (now here's the crazy part), if I go to my Apache bin directory, and simply run httpd.exe, and then go and look at phpinfo(), Xdebug now shows as being loaded!

Also, comparing some phpinfo() when started via service or by command line, it looks like the php.ini file is the same for either case. Everything looks the same except for the Xdebug being loaded part.

Please, if you have any ideas it would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about apache

Related posts about php5