Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Xdebug loading for PHP CLI? [closed]

Im using composer, and when i do an update. It takes a huge chunk of time if xdebug is loaded in my php.ini file.

How can i disable xdebug only for cli. So composer won't take as much time. Yet i will have xdebug enabled?

like image 277
Xees Avatar asked Nov 10 '13 19:11

Xees


1 Answers

I found the answer by specifying a custom php.ini file for apache, and left the original php.ini file for cli.

in your apache configuration file. Just write the following bit of code.

<IfModule php5_module>
    PHPINIDir "C:/PATH/TO/CUSTOM/INI"
</IfModule>
like image 173
Xees Avatar answered Oct 16 '22 05:10

Xees