Increase WordPress upload limit: Instructions

Marc Wag­ner

April 18, 2023

3 min read|

To increase the upload limit, you need to adjust the PHP set­ting on your ser­ver. The hos­ting pro­vi­der limits, often for secu­ri­ty reasons, the maxi­mum size for files that can be uploa­ded to the ser­ver. The­r­e­fo­re, you can­not chan­ge the upload limit in Word­Press or in wp-config.php.

Standard hosting solution to increase the upload limit #

Many hos­ting pro­vi­ders now allow you to adjust the upload limit in the set­tings. To do this, log in to your hos­ter (e.g. all-inkl, Stra­to, IONOS) and search for the PHP/PHP.ini set­tings. The­re you should usual­ly have the opti­on to store a value.

Unfort­u­na­te­ly, each pro­vi­der has indi­vi­du­al names, menus and set­tings. But the fol­lo­wing key­words should help you to find the set­tings: PHP/PHP.ini, upload_max_filesize, post_max_size.

If you can’t find a set­ting for this, a call to your hos­ting pro­vi­der or the fol­lo­wing solu­ti­on will help you.

Increase upload limit with custom PHP.ini configuration file #

Some hos­ting pro­vi­ders allow you to over­ri­de set­tings from PHP.ini. To do this, sim­ply crea­te a php.ini file in the root direc­to­ry of your web­site. Howe­ver, plea­se note that your hos­ting pro­vi­der deci­des which set­tings may be over­writ­ten. So, even though you have included the set­tings cor­rect­ly, they may not load.

Con­nect to your web­site with your FTP cli­ent (e.g. File­Zil­la) and crea­te a php.ini file in the root direc­to­ry.

Then open the file with an edi­tor (e.g. Note­pad++) and insert the fol­lo­wing lines:

post_max_size = 64M
upload_max_filesize = 64M

In our exam­p­le abo­ve, we have increased the limit to 64 MB. You can of cour­se adjust the value to your needs, e.g. 32M, 128M, 256M.

Increase upload limit via Plesk panel #

Local, for individual domains

Log in to your Plesk Panel and then go to Domains > {Top-Level-Domain} > PHP set­tings. The­re you can direct­ly adjust the values for post_max_size and upload_max_filesize .

Increase upload limit via Plesk panel for a single domain.

Global, for all domains

If you want to adjust the set­tings glo­bal­ly for all domains that use a spe­ci­fic PHP ver­si­on, you can edit the PHP.ini file. To do this, go to Tools & Set­tings > PHP Set­tings > { PHP Ver­si­on } > php.ini. Here you can edit the con­fi­gu­ra­ti­on file. Search for post_max_size and upload_max_size and adjust the values accor­ding to your needs.

Edit PHP configuration file (php.ini) in Plesk.

Conclusion #

To increase the upload limit for Word­Press you have to adjust the values post_max_size and upload_max_size eit­her in the hos­ting set­tings of your pro­vi­der or direct­ly in the PHP.ini. With some, out­da­ted hos­ting pro­vi­ders, even just a pho­ne call will help.

Alter­na­tively, you can also switch to a more modern hos­ting (e.g. all-inkl). We are hap­py to take over the Word­Press move for you or you book a Word­Press main­ten­an­ce packa­ge with us, then we take over the tech­ni­cal sup­port of your web­site for you.

88e86fcb816eff22bc917094df2862d8dd5c0e978b333e6dd5f36f808990c261 96

Arti­kel von:

Marc Wag­ner

Hi Marc here. I’m the foun­der of Forge12 Inter­ac­ti­ve and have been pas­sio­na­te about buil­ding web­sites, online stores, appli­ca­ti­ons and SaaS solu­ti­ons for busi­nesses for over 20 years. Befo­re foun­ding the com­pa­ny, I alre­a­dy work­ed in publicly lis­ted com­pa­nies and acqui­red all kinds of know­ledge. Now I want to pass this know­ledge on to my cus­to­mers.

Hast du eine Fra­ge? Hin­ter­lass bit­te einen Kom­men­tar