After being fed up with Godaddy hosting, I am trying to migrate my site to Azure VM. I am stuck at maximum file upload size limit
which is fixed at 40 MB, while my site backup file is around 850 MB.
Adding below lines in .htaccess
file through WP File Manager
didn’t work. No luck with restarting VM too.
php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
Is there some workaround to increase size of file upload? How do I see site files? I feel CPanel’s File Manager was pretty good and straight forward.
2
Answers
Uploading
.user.ini
file with below content tohtdocs
folder fixed the issue. Make sure to useAdvanced File manager
plugin to upload the file. Other Wordpress file managers don't allow files that start withdot
.In case someone is still reading this. The default Azure WebApp allows 8MB upload. To increase to 64MB, I did the following.
In .user.ini in /site/wwwroot I added.
In web-config.php I added.
I am using Project Nami WordPress on an IIS server so I had to do add the following to web.config.
Then rebooted the web app in the Azure portal.