{"id":1158,"date":"2020-11-12T15:08:07","date_gmt":"2020-11-12T15:08:07","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2020\/11\/12\/4622447-how-to-increase-upload-max-filesize-and-php-values-on-cpanel-at-hostinger\/"},"modified":"2025-08-27T07:09:10","modified_gmt":"2025-08-27T07:09:10","slug":"4622447-how-to-increase-upload-max-filesize-and-php-values-on-cpanel-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4622447-how-to-increase-upload-max-filesize-and-php-values-on-cpanel-at-hostinger\/","title":{"rendered":"How to Increase Upload Max Filesize and PHP Values on cPanel at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">When running an application, script, plugin, or even uploading a file via PHP, you may face an error because of exceeded limitations set by your web server. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To solve this, you can increase the default <b>upload_max_filesize<\/b> limit via <b>cPanel<\/b> &#128071; <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Navigate to <b>cPanel<\/b> &rarr; <b>Software <\/b>&rarr; <b>Select PHP Version<\/b>: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2020\/11\/b02390d9-f8ed-4e95-9610-06762877b238.jpg\" alt=\"The Select PHP Version option on the Software section on cPanel\"><\/div><p class=\"no-margin\">Then, select <b>Options<\/b>, locate the <b>upload_max_filesize<\/b>, and set the maximum value available in your plan.<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2020\/11\/db24ba1f-3f3c-4d5e-ad4d-3bcb8cdfa9e1.jpg\"><\/div><p class=\"no-margin\">And that&rsquo;s it! Increasing the <b>upload_max_filesize<\/b> value should automatically fix the error.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If the errors persist, increase other PHP limits by adding a few lines of code to your <b>.htaccess<\/b> file as described here: <b><a href=\"\/support\/4622356-how-to-increase-upload-max-filesize-and-php-values-via-htaccess\" target=\"_blank\" class=\"intercom-content-link\">How to Increase Upload Max Filesize and PHP Values via .htaccess<\/a> &#128161; <\/b><\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>NOTES<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">You may adjust the PHP limits to any desired values as long as your plan supports it<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">The maximum limits can also be found in the <b><a href=\"https:\/\/www.hostinger.com\/tutorials\/how-to-create-phpinfo-file\" target=\"_blank\" class=\"intercom-content-link\">phpinfo<\/a><\/b> file of your website<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Changing PHP Values and upload_max_filesize through cPanel<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[194],"tags":[],"class_list":["post-1158","post","type-post","status-publish","format-standard","hentry","category-php-cpanel"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4622447-how-to-increase-upload-max-filesize-and-php-values-on-cpanel-at-hostinger\/","default":1},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4622447-comment-augmenter-la-taille-maximale-des-fichiers-a-telecharger-valeurs-php-sur-cpanel-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4622447-bagaimana-cara-menaikkan-batasan-upload-max-filesize-php-value-di-hostinger-cpanel\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/4622447-como-aumentar-os-valores-de-upload-maximos-de-tamanho-de-arquivo-php-no-cpanel\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1158"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1158\/revisions"}],"predecessor-version":[{"id":4568,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1158\/revisions\/4568"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}