{"id":268,"date":"2020-12-05T13:31:44","date_gmt":"2020-12-05T13:31:44","guid":{"rendered":"https:\/\/hostandtech.com\/help\/?p=268"},"modified":"2022-03-03T11:12:38","modified_gmt":"2022-03-03T11:12:38","slug":"how-to-change-the-upload-file-size-for-php","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/","title":{"rendered":"How to change the upload file size for PHP"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"268\" class=\"elementor elementor-268\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1a85077 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1a85077\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3a8a60b\" data-id=\"3a8a60b\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ed35ff9 elementor-widget elementor-widget-text-editor\" data-id=\"ed35ff9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>There are many reasons that you might need to increase or decrease your maximum upload file size for PHP. In this article we will describe how to change PHP maximum upload file size by two ways:<\/p><ol><li>Editing the php<span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"https:\/\/en.wikipedia.org\/wiki\/INI_file\" target=\"_blank\" rel=\"noopener\">.ini file<\/a><\/span> directly.<\/li><li>\u00a0From cPanel WHM control panel.<\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2dcbed54 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2dcbed54\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5cd3bb95\" data-id=\"5cd3bb95\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f69e6b8 elementor-widget elementor-widget-heading\" data-id=\"f69e6b8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Change the maximum upload file size for PHP via SSH<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c863e32 elementor-widget elementor-widget-text-editor\" data-id=\"c863e32\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Edit your php.ini file (usually stored in \/etc\/php.ini or \/etc\/php.d\/cgi\/php.ini or \/usr\/local\/etc\/php.ini):<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-801265a elementor-widget elementor-widget-code-highlight\" data-id=\"801265a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>vi \/etc\/php.ini\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5a43105 elementor-widget elementor-widget-text-editor\" data-id=\"5a43105\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );\">And start to change the values for both uploadmax_filesize and postmax_size.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-756a5bc elementor-widget elementor-widget-heading\" data-id=\"756a5bc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Modifying  in cPanel\/WHM<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e02b2ea elementor-widget elementor-widget-text-editor\" data-id=\"e02b2ea\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>First, login to your <a href=\"https:\/\/hostandtech.com\/help\/category\/cpanel\/\" target=\"_blank\" rel=\"noopener\">cPanel<\/a> control panel<\/li><li>Go to Home \u00bb Software \u00bb MultiPHP INI Editor<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c58b9f6 elementor-widget elementor-widget-image\" data-id=\"c58b9f6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"768\" height=\"370\" src=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/multiphp-editor-for-PHP-768x370.png\" class=\"attachment-medium_large size-medium_large wp-image-8700\" alt=\"multiphp editor for PHP\" srcset=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/multiphp-editor-for-PHP-768x370.png 768w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/multiphp-editor-for-PHP-300x144.png 300w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/multiphp-editor-for-PHP-1024x493.png 1024w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/multiphp-editor-for-PHP.png 1436w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-53a4750 elementor-widget elementor-widget-text-editor\" data-id=\"53a4750\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Select Editor Mode then select the php version you are planning to use.<\/li><li><div class=\"row\"><div class=\"col-xs-12\"><span id=\"infoBlk\" class=\"info-block\">Select the home directory or a domain\u2019s document root to open the corresponding PHP configuration<\/span>, then start edit the values and save the file.<\/div><\/div><\/li><\/ul><p>For example, to set Maximum allowed size for upload files to 256 MB, add these two values in php ini editor:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8679826 elementor-widget elementor-widget-code-highlight\" data-id=\"8679826\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-php \">\n\t\t\t\t<code readonly=\"true\" class=\"language-php\">\n\t\t\t\t\t<xmp>uploadmax_filesize = 256M\npostmax_size = 256M\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a8bd430 elementor-widget elementor-widget-image\" data-id=\"a8bd430\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"768\" height=\"278\" src=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/change-upload-file-size--768x278.png\" class=\"attachment-medium_large size-medium_large wp-image-8704\" alt=\"change upload file size\" srcset=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/change-upload-file-size--768x278.png 768w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/change-upload-file-size--300x109.png 300w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/change-upload-file-size--1024x371.png 1024w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/change-upload-file-size-.png 1436w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-eea3b5a elementor-widget elementor-widget-text-editor\" data-id=\"eea3b5a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Watch the tutorial below,<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6720411 elementor-widget elementor-widget-video\" data-id=\"6720411\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/mTnwBBpsBpk&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7398e68 elementor-widget elementor-widget-elementor-faq-schema\" data-id=\"7398e68\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"elementor-faq-schema.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                                    <script type=\"application\/ld+json\">\n                    {\n                        \"@context\": \"https:\/\/schema.org\",\n                        \"@type\": \"FAQPage\",\n                        \"mainEntity\": [\n                         {\n                            \"@type\": \"Question\",\n                            \"name\": \"How To Change The Maximum Upload File Size For PHP Via SSH?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;p&gt;Edit your php.ini file (usually stored in \/etc\/php.ini or \/etc\/php.d\/cgi\/php.ini or \/usr\/local\/etc\/php.ini): vi \/etc\/php.ini&lt;\/p&gt;&lt;p&gt;&lt;span style=&quot;color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );&quot;&gt;Then start to change the values for both uploadmax_filesize and postmax_size.&lt;\/span&gt;&lt;\/p&gt;\"\n                            }\n                                                    },\n                                             {\n                            \"@type\": \"Question\",\n                            \"name\": \"How To Change The Maximum Upload File Size For PHP Via cPanel\/WHM?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;ul&gt;&lt;li&gt;First, login to your &lt;a href=&quot;https:\/\/hostandtech.com\/help\/category\/cpanel\/&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;cPanel&lt;\/a&gt; control panel&lt;\/li&gt;&lt;li&gt;Go to Home \u00bb Software \u00bb MultiPHP INI Editor&lt;\/li&gt;&lt;li&gt;Select Editor Mode then select the php version you are planning to use.&lt;\/li&gt;&lt;li&gt;&lt;div class=&quot;row&quot;&gt;&lt;div class=&quot;col-xs-12&quot;&gt;&lt;span id=&quot;infoBlk&quot; class=&quot;info-block&quot;&gt;Select the home directory or a domain\u2019s document root to open the corresponding PHP configuration&lt;\/span&gt;, then start edit the values and save the file.&lt;\/div&gt;&lt;\/div&gt;&lt;\/li&gt;&lt;\/ul&gt;\"\n                            }\n                                                    }\n                    ]\n                    }\n                <\/script>\n                    \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>There are many reasons that you might need to increase or decrease your maximum upload file size for PHP. In this article we will describe how to change PHP maximum upload file size by two ways: Editing the php.ini file directly. &nbsp;From cPanel WHM control panel. Change the maximum upload file size for PHP via [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,254],"tags":[300,270],"class_list":["post-268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-php","tag-cpanel-php","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Change PHP maximum upload file size by cPanel or editing the file directly<\/title>\n<meta name=\"description\" content=\"Change PHP maximum upload file size by cPanel WHM using MultiPHP INI editor or by SSH and edit both of uploadmax_filesize and postmax_size\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change PHP maximum upload file size by cPanel or editing the file directly\" \/>\n<meta property=\"og:description\" content=\"Change PHP maximum upload file size by cPanel WHM using MultiPHP INI editor or by SSH and edit both of uploadmax_filesize and postmax_size\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/\" \/>\n<meta property=\"og:site_name\" content=\"STS Host and Tech Knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-05T13:31:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-03T11:12:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Host&amp;Tech Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Change PHP maximum upload file size by cPanel or editing the file directly\" \/>\n<meta name=\"twitter:description\" content=\"Change PHP maximum upload file size by cPanel WHM using MultiPHP INI editor or by SSH and edit both of uploadmax_filesize and postmax_size\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Host&amp;Tech Support\" \/>\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:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/\"},\"author\":{\"name\":\"Host&amp;Tech Support\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/e047ccece500c5187cf74bddd8596e83\"},\"headline\":\"How to change the upload file size for PHP\",\"datePublished\":\"2020-12-05T13:31:44+00:00\",\"dateModified\":\"2022-03-03T11:12:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/\"},\"wordCount\":188,\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg\",\"keywords\":[\"cPanel PHP\",\"PHP\"],\"articleSection\":[\"cPanel\",\"PHP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/\",\"url\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/\",\"name\":\"Change PHP maximum upload file size by cPanel or editing the file directly\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg\",\"datePublished\":\"2020-12-05T13:31:44+00:00\",\"dateModified\":\"2022-03-03T11:12:38+00:00\",\"description\":\"Change PHP maximum upload file size by cPanel WHM using MultiPHP INI editor or by SSH and edit both of uploadmax_filesize and postmax_size\",\"breadcrumb\":{\"@id\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#primaryimage\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg\",\"width\":1280,\"height\":1024,\"caption\":\"upload file PHP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hostandtech.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to change the upload file size for PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hostandtech.com\/help\/#website\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"name\":\"STS Host and Tech Knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hostandtech.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\",\"name\":\"STS Host and Tech Inc\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"width\":630,\"height\":270,\"caption\":\"STS Host and Tech Inc\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/stshostandtech\",\"https:\/\/x.com\/stshostandtech\",\"https:\/\/www.instagram.com\/stshostandtech\",\"https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/e047ccece500c5187cf74bddd8596e83\",\"name\":\"Host&amp;Tech Support\",\"sameAs\":[\"https:\/\/hostandtech.com\/help\"],\"url\":\"https:\/\/hostandtech.com\/help\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Change PHP maximum upload file size by cPanel or editing the file directly","description":"Change PHP maximum upload file size by cPanel WHM using MultiPHP INI editor or by SSH and edit both of uploadmax_filesize and postmax_size","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:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/","og_locale":"en_US","og_type":"article","og_title":"Change PHP maximum upload file size by cPanel or editing the file directly","og_description":"Change PHP maximum upload file size by cPanel WHM using MultiPHP INI editor or by SSH and edit both of uploadmax_filesize and postmax_size","og_url":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/","og_site_name":"STS Host and Tech Knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2020-12-05T13:31:44+00:00","article_modified_time":"2022-03-03T11:12:38+00:00","og_image":[{"width":1280,"height":1024,"url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg","type":"image\/jpeg"}],"author":"Host&amp;Tech Support","twitter_card":"summary_large_image","twitter_title":"Change PHP maximum upload file size by cPanel or editing the file directly","twitter_description":"Change PHP maximum upload file size by cPanel WHM using MultiPHP INI editor or by SSH and edit both of uploadmax_filesize and postmax_size","twitter_image":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"Host&amp;Tech Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/"},"author":{"name":"Host&amp;Tech Support","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/e047ccece500c5187cf74bddd8596e83"},"headline":"How to change the upload file size for PHP","datePublished":"2020-12-05T13:31:44+00:00","dateModified":"2022-03-03T11:12:38+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/"},"wordCount":188,"publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"image":{"@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg","keywords":["cPanel PHP","PHP"],"articleSection":["cPanel","PHP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/","url":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/","name":"Change PHP maximum upload file size by cPanel or editing the file directly","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#primaryimage"},"image":{"@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg","datePublished":"2020-12-05T13:31:44+00:00","dateModified":"2022-03-03T11:12:38+00:00","description":"Change PHP maximum upload file size by cPanel WHM using MultiPHP INI editor or by SSH and edit both of uploadmax_filesize and postmax_size","breadcrumb":{"@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#primaryimage","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2020\/12\/php-upload-file-size.jpg","width":1280,"height":1024,"caption":"upload file PHP"},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/help\/cpanel\/how-to-change-the-upload-file-size-for-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/help\/"},{"@type":"ListItem","position":2,"name":"How to change the upload file size for PHP"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/help\/#website","url":"https:\/\/hostandtech.com\/help\/","name":"STS Host and Tech Knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/help\/#organization","name":"STS Host and Tech Inc","url":"https:\/\/hostandtech.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","width":630,"height":270,"caption":"STS Host and Tech Inc"},"image":{"@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech","https:\/\/www.instagram.com\/stshostandtech","https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/e047ccece500c5187cf74bddd8596e83","name":"Host&amp;Tech Support","sameAs":["https:\/\/hostandtech.com\/help"],"url":"https:\/\/hostandtech.com\/help\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/comments?post=268"}],"version-history":[{"count":227,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/268\/revisions"}],"predecessor-version":[{"id":21438,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/268\/revisions\/21438"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media\/1183"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media?parent=268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/categories?post=268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/tags?post=268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}