PHP fastcgi mode upload large files (about 300 k) error, _php tutorial

Source: Internet
Author: User
Tags apache windows

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 ...

  • Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.