Home >Backend Development >PHP Tutorial >How to solve the file upload size limit of PHP and Nginx
2. Modify php.ini View in php.ini:
Allow HTTP files by default Upload, this option cannot be set to OFF. upload_tmp_dir =/tmp/www When uploading large files, the upload speed will feel slow. When it exceeds a certain time, an error will be reported that the script execution exceeds 30 seconds. Modify the max_execution_time configuration option in the php.ini configuration file, which indicates the maximum execution time of each script. Allowed execution time (seconds), 0 means no limit. The value of max_execution_time can be adjusted appropriately. Setting it to 0 is not recommended. After completing the above two modifications, you can basically solve the problem of PHP upload file size limit. |