What's new

Closed Set PHP max_execution_time in PHP-FPM using Nginx

Status
Not open for further replies.

Draft

Administrator
Administrator
Joined
Jan 23, 2011
Posts
16,372
Solutions
105
Reaction
65,014
Points
10,464
In order to set/configure/increase PHP max_execution_time variable from PHP-FPM using Nginx, you should follow this steps:
Edit php.ini
Code:
max_execution_time = 180

Edit php-fpm.conf

Code:
request_terminate_timeout = 180

Edit nginx
virtual hosts fastcgi_read_timeout
Code:
location ~ .php$ {
fastcgi_read_timeout 300;
}
Restart php-fpm and nginx
service php5-fpm restart
service nginx restart
 
Dear Draft,

Since 2 years have passed since the last reply in this thread, I am locking it to prevent necroposting. Feel free to start a new thread or contact any forum staff if you want this to be reopened.

Thread closed.
 
Status
Not open for further replies.
Back
Top