# Timeouts during nginx xdebug session

**URL:** <https://community.localwp.com/t/timeouts-during-nginx-xdebug-session/716>\
**Category:** Support\
**Created:** [February 6, 2017, 3:24pm UTC](https://community.localwp.com/t/timeouts-during-nginx-xdebug-session/716 "2017-02-06T15:24:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![timothybjacobs](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/timothybjacobs/32/4466_2.png) [@timothybjacobs](https://community.localwp.com/u/timothybjacobs)\
**Post date:** [February 6, 2017, 3:24pm UTC](https://community.localwp.com/t/timeouts-during-nginx-xdebug-session/716/1 "2017-02-06T15:24:34Z")

</div>

Nginx often timesout before I can finish an xdebug session. At a quick glance this looks similar to this issue with VVV, [https://github.com/Varying-Vagrant-Vagrants/VVV/issues/39](https://github.com/Varying-Vagrant-Vagrants/VVV/issues/39). Could this be adjusted?

Thanks,

Timothy

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [February 9, 2017, 3:00pm UTC](https://community.localwp.com/t/timeouts-during-nginx-xdebug-session/716/2 "2017-02-09T15:00:40Z")

</div>

Hey Timothy,

I’ll check this out.

In the meantime can you try those tweaks in the nginx config file for that site? You can edit it directly from the /conf/nginx directory for that site.

After you edit the config you have to restart the site.

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [February 16, 2017, 9:14pm UTC](https://community.localwp.com/t/timeouts-during-nginx-xdebug-session/716/3 "2017-02-16T21:14:18Z")

</div>

@clay, when stepping through code in XDebug this is a frequent occurrence. I have solved this problem as follows.

nginx.conf  
— add `fastcgi_read_timeout 3600s;` after the line `fastcgi_buffer_size 32k;`

apache2.conf  
— change the line `Timeout 300` to `Timeout 3600`

This changes the timeouts to an hour. The reference is [https://www.fdgweb.com/increase-php-timeout-values-apache-ngnix/](https://www.fdgweb.com/increase-php-timeout-values-apache-ngnix/)

Can we change the above to a feature request for a permanent change to this?

---

<div class="post-metadata">

**Author:** ![timothybjacobs](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/timothybjacobs/32/4466_2.png) [@timothybjacobs](https://community.localwp.com/u/timothybjacobs)\
**Post date:** [February 16, 2017, 10:34pm UTC](https://community.localwp.com/t/timeouts-during-nginx-xdebug-session/716/4 "2017-02-16T22:34:50Z")

</div>

I can confirm that the nginx fix worked for me as well.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:31pm UTC](https://community.localwp.com/t/timeouts-during-nginx-xdebug-session/716/5 "2020-08-25T18:31:30Z")

</div>

Closed on August 25, 2020, 6:31pm UTC


