Ubuntu10.10PHP upload Configuration

Source: Internet
Author: User
In Ubuntu10.10, put the php configuration file in the/etc/php5/apache2 file and find php. switch ini to the root account and use gedit to open php. ini find FileUploads to enable upload: file_uploads = on modify the maximum size of the uploaded file upload_max_filesize = [set value] The default value is 2Mpost_max_size = [set value] &

Put the php configuration file under Ubuntu 10.10 In the/etc/php5/apache2 File

Find php. ini

Switch to the root account

Open php. ini with gedit

Find File Uploads

Enable upload: file_uploads = on

Modify the maximum size of an uploaded file

Upload_max_filesize = [set value] The default value is 2 MB.

Post_max_size = [set value] This option indicates the maximum length of bytes allowed for POST data. The default value is 8 Mb. The recommended value is slightly larger than upload_max_filesize.

If the memory limit is enabled

The value of the memory_limit option should be slightly greater than that of upload_max_filesize.

Restart apache

Sudo/etc/init. d/apache2 restart

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.