Failure to Update Maximum Upload Limit Set By Hosting Provider and PHP Max Input Vars

gq flag

Hi I deployed a VM with Wordpress only I can't update the Maximum Upload Limit Set By Hosting Provider value from 2M to 40M.

I also can't update the PHP Max Input Vars value , despite we have modified the (./etc/php/8.1/apache2/php.ini) php.ini and .htaccess file

Can you please help me. Thank you

de flag

You could try the “Increase Maximum Upload File Size” Plug-in.

Another option might be to Edit the “Functions.PHP” File, using the Wordpress “Theme File Editor”.

In specific, you’ll want to Locate & Edit the following Line.

@ini_set( 'upload_max_size' , '64M' );

Also, be sure to Restart Apache (or whichever Web Server you’re using) after you’ve finished Updating Settings.

If you continue having issues, feel free to report back with your findings, as I may have a few other suggestions.

gq flag

I tried already with a plugin but it doesn't work


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.