PHP fastcgi mode upload large files (about 300 k) error,
Recently uploaded pictures in the project, about 300 K, the results reported a server error, have never encountered, the error is as follows:
Mod_fcgid:http Request Length 132296 (so far) exceeds Maxrequestlen (131072)
Check the information, found that the fastcgi default request size of 131072, so in the Apache configuration to add the Maxrequestlen configuration is good. If you only need to modify the Maxrequestlen of a single virtual host, it turns out to be a setup problem in fastcgi mode and needs to be in the configuration file. htaccess or directly in Apache configuration file http.conf, as follows:
The code is as follows
Copy the Code code as follows:
AddHandle Fcgid-script. fcgi
Fcgidconnecttimeout 20
# to get around upload errors if uploading images increase the maxrequestlen size to 15MB
Fcgidmaxrequestlen 15728640
If you are in the Php+apache Windows environment, we can configure the following
Found in php.ini
Upload_max_filesize, and other post_max_size, Max_input_time, Memory_limit, max_execution_time configurations
Change the upload size after you restart Apache to resolve
http://www.bkjia.com/PHPjc/886145.html www.bkjia.com true http://www.bkjia.com/PHPjc/886145.html techarticle PHP fastcgi mode upload large files (about 300 K) error, recently uploaded pictures in the project, about 300 K, the results reported a server error, never encountered before, wrong ...