{"id":2079,"date":"2023-11-30T17:04:57","date_gmt":"2023-11-30T11:34:57","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=2079"},"modified":"2025-03-28T12:19:45","modified_gmt":"2025-03-28T06:49:45","slug":"how-to-increase-the-post-size-of-php-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/how-to-increase-the-post-size-of-php-in-cpanel\/","title":{"rendered":"How to Increase the POST Size of PHP in cPanel"},"content":{"rendered":"\n<p>When dealing with large amounts of data being sent via <a href=\"https:\/\/en.wikipedia.org\/wiki\/POST_(HTTP)\" target=\"_blank\" rel=\"noopener\">HTTP POST requests<\/a> in PHP, you may encounter the need to increase the maximum POST size. <a href=\"https:\/\/cpanel.net\/\" target=\"_blank\" rel=\"noopener\">cPanel <\/a>provides an easy way to adjust PHP configurations, including the <code>post_max_size<\/code> directive. Follow these steps to increase the POST size for PHP in cPanel:<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"step-1-log-in-to-cpanel\">Step 1: Log in to cPanel<\/h4>\n\n\n<ol class=\"wp-block-list\">\n<li>Open your web browser and navigate to your cPanel login page.<\/li>\n\n\n\n<li>Enter your cPanel username and password to log in.<\/li>\n<\/ol>\n\n\n<h4 class=\"wp-block-heading\" id=\"step-2-locate-the-software-section\">Step 2: Locate the &#8220;Software&#8221; Section<\/h4>\n\n\n<p>Navigate to the &#8220;Software&#8221; section in cPanel. The exact location may vary depending on your cPanel theme.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2023\/11\/one.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"693\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2023\/11\/one-1024x693.jpg\" alt=\"multiphp ini editor\" class=\"wp-image-2081\" style=\"aspect-ratio:1.4776334776334776\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/one-1024x693.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/one-300x203.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/one-768x519.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/one.jpg 1069w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n<h4 class=\"wp-block-heading\" id=\"step-4-select-the-appropriate-domain\">Step 4: Select the Appropriate Domain<\/h4>\n\n\n<p>In the &#8220;MultiPHP INI Editor,&#8221; choose the domain for which you want to modify the PHP settings from the drop-down menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2023\/11\/two.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2023\/11\/two-1024x504.jpg\" alt=\"basic settings of MultiPHP INI Editor\n\" class=\"wp-image-2082\" style=\"aspect-ratio:2.0317460317460316\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/two-1024x504.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/two-300x148.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/two-768x378.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/two.jpg 1462w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n<h4 class=\"wp-block-heading\" id=\"step-5-adjust-postmaxsize\">Step 5: Adjust &#8220;<a href=\"https:\/\/beaglesecurity.com\/blog\/vulnerability\/php-post_max_size-show-phpinfo.html\" target=\"_blank\" rel=\"noopener\">post_max_size<\/a>&#8220;<\/h4>\n\n\n<p>Locate the &#8220;post_max_size&#8221; directive. This parameter determines the maximum size of POST data that PHP will accept and is usually set in megabytes (MB). Increase the value to your desired maximum POST size (e.g., <code>post_max_size = 50M<\/code> for 50MB).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2023\/11\/last.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"488\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2023\/11\/last-1024x488.jpg\" alt=\"post max size\" class=\"wp-image-2084\" style=\"aspect-ratio:2.098360655737705\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/last-1024x488.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/last-300x143.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/last-768x366.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/last.jpg 1450w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n<h4 class=\"wp-block-heading\" id=\"step-6-save-changes\">Step 6: Save Changes<\/h4>\n\n\n<p>Scroll down to the bottom of the page and click the &#8220;Apply&#8221; button to save your changes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2023\/11\/last-1.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"506\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2023\/11\/last-1-1024x506.jpg\" alt=\"save the changes\" class=\"wp-image-2089\" style=\"aspect-ratio:2.0237154150197627\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/last-1-1024x506.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/last-1-300x148.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/last-1-768x379.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/last-1.jpg 1434w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Congratulations! You have successfully increased the POST size for PHP in cPanel.<\/p>\n<\/blockquote>\n\n\n\n<p>Please note that increasing this size may have implications for server resources, so exercise caution and consider server specifications.<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-12eaac8e wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Secure and Reliable Node.js Hosting for Your Critical Applications<\/h3><p class=\"uagb-cta__desc\">Trust Veeble for secure Node.js hosting. Free SSL, DDoS protection, and global servers. Your applications, protected and fast.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/nodejs-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Explore Node.js Plans<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When dealing with large amounts of data being sent via HTTP POST requests in PHP, you may encounter the need to increase the maximum [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":8316,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2079","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Increase-the-POST-Size-of-PHP-in-cPanel.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Increase-the-POST-Size-of-PHP-in-cPanel-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Increase-the-POST-Size-of-PHP-in-cPanel-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Increase-the-POST-Size-of-PHP-in-cPanel-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Increase-the-POST-Size-of-PHP-in-cPanel-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Increase-the-POST-Size-of-PHP-in-cPanel.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Increase-the-POST-Size-of-PHP-in-cPanel.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Nayana Nair","author_link":"https:\/\/www.veeble.com\/kb\/author\/nayana\/"},"uagb_comment_info":0,"uagb_excerpt":"When dealing with large amounts of data being sent via HTTP POST requests in PHP, you may encounter the need to increase the maximum [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=2079"}],"version-history":[{"count":6,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2079\/revisions"}],"predecessor-version":[{"id":8388,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2079\/revisions\/8388"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8316"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=2079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=2079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=2079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}