{"id":7214,"date":"2022-02-23T12:55:37","date_gmt":"2022-02-23T12:55:37","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=7214"},"modified":"2026-02-26T14:03:06","modified_gmt":"2026-02-26T14:03:06","slug":"how-can-you-increase-the-maximum-file-upload-size-limit-in-php","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/","title":{"rendered":"How Can You Increase The Maximum File Upload Size Limit In PHP"},"content":{"rendered":"<p><strong><\/strong><\/p>\r\n<p>In this tutorial, we&#8217;ll show you how to set a PHP upload size restriction. Introduction:-The maximum file upload size in cPanel is set to 2MB by default. To increase the upload limit, follow this procedure.<\/p>\r\n\r\n\r\n\r\n\r\n\r\n<p><strong>To proceed, follow the Procedure:<\/strong><\/p>\r\n\r\n\r\n\r\n<ol>\r\n<li>Log into WHM.<\/li>\r\n<li>Look for MultiPHP INI Editor in the search bar.<br \/><img loading=\"lazy\" decoding=\"async\" width=\"373\" height=\"183\" class=\"wp-image-7216\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_5.png\" alt=\"\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_5.png 373w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_5-300x147.png 300w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_5-230x113.png 230w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_5-350x172.png 350w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><\/li>\r\n<li>Choose the PHP version that your website uses.<br \/><img loading=\"lazy\" decoding=\"async\" width=\"373\" height=\"166\" class=\"wp-image-7217\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_6.png\" alt=\"\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_6.png 373w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_6-300x134.png 300w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_6-230x102.png 230w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_6-350x156.png 350w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><\/li>\r\n<li>The following variables should be increased. <br \/>upload_max_filesize<br \/><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"80\" class=\"wp-image-7218\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_7.png\" alt=\"\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_7.png 930w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_7-300x26.png 300w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_7-768x66.png 768w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_7-830x71.png 830w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_7-230x20.png 230w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_7-350x30.png 350w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_7-480x41.png 480w\" sizes=\"auto, (max-width: 930px) 100vw, 930px\" \/><br \/>\r\n<figure class=\"wp-block-image size-large\"><\/figure>\r\n\r\n\r\n\r\n<p>post_max_size (This should be at least as big as upload max file size.)<img loading=\"lazy\" decoding=\"async\" width=\"926\" height=\"81\" class=\"wp-image-7219\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_8.png\" alt=\"\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_8.png 926w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_8-300x26.png 300w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_8-768x67.png 768w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_8-830x73.png 830w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_8-230x20.png 230w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_8-350x31.png 350w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_8-480x42.png 480w\" sizes=\"auto, (max-width: 926px) 100vw, 926px\" \/><br \/>memory_limit\u00a0(This should be at least as big as post max size.)<br \/><img loading=\"lazy\" decoding=\"async\" width=\"933\" height=\"80\" class=\"wp-image-7220\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_9.png\" alt=\"\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_9.png 933w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_9-300x26.png 300w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_9-768x66.png 768w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_9-830x71.png 830w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_9-230x20.png 230w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_9-350x30.png 350w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_9-480x41.png 480w\" sizes=\"auto, (max-width: 933px) 100vw, 933px\" \/><br \/>max_execution_time\u00a0(Optional, but it can help prevent timeout issues while working with huge files.)<br \/><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"80\" class=\"wp-image-7221\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_10.png\" alt=\"\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_10.png 922w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_10-300x26.png 300w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_10-768x67.png 768w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_10-830x72.png 830w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_10-230x20.png 230w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_10-350x30.png 350w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_10-480x42.png 480w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><\/p>\r\n<\/li>\r\n<li>Now, Click &#8220;Apply&#8221;<br \/>\r\n<p>Repeat for all PHP versions that demand larger file upload sizes.<\/p>\r\n\r\n\r\n\r\n<p>Note: Please keep in mind that these variables have a maximum capacity of 2GB.<\/p>\r\n<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<p><strong>Conclusion<\/strong><\/p>\r\n\r\n\r\n\r\n<p>We sincerely hope that you must now have got a clear idea regarding how can you increase the maximum file upload size limit in PHP. If you continue to have problems with the procedure outlined above, please contact the <a href=\"http:\/\/www.bodhost.com\" target=\"_blank\" rel=\"noreferrer noopener\">bodHOST <\/a>Team for proactive help 24&#215;7.<\/p>\r\n<p><strong><\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we&#8217;ll show you how to set a PHP upload size restriction. Introduction:-The maximum file upload size in cPanel is set to 2MB by default. To increase the&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[943],"tags":[489,194],"class_list":["post-7214","post","type-post","status-publish","format-standard","hentry","category-whm","tag-php","tag-whm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>In PHP, how can you increase the maximum file upload size limit?<\/title>\n<meta name=\"description\" content=\"We&#039;ve shown you how to increase the maximum file upload size limit in PHP in this tutorial. You can learn more by following this step.\" \/>\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.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"In PHP, how can you increase the maximum file upload size limit?\" \/>\n<meta property=\"og:description\" content=\"We&#039;ve shown you how to increase the maximum file upload size limit in PHP in this tutorial. You can learn more by following this step.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-23T12:55:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:03:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/06\/How-Can-You-Increase-The-Maximum-File-Upload-Size-Limit-In-PHP.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vincer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/06\/How-Can-You-Increase-The-Maximum-File-Upload-Size-Limit-In-PHP-1.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vincer\" \/>\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.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/\"},\"author\":{\"name\":\"Vincer\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\"},\"headline\":\"How Can You Increase The Maximum File Upload Size Limit In PHP\",\"datePublished\":\"2022-02-23T12:55:37+00:00\",\"dateModified\":\"2026-02-26T14:03:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/\"},\"wordCount\":201,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Screenshot_5.png\",\"keywords\":[\"php\",\"WHM\"],\"articleSection\":[\"WHM\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/\",\"name\":\"In PHP, how can you increase the maximum file upload size limit?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Screenshot_5.png\",\"datePublished\":\"2022-02-23T12:55:37+00:00\",\"dateModified\":\"2026-02-26T14:03:06+00:00\",\"description\":\"We've shown you how to increase the maximum file upload size limit in PHP in this tutorial. You can learn more by following this step.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Screenshot_5.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/Screenshot_5.png\",\"width\":373,\"height\":183},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"WHM\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/whm\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How Can You Increase The Maximum File Upload Size Limit In PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\",\"name\":\"Vincer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"caption\":\"Vincer\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/vinayak\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"In PHP, how can you increase the maximum file upload size limit?","description":"We've shown you how to increase the maximum file upload size limit in PHP in this tutorial. You can learn more by following this step.","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.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/","og_locale":"en_US","og_type":"article","og_title":"In PHP, how can you increase the maximum file upload size limit?","og_description":"We've shown you how to increase the maximum file upload size limit in PHP in this tutorial. You can learn more by following this step.","og_url":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2022-02-23T12:55:37+00:00","article_modified_time":"2026-02-26T14:03:06+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/06\/How-Can-You-Increase-The-Maximum-File-Upload-Size-Limit-In-PHP.png","type":"image\/png"}],"author":"Vincer","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/06\/How-Can-You-Increase-The-Maximum-File-Upload-Size-Limit-In-PHP-1.png","twitter_misc":{"Written by":"Vincer","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/"},"author":{"name":"Vincer","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0"},"headline":"How Can You Increase The Maximum File Upload Size Limit In PHP","datePublished":"2022-02-23T12:55:37+00:00","dateModified":"2026-02-26T14:03:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/"},"wordCount":201,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_5.png","keywords":["php","WHM"],"articleSection":["WHM"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/","url":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/","name":"In PHP, how can you increase the maximum file upload size limit?","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/#primaryimage"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_5.png","datePublished":"2022-02-23T12:55:37+00:00","dateModified":"2026-02-26T14:03:06+00:00","description":"We've shown you how to increase the maximum file upload size limit in PHP in this tutorial. You can learn more by following this step.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/#primaryimage","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_5.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/05\/Screenshot_5.png","width":373,"height":183},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-can-you-increase-the-maximum-file-upload-size-limit-in-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"WHM","item":"https:\/\/www.bodhost.com\/kb\/category\/whm\/"},{"@type":"ListItem","position":2,"name":"How Can You Increase The Maximum File Upload Size Limit In PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0","name":"Vincer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","caption":"Vincer"},"url":"https:\/\/www.bodhost.com\/kb\/author\/vinayak\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/7214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=7214"}],"version-history":[{"count":6,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/7214\/revisions"}],"predecessor-version":[{"id":11861,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/7214\/revisions\/11861"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=7214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=7214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=7214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}