Most servers have a limit on the maximum file size php can upload. This is defined in the php.ini and is usually around 2M. The very problem is that it’s defined in php.ini. This is the global php setting file. Changes here will affect all accounts. Most hosts will not edit this file on the request of a customer. This means that if you want to change the maximum upload file size, you’re pretty much screwed.
Or do you…? There’s a very simple way to override this setting. Your .htaccess file! Yes, this will work with all apache based web servers. This is the very point to the files existence! So, open up the .htaccess file – usually found in your public_html folder. If it’s not already there, simply create a file named “.htaccess“. Once it’s open, type in the following:
php_flag upload_max_filesize 5M
The “5M” represents the max upload size. Simply change this value to something that will accommodate your needs! Save, close, and upload the file! That’s it!
Enjoyed this article?
WebsiteWordpress themes!









