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