{"id":6445,"date":"2025-12-08T15:30:20","date_gmt":"2025-12-08T10:00:20","guid":{"rendered":"https:\/\/www.youstable.com\/blog\/?post_type=epkb_post_type_1&#038;p=5195"},"modified":"2025-12-08T15:30:22","modified_gmt":"2025-12-08T10:00:22","slug":"how-to-increase-file-upload-size-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/how-to-increase-file-upload-size-in-cpanel","title":{"rendered":"How to increase file upload size in cPanel"},"content":{"rendered":"\n<p>Suppose you are uploading an image or some files and you are getting an error that the file cannot be uploaded, then what will you do? Definitely, you will have to increase file upload size for your website. So in this tutorial, we will learn how to increase file upload size in cPanel.<\/p>\n\n\n\n<p>This article will help you in how to increase file upload size in cPanel.<\/p>\n\n\n\n<p>We can increase the file upload size in the following ways:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-using-php-selector\"><strong>1- Using PHP Selector<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-multiphp-ini-editor\"><strong>2- MultiPHP INI Editor<\/strong><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-editing-the-htaccess-file\"><strong>2- Editing the .htaccess file<\/strong><\/h3>\n\n\n\n<p>Now, let\u2019s see how you can increase file upload size in DirectAdmin for different PHP versions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-1-using-php-selector\"><strong>Method-1<\/strong> <strong>Using PHP Selector<\/strong><\/h2>\n\n\n\n<p><strong>1.<\/strong> <strong><a href=\"https:\/\/youstable.com\/blog\/how-to-login-into-cpanel\/\" target=\"_blank\" rel=\"noopener\">Log in to your cPanel account<\/a><\/strong> replacing domain.com with your domain name using the login credentials provided by your hosting provider.<br>https:\/\/domain.com:2083 or  https:\/\/domain.com\/cpanel<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"427\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-login.png\" alt=\"\" class=\"wp-image-5197\"><\/figure>\n\n\n\n<p><strong>2. <\/strong>On the top right corner, type &#8220;Select PHP Version&#8221; in the search bar and click on <strong>Select PHP Version<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-dashboard.png\" alt=\"\" class=\"wp-image-5198\" width=\"643\" height=\"339\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-dashboard.png 981w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-dashboard-768x406.png 768w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/figure>\n\n\n\n<p><strong>3. <\/strong>On the <strong>PHP Selector<\/strong> page, click <strong>Options<\/strong> and scroll down to locate &#8220;<strong>upload_max_filesize<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"504\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-php-selector-page.png\" alt=\"\" class=\"wp-image-5199\"><\/figure>\n\n\n\n<p><strong>4. <\/strong>Click on the drop-down arrow given besides the value of <strong>upload_max_filesize <\/strong>and select the required size.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"659\" height=\"608\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-php-selector-options.png\" alt=\"\" class=\"wp-image-5200\"><\/figure>\n\n\n\n<p><strong>5. <\/strong>Just select the size, no need to save it anywhere.<\/p>\n\n\n\n<p><strong>6.<\/strong> From here you can also set the max_execution_time, memory_limit and post_max_size as per your requirement.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-2-multiphp-ini-editor\"><strong>Method-<strong>2 MultiPHP INI Editor<\/strong><\/strong><\/h2>\n\n\n\n<p><strong>1. <\/strong><a href=\"https:\/\/youstable.com\/blog\/how-to-login-to-cpanel\/\" target=\"_blank\" rel=\"noopener\">Login to cPanel<\/a> and type &#8220;<strong>multiphp ini editor<\/strong>&#8221; in the search bar.<\/p>\n\n\n\n<p><strong>2. <\/strong>Select the location from the drop-down either of the home directory or a domain\u2019s document root to open the corresponding PHP configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-multiphp-editor.png\" alt=\"\" class=\"wp-image-5204\" width=\"-8\" height=\"-5\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-multiphp-editor.png 1220w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-multiphp-editor-768x478.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-multiphp-editor-320x200.png 320w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-multiphp-editor-810x505.png 810w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-multiphp-editor-1140x710.png 1140w\" sizes=\"(max-width: 1220px) 100vw, 1220px\" \/><\/figure>\n\n\n\n<p><strong>3. <\/strong>Scroll down and find out for <strong>upload_max_filesize<\/strong> and edit the value as per your requirement.<br>You must click <strong>Apply<\/strong> to save the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1427\" height=\"693\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/multiphp-upload_max_filesize.png\" alt=\"\" class=\"wp-image-5206\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/multiphp-upload_max_filesize.png 1427w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/multiphp-upload_max_filesize-768x373.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/multiphp-upload_max_filesize-810x393.png 810w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/multiphp-upload_max_filesize-1140x554.png 1140w\" sizes=\"auto, (max-width: 1427px) 100vw, 1427px\" \/><\/figure>\n\n\n\n<p><strong>Note:-<\/strong> <span style=\"text-decoration: underline;\">Here M is for MB &amp; G for GB<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-3-editing-the-htaccess-file\"><strong>Method-3<strong> Editing the .htaccess file<\/strong><\/strong> <\/h2>\n\n\n\n<p><strong>1.<\/strong> Log in to the control panel with the correct credentials that YouStable sent to the registered email address. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1109\" height=\"371\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-1.png\" alt=\"wp-config.php\" class=\"wp-image-1525\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-1.png 1109w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-1-768x257.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-1-179x60.png 179w\" sizes=\"auto, (max-width: 1109px) 100vw, 1109px\" \/><\/figure>\n\n\n\n<p><strong>2.<\/strong> Type \u201c<strong><em>file manager<\/em><\/strong>\u201d in the search bar and click on the first result. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1021\" height=\"226\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-2.png\" alt=\"wp-config.php\" class=\"wp-image-1524\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-2.png 1021w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-2-768x170.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-2-271x60.png 271w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><\/figure>\n\n\n\n<p><strong>3.<\/strong> Now, look for the folder that says \u201c<strong><em>PUBLIC_HTML<\/em><\/strong>\u201d and double-click on it to open it. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1365\" height=\"552\" src=\"https:\/\/youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-3.png\" alt=\"wp-config.php\" class=\"wp-image-1523\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-3.png 1365w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-3-768x311.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2019\/01\/Edit-WP-Config-FIle-in-WordPress-3-148x60.png 148w\" sizes=\"auto, (max-width: 1365px) 100vw, 1365px\" \/><\/figure>\n\n\n\n<p><strong>Step 4<\/strong>: The library of WordPress installed folders shows up on your screen, and scroll down until you find \u201c<strong><em>.htaccess<\/em><\/strong>\u201d in it.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"906\" height=\"605\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-filemanager-htaccess.png\" alt=\"\" class=\"wp-image-5208\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-filemanager-htaccess.png 906w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-filemanager-htaccess-768x513.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-filemanager-htaccess-810x541.png 810w\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" \/><\/figure>\n\n\n\n<p> <strong>4. <\/strong>Right-click on the <strong>.htaccess <\/strong>file and click Edit.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"661\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-htaccess-edit.png\" alt=\"\" class=\"wp-image-5209\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-htaccess-edit.png 790w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-htaccess-edit-768x643.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/figure>\n\n\n\n<p><strong>5. <\/strong>Copy and paste the following code and modify the values as per your requirement at the last and click save.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nphp_value memory_limit 512M\nphp_value post_max_size 900M\nphp_value upload_max_filesize 900M\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-htaccess-editor.png\" alt=\"\" class=\"wp-image-5210\" width=\"769\" height=\"354\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-htaccess-editor.png 983w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-htaccess-editor-768x354.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/cpanel-htaccess-editor-810x373.png 810w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/figure>\n\n\n\n<p><strong>Note:- <\/strong>Please make sure that value for post_max_size is larger or equal to upload_max_filesize<\/p>\n\n\n\n<p>I hope you get what you were looking for.<\/p>\n\n\n\n<p>For any questions or suggestions, just comment below.<\/p>\n\n\n\n<p><strong>You may also like<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/www.youstable.com\/blog\/how-to-change-php-version\/\">How to change PHP version in DirectAdmin?<\/a><\/strong><\/li>\n\n\n\n<li><a href=\"https:\/\/youstable.com\/blog\/how-to-change-link-color-in-wordpress\/\" target=\"_blank\" rel=\"noopener\"><strong>How to change link color in WordPress?<\/strong><\/a><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/youstable.com\/blog\/display-breadcrumb-navigation-links-in-wordpress\/\" target=\"_blank\" rel=\"noopener\">How to Display Breadcrumb Navigation Links in WordPress?<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/youstable.com\/blog\/how-to-redirect-your-404-pages-to-the-home-page-in-wordpress\/\" target=\"_blank\" rel=\"noopener\">How to Redirect your 404 pages to the Home Page in WordPress<\/a>?<\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/youstable.com\/blog\/edit-wp-config-php\/\" target=\"_blank\" rel=\"noopener\">How to Edit wp-config.php File in WordPress?<\/a><\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Suppose you are uploading an image or some files and you are getting an error that the file cannot be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6784,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"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":"","ast-disable-related-posts":"","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":"default","ast-page-background-enabled":"default","ast-page-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":"","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-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":"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":""},"mobile":{"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":""}},"footnotes":""},"categories":[350],"tags":[],"class_list":["post-6445","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/01\/How-to-increase-file-upload-size-in-cPanel-01.jpg","author_info":{"display_name":"YouStable","author_link":"https:\/\/www.youstable.com\/blog\/author\/youstable"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=6445"}],"version-history":[{"count":2,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6445\/revisions"}],"predecessor-version":[{"id":13922,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6445\/revisions\/13922"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/6784"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=6445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=6445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=6445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}