PHP script execution times out. I wrote a program that inserts data into the database cyclically. The process is to first query the data by ID, insert another table, and insert one data entry, about 2 seconds, why does nginx directly report an error when inserting more than 100 pieces of data and the script execution times out? how can this problem be completely solved... PHP script execution times out. I wrote a program that inserts data into the database cyclically. The process is to first query the data by ID, insert another table, and insert one data entry, in about 2 seconds, why does nginx directly report an error when more than 100 pieces of data are inserted and the script execution times out? how can this problem be completely solved?
Reply content:
PHP script execution times out. I wrote a program that inserts data into the database cyclically. The process is to first query the data by ID, insert another table, and insert one data entry, in about 2 seconds, why does nginx directly report an error when more than 100 pieces of data are inserted and the script execution times out? how can this problem be completely solved?
Change NGINX configuration
Fastcgi_read_timeout 300;
Or higher
The nginx timeout limit is irrelevant to php.