What is the PHP upload limit on Linux Shared Hosting accounts?
Print this Article
Comment on this Article
Last Updated:
February 16, 2011 3:16 PM
By default, PHP limits scripts uploading files to 8 MB. To change the limitation, edit or add the following values in your /php.ini file for PHP4 or /php5.ini file for PHP5:
memory_limit = 50M
post_max_size = 10M
file_uploads = On
upload_max_filesize = 10M
post_max_size = 10M
file_uploads = On
upload_max_filesize = 10M
The above settings change your PHP upload limit, allowing you to upload files up to 10MB in size.
The maximum upload value that you can specify for upload_max_size and post_max_size is 192M.