{"id":3000,"date":"2017-01-11T11:21:20","date_gmt":"2017-01-11T11:21:20","guid":{"rendered":"https:\/\/www.milesweb.com\/hosting-faqs\/?p=3000"},"modified":"2022-04-25T15:11:22","modified_gmt":"2022-04-25T09:41:22","slug":"changing-maximum-upload-size-php-ini","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/","title":{"rendered":"How to change the maximum upload size in php.ini?"},"content":{"rendered":"<p>There are a couple of common errors that you may encounter with while using WordPress and other PHP-based programs that use the php.ini for certain settings. One of the most common is the maximum upload filesize settings (&#8220;<em>upload_max_filesize<\/em>&#8220;). This setting can be found within a file known as the php.ini file.\u00a0 Below is an example screenshot of a program with max file size limits exceeded during an upload attempt:<\/p>\n<p><a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16418\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png\" alt=\"\" width=\"522\" height=\"228\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png 522w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1-300x131.png 300w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><em>Error text: file_name&#8221; has failed to upload due to an error &#8211; This file exceeds the maximum upload size for this site.<\/em><\/span><\/p>\n<p>To fix this error, you will need to increase the allowed memory in your php.ini file. The instructions below will help you to fix the php memory error and for this, you will need to make some adjustment in the appropriate sections of your local php.ini file.<\/p>\n<h2>Fixing the &#8220;Maximum upload size exceeded&#8221; Error<\/h2>\n<p><strong>Step 1:<\/strong> Login to your cPanel Control Panel.<\/p>\n<p><strong>Step 2:<\/strong> Scroll down to the FILES section of your cPanel, and then click on the FILE MANAGER icon.<\/p>\n<p><strong>Step 3:<\/strong> Use the File Manager to navigate to the web root.<\/p>\n<p><strong>Step 4:<\/strong> Search for php.ini file in your public_html folder. If the file is not there, you can ask our Technical Support team member to place a default one in your account or you can simply create a blank file by clicking on the New File icon and naming it php.ini. Once you are done, you can edit and add your own settings.<\/p>\n<p>Once you have a php.ini file, click on the file name to highlight it on the right side of the File Manager. If you need further information on editing with the File Manager editors, go to Using the File Manager Code Editor.<\/p>\n<p><strong>Step 5:<\/strong> Search the php.ini file for the following text:<\/p>\n<pre class=\"plain:false plain-toggle:false copy:false popup:false lang:default decode:true\">;;;;;;;;;;;;;;;;\n\n; File Uploads ;\n\n;;;;;;;;;;;;;;;\n\n; Whether to allow HTTP file uploads.\n\nfile_uploads = On\n\n; Temporary directory for HTTP uploaded files (will use system default if not\n\n; specified).\n\n;upload_tmp_dir =\n\n; Maximum allowed size for uploaded files.\n\nupload_max_filesize = 128M<\/pre>\n<p>The file_uploads should be set to <em>&#8220;on&#8221;<\/em> and &#8220;<em>Maximum allowed size for uploaded files<\/em>&#8221; should be set to the file size that you will need.<\/p>\n<p><strong>Step 6:<\/strong> Click the <strong><span style=\"color: #ff0000;\">Save Changes<\/span><\/strong> button to save your changes.<\/p>\n<p><strong>Related:\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/set-timezone-php-php-ini-file\/\">How to set the Timezone for PHP in the php.ini file<\/a><\/strong><\/p>\n<p>This change affects all files within the directory that a php.ini is saved\u00a0unless the file is set to be recursive.\u00a0 If it is set to be recursive, then it affects all directories as per the setting in the .HTACCESS file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a couple of common errors that you may encounter with while using WordPress and other PHP-based programs that use the php.ini for certain settings. One of the most common is the maximum upload filesize settings (&#8220;upload_max_filesize&#8220;). This setting can be found within a file known as the php.ini file.\u00a0 Below is an example [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-3000","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to change the maximum upload size in php.ini?<\/title>\n<meta name=\"description\" content=\"Facing problem with Fixing the &quot;Maximum upload size exceeded&quot; error, here is a step-by-step process to change the maximum upload size in php.ini.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to change the maximum upload size in php.ini?\" \/>\n<meta property=\"og:description\" content=\"Facing problem with Fixing the &quot;Maximum upload size exceeded&quot; error, here is a step-by-step process to change the maximum upload size in php.ini.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-11T11:21:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-25T09:41:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png\" \/>\n<meta name=\"author\" content=\"Pravin Ganore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pravin Ganore\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/\"},\"author\":{\"name\":\"Pravin Ganore\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/9f6aad74f4af57132ba60117b4ab3ea6\"},\"headline\":\"How to change the maximum upload size in php.ini?\",\"datePublished\":\"2017-01-11T11:21:20+00:00\",\"dateModified\":\"2022-04-25T09:41:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/\"},\"wordCount\":407,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png\",\"articleSection\":[\"How-Tos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/\",\"name\":\"How to change the maximum upload size in php.ini?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png\",\"datePublished\":\"2017-01-11T11:21:20+00:00\",\"dateModified\":\"2022-04-25T09:41:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/9f6aad74f4af57132ba60117b4ab3ea6\"},\"description\":\"Facing problem with Fixing the \\\"Maximum upload size exceeded\\\" error, here is a step-by-step process to change the maximum upload size in php.ini.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png\",\"width\":522,\"height\":228},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to change the maximum upload size in php.ini?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/9f6aad74f4af57132ba60117b4ab3ea6\",\"name\":\"Pravin Ganore\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/911c7c72d64a0d0e0b6c8f1be7e7421c413395f2f2403d0adb26ae16b4130572?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/911c7c72d64a0d0e0b6c8f1be7e7421c413395f2f2403d0adb26ae16b4130572?s=96&d=blank&r=g\",\"caption\":\"Pravin Ganore\"},\"description\":\"Pravin is Journalist Specializing in Blogging, Social Networking and Community Management. As a constant learner, he is always aiming towards new ideas and greater knowledge. When he is not doing research, reading, or writing for blogs, you can find him hanging around social media sites.\",\"sameAs\":[\"https:\/\/www.milesweb.com\"],\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pravin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to change the maximum upload size in php.ini?","description":"Facing problem with Fixing the \"Maximum upload size exceeded\" error, here is a step-by-step process to change the maximum upload size in php.ini.","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:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/","og_locale":"en_US","og_type":"article","og_title":"How to change the maximum upload size in php.ini?","og_description":"Facing problem with Fixing the \"Maximum upload size exceeded\" error, here is a step-by-step process to change the maximum upload size in php.ini.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2017-01-11T11:21:20+00:00","article_modified_time":"2022-04-25T09:41:22+00:00","og_image":[{"url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png","type":"","width":"","height":""}],"author":"Pravin Ganore","twitter_misc":{"Written by":"Pravin Ganore","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/"},"author":{"name":"Pravin Ganore","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/9f6aad74f4af57132ba60117b4ab3ea6"},"headline":"How to change the maximum upload size in php.ini?","datePublished":"2017-01-11T11:21:20+00:00","dateModified":"2022-04-25T09:41:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/"},"wordCount":407,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png","articleSection":["How-Tos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/","name":"How to change the maximum upload size in php.ini?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png","datePublished":"2017-01-11T11:21:20+00:00","dateModified":"2022-04-25T09:41:22+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/9f6aad74f4af57132ba60117b4ab3ea6"},"description":"Facing problem with Fixing the \"Maximum upload size exceeded\" error, here is a step-by-step process to change the maximum upload size in php.ini.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#primaryimage","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2017\/01\/upload-file-error-1.png","width":522,"height":228},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/changing-maximum-upload-size-php-ini\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to change the maximum upload size in php.ini?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/9f6aad74f4af57132ba60117b4ab3ea6","name":"Pravin Ganore","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/911c7c72d64a0d0e0b6c8f1be7e7421c413395f2f2403d0adb26ae16b4130572?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/911c7c72d64a0d0e0b6c8f1be7e7421c413395f2f2403d0adb26ae16b4130572?s=96&d=blank&r=g","caption":"Pravin Ganore"},"description":"Pravin is Journalist Specializing in Blogging, Social Networking and Community Management. As a constant learner, he is always aiming towards new ideas and greater knowledge. When he is not doing research, reading, or writing for blogs, you can find him hanging around social media sites.","sameAs":["https:\/\/www.milesweb.com"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pravin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/3000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=3000"}],"version-history":[{"count":6,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/3000\/revisions"}],"predecessor-version":[{"id":16695,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/3000\/revisions\/16695"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=3000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=3000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=3000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}