Modify Apache upload file size limit

Source: Internet
Author: User

PHP Upload File size limit workaround:

First:
Check the following line in the php.ini:

Upload_max_filesize = 8M
Post_max_size = 10M
Memory_limit = 20M

Change these values to what I said, and see if there are any problems, and make sure that the <form> in the upload does not resemble the following line

<input type= "hidden" name= "max_file_size" value= "500000" >
This also restricts the upload size.

Second:
If it's Apache 2 needs to be modified

/etc/httpd/conf.d/php.conf
Limitrequestbody 524288 will 524288 (=512x1024) to large, such as 5M (=5x1024x1024) Such upload will not appear above problems, upload does not respond, upload the reality of the page can not be realistic will be resolved!

Modify Apache upload file size limit

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.