Itop Modify attachment Upload size limit

Source: Internet
Author: User

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

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.