{"id":529,"date":"2021-12-30T18:12:32","date_gmt":"2021-12-30T17:12:32","guid":{"rendered":"https:\/\/servikus.com\/tutorials\/?p=529"},"modified":"2021-12-30T18:21:45","modified_gmt":"2021-12-30T17:21:45","slug":"how-to-change-php-upload_max_filesize-value-simplified","status":"publish","type":"post","link":"https:\/\/servikus.com\/tutorials\/how-to-change-php-upload_max_filesize-value-simplified\/","title":{"rendered":"How to change PHP upload_max_filesize value &#8211; simplified"},"content":{"rendered":"\n<p>Once you have installed WordPress, as we have shown in some of our previous tutorials, you probably want to change things a bit \u2013 add some images, use a new plugin, maybe change the theme. Each file that you wish to upload had its size, which your website should be able to handle. Also, you want to define how much your posts will take and how much some of the PHP scripts will use out of your entire memory. Sometimes, you can receive this kind of error:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/upload_max_filesize-error.png\"><img src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/upload_max_filesize-error.png\" alt=\"\" class=\"wp-image-532\" width=\"600\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/upload_max_filesize-error.png 793w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/upload_max_filesize-error-300x59.png 300w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/upload_max_filesize-error-768x150.png 768w\" sizes=\"(max-width: 793px) 100vw, 793px\" \/><\/a><\/figure>\n\n\n\n<p>Log in to your cPanel. Scroll down to the SOFTWARE menu, then click on <em>Select PHP Version<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/Software.png\"><img src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/Software-1024x235.png\" alt=\"\" class=\"wp-image-541\" width=\"600\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/Software-1024x235.png 1024w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/Software-300x69.png 300w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/Software-768x176.png 768w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/Software.png 1358w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Once there, go to the <em>Options<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP2-1.png\"><img src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP2-1.png\" alt=\"PHP options\" class=\"wp-image-533\" width=\"600\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP2-1.png 757w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP2-1-300x146.png 300w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/a><\/figure>\n\n\n\n<p>This page holds the PHP directives and values which are allocated for each one. <\/p>\n\n\n\n<h2>How to change PHP upload_max_filesize value (and other related PHP directive\u2019s values)<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>&#8211; To change the value you are looking for, find it on the list.<\/p>\n\n\n\n<p>&#8211; Select the dropdown menu next to it.<\/p>\n\n\n\n<p>&#8211; Choose the value which you find necessary or fit. <\/p>\n\n\n\n<p>You can also change other values, but this is not recommended unless it is necessary. Each change <em>affects your website&#8217;s performance<\/em>, so <strong>double-check before changing anything<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP3.png\"><img src=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP3-1024x1022.png\" alt=\"\" class=\"wp-image-534\" width=\"600\" srcset=\"https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP3-1024x1022.png 1024w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP3-300x300.png 300w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP3-150x150.png 150w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP3-768x767.png 768w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP3-1536x1534.png 1536w, https:\/\/servikus.com\/tutorials\/wp-content\/uploads\/2021\/12\/PHP3.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>If you are still receiving an error that you can\u2019t upload what you need to, make sure to check if you have enough <a href=\"https:\/\/servikus.com\/tutorials\/inodes-a-quick-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\">inodes <\/a>space left.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once you have installed WordPress, as we have shown in some of our previous tutorials, you probably want to change things a bit \u2013 add some images, use a new plugin, maybe change the theme. Each file that you wish to upload had its size, which your website should be able to handle. Also, you&#8230; <a class=\"read-more\" href=\"https:\/\/servikus.com\/tutorials\/how-to-change-php-upload_max_filesize-value-simplified\/\">Read More<\/a><\/p>\n","protected":false},"author":1001,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,2],"tags":[],"_links":{"self":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts\/529"}],"collection":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/users\/1001"}],"replies":[{"embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":13,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":549,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/posts\/529\/revisions\/549"}],"wp:attachment":[{"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/servikus.com\/tutorials\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}