In Ubuntu11.04, phpMyAdmin can upload up to 2 MB of data.

Source: Internet
Author: User
Tags form post
If you are a web administrator, you will find a problem after installing Ubuntu11.04. In Ubuntu11.04, run the command to install lamp or lnmp host, php. the ini address has changed. Her path is/etc/php5/fpm/php. ini, this is easy to do. Enter the command on the terminal: sudovi/etc/php5/fpm/php. ini1. Search for post_max_size, which is the maximum value that can be received by posting a form to PHP.

If you are a web administrator, you will find a problem after installing Ubuntu 11.04. In Ubuntu 11.04, run the following command to install the lamp or lnmp host, php. the ini address has changed. Her path is/etc/php5/fpm/php. ini, this is easy to do. Enter the command directly on the terminal:

Sudo vi/etc/php5/fpm/php. ini
1. Search for post_max_size, which refers to the maximum value that can be received by the form POST to PHP, including all values in the form. The default value is 8 Mb. You need to change it.
2. Search for File Uploads. First, check file_uploads = on; whether to allow File upload over HTTP. The default value is ON. Upload_tmp_dir;
Find upload_max_filesize; that is, the maximum file size that can be uploaded. The default value is 2 MB.
3. If you want to upload a file larger than 8 Mb, you can set only the above four items. It is best to set the following parameters:
Query max_execution_time = 600; maximum time (in seconds) for running each PHP page. The default value is 30 seconds.
Max_input_time = 600; maximum time required for receiving data on each PHP page. The default value is 60 seconds.
Memory_limit = 8 M; maximum memory consumed by each PHP page. The default value is 8 M.

LAMP host, restart apache:
/Etc/init. d/apache2 restart
Run the following command to restart nginx and Related Services on the LNMP Host:
Sudo/etc/init. d/nginx restart
Sudo/etc/init. d/php5-fpm reload
OK, that's simple.

If you are Ubuntu 10.10, please refer to this article: http://www.linuxidc.com/Linux/2011-05/35566p2.htm

Related Article

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.