Ways to resolve uploadify IO error/http error 413 errors

Source: Internet
Author: User

Aliyun Server linux Server, PHP environment, upload attachment issues, record sharing:

At the beginning of the test, are pictures, small accessories, no problem

System on-line, found that large attachment upload problem, error IO error

Start to check the program, the program all the limits of the size of the place are all canceled, and found that still not

There's no problem getting the local test, I know it's not a program, check the server environment

Modifying the PHP Environment: modifying php.ini

File_uploads =on
upload_tmp_dir=
upload_max_filesize=64m
post_max_size=64m

In view of the speed problem, adjust the following several parameters

max_execution_time=600
max_input_time=600
memory_limit=8m

After the reboot of the server, found that the IO error problem did not, reported a new error HTTP Error 413

Checked for HTTP error 413 (the server refused to process the request because the size of the request exceeded the size the server was able to handle)

Originally is Nginx limits the file uploads the size ... Nginx client_max_body_size This parameter, will interrupt the request in Nginx, in PHP is unable to record to access, the default is 1m

Add a sentence to the nginx.conf, client_max_body_size 30m;

Reboot, Problem solving

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.