To correct PHP upload file size limit

Source: Internet
Author: User
To modify the PHP upload file size limit
To modify the PHP upload file size limit

First step: Modify the Post file size limit in PHP
1. Editing php.ini
Post_max_size = 8M to Post_max_size = 20M
Upload_max_filesize = 2M to upload_max_filesize = 20M
Memory_limit = 16M (default is 8M) because uploading large files is time consuming, so
Max_execution_time set to 800

Step two: File Upload size control in Apache environment
Modify the httpd.conf in the APAHCE directory
Add the following:
Limitrequestbody 20000000 restarting Apache
  • Related Article

    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.