猿问

MacOS下Apache不加载xdebug,但是php -i却有xdebug模块

PHP CLI下,

> php --ini 

Configuration File (php.ini) Path: /usr/local/etc/php/5.6

Loaded Configuration File:         /usr/local/etc/php/5.6/php.ini

Scan for additional .ini files in: /usr/local/etc/php/5.6/conf.d

Additional .ini files parsed:      /usr/local/etc/php/5.6/conf.d/ext-igbinary.ini,

/usr/local/etc/php/5.6/conf.d/ext-mcrypt.ini,

/usr/local/etc/php/5.6/conf.d/ext-xdebug.ini

但是在我的apache下,localhost/phpinfo.php

Configuration File (php.ini) Path/usr/local/etc/php/5.6
Loaded Configuration File/usr/local/etc/php/5.6/php.ini
Scan this dir for additional .ini files/usr/local/etc/php/5.6/conf.d
Additional .ini files parsed/usr/local/etc/php/5.6/conf.d/ext-mcrypt.ini


我的macOS是 10.12, 用homebrew安装的PHP 和 xdebug。

求问,该如何让我的apache加载xdebug的.ini文件。。 被这个问题困扰好几天了,最近一直在用php自带的server来debug。。

先在这里提前谢谢各位了,希望大家能给我一些建议。。



观众老爷就是我3194103
浏览 1281回答 0
0回答
随时随地看视频慕课网APP
我要回答