If you’re using WordPress on some shared hostings, like the free 000webhost.com account, you may experience problems with uploading media larger than 2mb.
For non-shared hosts, the obvious solution is to edit php.ini on the server. However, 000webhost.com denies you access to that file.
You may be able to increase that limit by changing .htaccess file. Locate this file in the root of your WordPress installation (public_html folder), or create it if the file does not exist,and add the following block to it:
php_value upload_max_filesize 10M php_value post_max_size 10M php_value max_execution_time 300 php_value max_input_time 300
This will increase the limit to 10Mbs. Try playing around with this value if you need more, but in most cases, 64M is the max.
The other two settings should increase script execution time, which is way too little on 000webhost.com by default.