Server timeout configuration

I have a pretty time consuming script (in form of wp plugin), which imports some data from one source to wpdb. The problem is that it takes so long that reaches timeout (504): after 1200s(nginx) or 60s(apache). I read topics about chanching configurations values: fastcgi_read_timeout (nginx) or TimeOut (apache) but there are no results. Configs seems to be ignored.

How should i extend timeout for any of possible servers? Or how should I approach this without breaking script into smaller pieces.

Set up any site.
Modify timeouts value for any server. (Decrease it to few seconds for testing purpose?)
Run something what can reach timeout.

Local v6.4.1+5978
Windows 10

Hello there, @reenis77 - welcome to the Local Community! :wave:

Thank you for bringing your question here.

Have you tried adjusting the settings in the php.ini.hbs file within the site’s conf/php/ folder?

You can make those updates via a text editor of choice, save changes and then restart the site so Local can recompile with the new settings

Do you want to try that?

Sam :woman_technologist:t3:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.