LMSouq
server-admin Open

Prevent nginx 504 Gateway timeout using PHP set_time_limit()

NY
Nyxynyx
1 month ago
3 views
Problem Description
I am getting 504 timeouts message from nginx when my PHP script is running longer than usual. `set_time_limit(0)` does not seem to prevent that! Does it not work when running php5-fpm on nginx? If so, whats the proper way of setting the time limit? **Error:** 504 Gateway Time-out nginx/1.2.7

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base