Denis Gomes Franco
Regular Pleskian
TITLE:
max_execution_time not respected when serving by Nginx and proxy mode is off
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Plesk Obsidian Version 18.0.20
PROBLEM DESCRIPTION:Looks like the 'max_execution_time' and 'max_input_time' settings are not respected when a domain is running on a pure Nginx set up, eg., PHP is set up to run an FPM application served by Nginx, and the Nginx proxy mode option is off.
I tried using the WXL import option in Wordpress with a large file and Nginx always throws a gateway timeout error after 30 or 60 seconds (not sure which one it is) despite setting 2000 or more as the PHP timeout for that domain.
Switching off Nginx for the domain and serving it via Apache solves the problem.
STEPS TO REPRODUCE:I tried using the WXL import option in Wordpress with a large file and Nginx always throws a gateway timeout error after 30 or 60 seconds (not sure which one it is) despite setting 2000 or more as the PHP timeout for that domain.
Switching off Nginx for the domain and serving it via Apache solves the problem.
1. Open up the PHP settings for a domain.
2. Change 'max_execution_time' and 'max_input_time' to anything above 60 seconds.
3. Run a PHP script that takes longer than 60 seconds to complete.
The Wordpress import function may very well take dozens of minutes to complete if you enable the DOWNLOAD AND IMPORT FILE ATTACHMENTS and the site has lots of media files that will have to be copied from the old server.
ACTUAL RESULT:2. Change 'max_execution_time' and 'max_input_time' to anything above 60 seconds.
3. Run a PHP script that takes longer than 60 seconds to complete.
The Wordpress import function may very well take dozens of minutes to complete if you enable the DOWNLOAD AND IMPORT FILE ATTACHMENTS and the site has lots of media files that will have to be copied from the old server.
The operation should finish without errors. In case of Wordpress, it should display the results of the import operation.
EXPECTED RESULT:Nginx throws a GATEWAY TIMEOUT error.
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Confirm bug