{"id":33954,"date":"2021-07-30T22:47:28","date_gmt":"2021-07-30T22:47:28","guid":{"rendered":"https:\/\/www.hostduplex.com\/kb\/?post_type=ht_kb&#038;p=33954"},"modified":"2021-11-02T17:35:07","modified_gmt":"2021-11-02T17:35:07","slug":"how-to-increase-the-post_max_size-php-value-in-cpanel-using-the-cloudlinux-php-selector","status":"publish","type":"ht_kb","link":"https:\/\/www.hostduplex.com\/kb\/article\/how-to-increase-the-post_max_size-php-value-in-cpanel-using-the-cloudlinux-php-selector\/","title":{"rendered":"How to increase the post_max_size PHP value in cPanel using the CloudLinux PHP Selector?"},"content":{"rendered":"\n<p>This tutorial describes how to increase the PHP post_max_size variable in cPanel with CloudLinux. <\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">The post_max_size variable should always be larger than the upload_max_filesize variable.  In addition, the memory_limit value be larger than both post_max_size and <meta charset=\"utf-8\">upload_max_filesize.<\/p>\n\n\n\n<p><br><strong>Step 1: <\/strong>Log into your cPanel account<\/p>\n\n\n\n<p><strong>Step 2: <\/strong>Under the Software section, click <strong>Select PHP Version<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">This option only appears if you have CloudLinux installed on your server<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-1024x500.png\" alt=\"\" class=\"wp-image-33963\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-1024x500.png 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-300x146.png 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-768x375.png 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-50x24.png 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-1536x750.png 1536w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-60x29.png 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-100x49.png 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector.png 1540w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br><strong>Step 3:<\/strong> Click on the <strong>Options<\/strong> menu<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Note: If the page shows a Warning related to the native PHP version, you will need to select a non-native version first.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"348\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-options-1-1024x348.png\" alt=\"\" class=\"wp-image-33964\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-options-1-1024x348.png 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-options-1-300x102.png 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-options-1-768x261.png 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-options-1-50x17.png 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-options-1-60x20.png 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-options-1-100x34.png 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cpanel-cloudlinux-php-selector-options-1.png 1182w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 4:<\/strong> Change the&nbsp;<strong>post_max_size&nbsp;<\/strong> by clicking the drop-down option displayed in front of it. Then choose the appropriate limit as per your requirements.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized is-style-default\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/07\/cloudlinux-php-selector-post-max-size.gif\" alt=\"\" class=\"wp-image-33956\" width=\"867\" height=\"403\"\/><\/figure>\n\n\n\n<p><strong>Congratulations, you have successfully increased the post_max_size PHP value.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial describes how to increase the PHP post_max_size variable in cPanel with CloudLinux. Step 1: Log into your cPanel account Step 2: Under the Software section, click Select PHP Version: Step 3: Click on the Options menu Step 4: Change the&nbsp;post_max_size&nbsp; by clicking the drop-down option displayed in front&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[19,20],"ht-kb-tag":[22,23,124,122,121,125,123],"class_list":["post-33954","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-cloudlinux-8","ht_kb_category-cpanel","ht_kb_tag-cloudlinux","ht_kb_tag-cpanel","ht_kb_tag-memory_limit","ht_kb_tag-php","ht_kb_tag-post_max_size","ht_kb_tag-upload","ht_kb_tag-upload_max_filesize"],"_links":{"self":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/33954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/comments?post=33954"}],"version-history":[{"count":9,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/33954\/revisions"}],"predecessor-version":[{"id":34590,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/33954\/revisions\/34590"}],"wp:attachment":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/media?parent=33954"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=33954"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=33954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}