How to solve Lighttpd + fastcgi + php problems in Linux
Source: Internet
Author: User
I am eager to learn how to solve the Linux Lighttpd + fastcgi + php problem-Linux Enterprise Application-Linux server application information. Here is the details. I encountered a very headache and was eager to ask experts for help:
Problem description:
Lighttpd + fast cgi + php build a website with PHP pages. A large number of CLOSE_WAIT status connections are accumulated at intervals (<1 day). If these connections are not processed, they will never disappear. When the number of such connections reaches 10-20, the server cannot accept the request.
Operating System:
Linux (Fedora 10)
Lighttpd version:
1.4.24
Php version:
5.2.9 (cli)
Settings related to fast-cgi in the conf file of Lighttpd:
Server. max-keep-alive-requests = 0 // currently, the keep-alive support is canceled because the keep-alive is more serious.
Possible settings related to fast-cgi in php. ini:
Ignore_user_abort = off
Max_execution_time = 60; Maximum execution time of each script, in seconds
Max_input_time = 60; Maximum amount of time each script may spend parsing request data
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service