Modify apache file size limit

Source: Internet
Author: User
Tags form post
Step 1: modify the size limit of POST files under php5. compile php. find max_execution_time... news & nbsp; | & nbsp modify apache file size limit modification method in Windows ====================== ==================================================== step 1: modify the size limit of the POST file in php5. compile php. ini found: max_execution_time = 30, which is the maximum running time of each script, in seconds, changed to: max_execution_time = 150 found: max_input_time = 60, which is the time that each script can consume, the unit is also seconds. modify it to max_input_time = 300. find: memory_limit = 1. 28 M. This is the maximum memory consumed by the script. change the value as required. here, change it to memory_limit = 256 M and find: post_max_size = 8 M, the maximum data size for form submission is 8 MB. This option does not limit the size of a single file to be uploaded, but restricts the data submitted for the entire form. The restricted scope includes all content submitted by the form. for example, when posting a post, the Post title, content, attachments, etc... Modify it to: post_max_size = 20 M find: upload_max_filesize = 2 M, the maximum license size of the uploaded file, change to: upload_max_filesize = 10 M Step 2: change the file upload size in Apache to httpd in the Apahce directory. add the following content to the conf file: LimitRequestBody 10485760, that is, 10 M = 10*1024*1024. some articles mentioned that you should change to 600000000 to restart apache, in the settings, you can see the change method in the Linux environment you want ======================= ========================================================== modify etc/php. ini find the File Uploadsh area and modify the following parameters: file_uploads = on; whether to allow File Upload through HTTP. The default value is ON, which is to open upload_tmp_dir. the file is uploaded to the place where the temporary files are stored ON the server. if this value is not specified, the system will use the default temporary folder (moodle can not be changed) upload_max_filesize = 8 m; maximum file size allowed to be uploaded. locate the Data Handling area and modify post_max_size = 8 m. It refers to the maximum value received by the form POST to PHP, including all values in the form. After the above four parameters are set for 8 m by default, uploading files smaller than 8 m is generally not a problem. However, if you want to upload a file larger than 8 MB, you only need to set the following parameters: in the Resource Limits region: max_execution_time = 600; the maximum time (in seconds) for each PHP page to run ), the default value is 30 seconds. max_input_time = 600. The maximum time required for receiving data on each PHP page. the default value is 60 seconds. memory_limit = 8 MB. The maximum memory consumed by each PHP page is 8 MB.
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.