Resolution of Ubuntu phpMyAdmin on data upload limit 2M

Source: Internet
Author: User
Tags form post

This section is referenced from: http://www.myhack58.com/Article/sort099/sort0102/2011/29396.htm

The original text has a small number of errors or outdated (relative to ubuntu15) content, has been modified.

PHP.ini path in Ubuntu is not the same as other Linux, the path is:/etc/php5/apache2/php.ini

sudo gedit/etc/php5/apache2/php.ini


1, find post_max_size, refers to through the form post to PHP can receive the maximum value, including all the values in the form, the default is 8M, generally do not need to change.

2, find file uploads, first confirm file_uploads = on, whether to allow the switch to upload files via HTTP, the default is on is on. Upload_tmp_dir;

Find upload_max_filesize; That is, the maximum number of file sizes allowed to upload. The default is 2M. here we change to 8m.

3, if you want to upload >8m files, then only set the above four items can not be certain. It is best to set the following parameters as well:

Find max_execution_time = 600; The maximum time value (in seconds) for each PHP page to run, default 30 seconds.

Max_input_time = 600; The maximum time required for each PHP page to receive data, default 60 seconds.

Memory_limit = 8M; The maximum memory eaten by each PHP page, the default 8M.

Finally, pay attention to restarting Apache:

Sudo/etc/init.d/apache2 restart

Resolution of Ubuntu phpMyAdmin on data upload limit 2M

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.