{"id":1286,"date":"2015-01-14T08:25:36","date_gmt":"2015-01-14T08:25:36","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=1286"},"modified":"2021-02-16T10:01:45","modified_gmt":"2021-02-16T10:01:45","slug":"changing-the-maximum-upload-size-in-php-ini","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/","title":{"rendered":"Changing the maximum upload size in php.ini"},"content":{"rendered":"<p>There are a few typical errors that happen in WordPress platforms and other PHP-based applications that use the php.ini for certain configurations. One of the most typical of these configurations is the maximum upload file size (&#8220;upload_max_filesize&#8221;). This is a setting generally discovered within a file known as php.ini.<!--more--><br \/>\nActual Error is like:<br \/>\n[wpfmb type=&#8217;error&#8217; theme=2]file_name&#8221; has failed to upload due to an error &#8211; This file exceeds the maximum upload size for this site.[\/wpfmb]<br \/>\nYou will need to improve the allowed memory size in your php.ini file.In this article will explain to you on how to fix the php memory error by modifying your local php.ini file.<br \/>\n<strong>Fix the &#8220;Maximum upload size exceeded&#8221; Error<\/strong><br \/>\nTo fix the above error <a title=\"cPanel Login\" href=\"https:\/\/cpanelplesk.com\/wp62\/cpanel-login\/\">Login to your cPanel<\/a>.<br \/>\nGo to files section of your cPanel and click on\u00a0<strong>File Manager<\/strong>.<br \/>\n<a href=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/File-manager.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-1289 pleslwp\" src=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/File-manager.jpg\" alt=\"File manager\" width=\"501\" height=\"185\" srcset=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/File-manager.jpg 501w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/File-manager-300x111.jpg 300w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/File-manager-320x118.jpg 320w, https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/File-manager-239x88.jpg 239w\" sizes=\"(max-width: 501px) 100vw, 501px\" \/><\/a><br \/>\nLocate the php.ini file in your public_html directory. If you do not have one, you can make an empty file by simply clicking the New File icon and labeling it php.ini so you can modify and add your own configurations.<br \/>\nYou need to set the value of <strong>upload_max_filesize .\u00a0<\/strong>The\u00a0<strong><em>file_uploads\u00a0<\/em><\/strong><span style=\"line-height: 1.5;\"><strong>should be set to &#8220;on&#8221;<\/strong> and<strong> &#8221;\u00a0<\/strong><\/span><strong><em>Maximum allowed size for uploaded files<\/em><\/strong>&#8221; should be set to the file size that you need.<br \/>\nAfter that click the <strong>save changes button\u00a0<\/strong>to save your settings.<br \/>\nThis modification affects all files within the directory that a php.ini is stored, unless the file is set to be recursive. \u00a0If it is set to be recursive, then it impacts all directories as per the establishing in the .htaccess file.<br \/>\nFor more details, see How to make <a title=\"How to make php.ini file recursive\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-make-php-ini-file-recursive\/\">php.ini file recursive<\/a>\u00a0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a few typical errors that happen in WordPress platforms and other PHP-based applications that use the php.ini for certain configurations. One of the most typical of these configurations is the maximum upload file size (&#8220;upload_max_filesize&#8221;). This is a setting generally discovered within a file known as php.ini. [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":1291,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,14],"tags":[],"class_list":["post-1286","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Changing the maximum upload size in php.ini - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Changing the maximum upload size in php.ini - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"There are a few typical errors that happen in WordPress platforms and other PHP-based applications that use the php.ini for certain configurations. One of the most typical of these configurations is the maximum upload file size (&#8220;upload_max_filesize&#8221;). This is a setting generally discovered within a file known as php.ini. [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"Changing the maximum upload size in php.ini\",\"datePublished\":\"2015-01-14T08:25:36+00:00\",\"dateModified\":\"2021-02-16T10:01:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/\"},\"wordCount\":297,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png\",\"articleSection\":[\"Cpanel\",\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/\",\"name\":\"Changing the maximum upload size in php.ini - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png\",\"datePublished\":\"2015-01-14T08:25:36+00:00\",\"dateModified\":\"2021-02-16T10:01:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png\",\"width\":200,\"height\":200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changing the maximum upload size in php.ini\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Changing the maximum upload size in php.ini - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/","twitter_card":"summary_large_image","twitter_title":"Changing the maximum upload size in php.ini - cPanel Plesk","twitter_description":"There are a few typical errors that happen in WordPress platforms and other PHP-based applications that use the php.ini for certain configurations. One of the most typical of these configurations is the maximum upload file size (&#8220;upload_max_filesize&#8221;). This is a setting generally discovered within a file known as php.ini. [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"Changing the maximum upload size in php.ini","datePublished":"2015-01-14T08:25:36+00:00","dateModified":"2021-02-16T10:01:45+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/"},"wordCount":297,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png","articleSection":["Cpanel","Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/","url":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/","name":"Changing the maximum upload size in php.ini - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png","datePublished":"2015-01-14T08:25:36+00:00","dateModified":"2021-02-16T10:01:45+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/01\/phpsettings.png","width":200,"height":200},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"Changing the maximum upload size in php.ini"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/1286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=1286"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/1286\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/1291"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=1286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=1286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=1286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}