In case if you want to increase maximum upload size of your media you can do so by trying one of the below:
Many shared hosting services, does’nt provide php.ini file in root folder as it is risky, so you can create one in your root folder and add following code:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
if 64 doesn’t work. Try 10MB (sometimes that work).
2. .htaccess Method:
If above does’nt try modifying .htaccess file, add following lines of code:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
if you have shared hosting,this may not work.
3. Contact Hosting Service Provider:
If above both method doe’nt work try contacting your hosting company.
4.Theme Functions File:
Editing theme functions.php file may also work, add following code in theme file
@ini_set( ‘upload_max_size’ , ’64M’ );
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );
You can also edit wp-config.php file by define(‘WP_MEMORY_LIMIT’, ’64M’) , adding this code at top of file.
If above all methods does not work, use plugin for the purpose Increase Upload Max Filesize.This plugin will automatically add code in your php.ini on server