Linux to modify the PHP Web upload file size ____linux

Source: Internet
Author: User
Tags form post
Because the PHP web default upload file size is limited, need to upload large files need to modify the php.ini file. A. Locate the file Uploadsh area in the php.ini file modify the following parameters: 1. File_uploads = on; whether to allow the switch to upload files over HTTP, default to On is on; 2. Upload_tmp_dir files are uploaded to the server where temporary files are stored, and if not specified, the default temporary folder of the system is used (Moodle can be changed); 3. Upload_max_filesize = 8m; The maximum size allowed for uploading files;
Two. Locate the data handling zone in the php.ini file modify the following parameters: 1. post_max_size = 8m; The maximum value that can be received by a form post to PHP, including all the values in the form, and the default is 8M;
Three. After setting the above four parameters, uploading files less than 8M is generally not a problem. However, if you upload files larger than 8M, you only have to set the following parameters: Resource Limits area: max_execution_time = 600;
Maximum time for each PHP page to run (seconds), default 30 sec Max_input_time = 600;
The maximum time required for each PHP page to receive data, default 60 seconds Memory_limit = 8m;
The maximum memory consumed by each PHP page, default 8M

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.