First, modify the php file size limit
Vi/etc/php.ini
Found: Max_execution_time = 30, this is the maximum time per script to run, in seconds, modified to:
Max_execution_time = 1200
Found: Max_input_time = 60, this is the time each script can consume, the unit is also the second, modified to:
Max_input_time = 2400
Found: Memory_limit = 128M, this is the script to run the maximum consumption of memory, according to your needs to change the value, this is changed to:
Memory_limit = 512M
Found: Post_max_size = 8M, form submission maximum data is 8M, this item is not limited to upload a single file size, but for the entire form of submission data restrictions. The scope of the restriction includes all content submitted by the form. For example: When posting posts, post title, content, attachments, etc... This is changed to:
Post_max_size = 100M
Found: upload_max_filesize = 2M, upload the maximum allowable size of the file, modified to:
Upload_max_filesize = 25M
2. Modify Apache upload file size limit
Vi/etc/httpd/conf.d/php.conf
Limitrequestbody 524288 to 524288 (=512x1024), such as 30M (=30x1024x1024)
(If not, you can add to the end of the configuration file)
Second, modify the MysQL limit
Modify my.cnf, need to restart MySQL
add a sentence in the [MySQLd] section:
max_allowed_packet=25m
This article is from the "Operation and maintenance of the Road" blog, please be sure to keep this source http://lrtao2010.blog.51cto.com/10425744/1826347
Itop Modify attachment Upload size limit