Ubuntu: Location to edit xdebug.max_nesting_level in ubuntu 14.04 PHP using Lighttpd



Question:

I am getting

fatal error maximum function nesting level of '100' reached aborting..  

It seems I have to edit

xdebug.max_nesting_level from 100 to more.   

But I am unable to find the correct file in where I should edit this? I am using Ubuntu 14.04 , lighttpd webserver and Php..

From internet I saw I have to edit php.ini file in /etc/php5/apache2..

But I am using lighttpd.

In my /etc/php5/ there are three folders namely

  1. cgi
  2. cli
  3. mods-available

In the cgi and cli folder there are php.ini file, But those 2 files did not contain anyting to edit xdebug.

In mods-available folder I got 1 file namely xdebug.ini and it just contains

zend_extension=xdebug.so  

So I need help how to edit xdebug.max_nesting_level in ubuntu 14.04 PHP and Lighttpd. Sorry for my bad English. Seeking your help to solve this


Solution:1

To fix the issue, I edited /etc/php5/apache2/conf.d/20-xdebug.ini and added the following line:

xdebug.max_nesting_level = 250  


Solution:2

phpinfo show you default value for all xdebug variables, this means that xdebug.so extension is correctly loaded by php.

In order to change xdebug.max_nesting_level default settings open xdebug.ini and add:

 xdebug.max_nesting_level=150  

Similarly, you can also change other xdebug variables.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »