There are some ways that you can choose to increase the maximum upload file size in WordPress.
- Edit /etc/php.ini file & /home/user/etc/php.ini
Change the numbers to the values that you need. The max execution time and max input time values are in seconds and might need to be increased further if your internet connection is slow.
2. You can try .htaccess method where by modifying the .htaccess file in the root directory, you can increase the maximum upload size in WordPress. Edit the .htaccess file in your WordPress site’s root folder and add the following code:
php_value memory_limit 128M
php_value upload_max_filesize 128M
php_value post_max_size 256M
php_value max_execution_time 300
php_value max_input_time 300
Note : if you are on a shared hosting package, then these techniques may not work. In that case, you would have to contact your vps provider to increase the limit for you.
Thank you for reading this article.