{"id":4415,"date":"2018-04-25T08:58:10","date_gmt":"2018-04-25T12:58:10","guid":{"rendered":"http:\/\/wp-p3d2tsa2xh.pairsite.com\/?post_type=ht_kb&#038;p=4415"},"modified":"2020-06-04T16:14:51","modified_gmt":"2020-06-04T20:14:51","slug":"how-to-increase-php-max-upload-size","status":"publish","type":"ht_kb","link":"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/","title":{"rendered":"How to Increase PHP Max Upload Size"},"content":{"rendered":"<p class=\"p1\"><span class=\"s1\"><a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/shared-hosting\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">Shared<\/p><\/a> <a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/vps\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px;font-weight:bold; border-radius:3px;\">VPS<\/p><\/a> <a style=\"color:#fff; text-decoration:none!important;\" href=\"https:\/\/www.pair.com\/support\/kb\/tags\/qs-dedicated\/\"><p style=\"background-color:#1a3d6e !important;color:#fff;padding:6px; display:inline-block!important;font-size:12px; font-weight:bold; border-radius:3px;\">Dedicated<\/p><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can increase the allowed max upload size by using a PHP directive. By using this directive, you can change the max upload size on one or more directories. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">To edit the PHP max upload size, you need to first have a custom .<\/span><span style=\"font-weight: 400; font-family: monospace;\">user.ini <\/span><span style=\"font-weight: 400;\">file. For more information about these files, <a href=\"https:\/\/www.pair.com\/support\/kb\/php-ini-vs-user-ini\/#what-is-user-ini\">see this article about .<span style=\"font-family: monospace;\">user.ini<\/span><\/a>.<\/span><\/p>\n<h3>How to Increase PHP Max Upload Size<\/h3>\n<p><span style=\"font-weight: 400;\">Once you have chosen whether you are using a .<\/span><span style=\"font-weight: 400; font-family: monospace;\">user.ini<\/span><span style=\"font-weight: 400;\"> file, you can continue to the steps below:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Log in to <\/span><a href=\"http:\/\/my.pair.com\"><span style=\"font-weight: 400;\">Account Control Center (ACC)<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Navigate to your<\/span><a href=\"https:\/\/www.pair.com\/support\/kb\/php-ini-vs-user-ini\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\"> .<\/span><span style=\"font-weight: 400; font-family: monospace;\">user.ini<\/span><span style=\"font-weight: 400;\"> file<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Enter the max upload size directive into the file like this: <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">upload_max_filesize = <\/span><span style=\"font-weight: 400; color: #ff0000;\">integer<\/span><\/pre>\n<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Replace <\/span><span style=\"font-weight: 400; color: #ff0000;\">integer<\/span> <span style=\"font-weight: 400;\">with the new max file size. The integer defaults to using bytes, unless another accepted type of measurement is indicated.<\/span><\/p>\n<h5><b>Accepted Measurements:<\/b><\/h5>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Kilobyte: K<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Megabyte: M<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Gigabyte: G<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">If you use a measurement that differs from default, your max file size directive will look something like these: <\/span><\/p>\n<pre><span style=\"font-weight: 400;\">upload_max_filesize = 100K<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">100 kilobytes is now the max upload size.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">upload_max_filesize = 50M<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">50 megabytes is now the max upload size.<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">upload_max_filesize = 25G<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">25 gigabytes is now the max upload size.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When finished, save the file. You may not see changes immediately. It may take up to five minutes to go into effect.\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can increase the allowed max upload size by using a PHP directive. By using this directive, you can change the max upload size on one or more directories. To edit the PHP max upload size, you need to first have a custom .user.ini file. For more information about these&#8230;<\/p>\n","protected":false},"author":12,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[175],"ht-kb-tag":[178,176,177],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Increase PHP Max Upload Size - Knowledge Base - Pair Networks<\/title>\n<meta name=\"description\" content=\"You can increase the allowed max upload size by using a PHP directive. By using this directive, you can change the max upload size on one or more directories.\" \/>\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.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Increase PHP Max Upload Size - Knowledge Base - Pair Networks\" \/>\n<meta property=\"og:description\" content=\"You can increase the allowed max upload size by using a PHP directive. By using this directive, you can change the max upload size on one or more directories.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - Pair Networks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pairnetworks\/\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-04T20:14:51+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@pairNetworks\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/\",\"name\":\"How to Increase PHP Max Upload Size - Knowledge Base - Pair Networks\",\"isPartOf\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\"},\"datePublished\":\"2018-04-25T12:58:10+00:00\",\"dateModified\":\"2020-06-04T20:14:51+00:00\",\"description\":\"You can increase the allowed max upload size by using a PHP directive. By using this directive, you can change the max upload size on one or more directories.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pair.com\/support\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Increase PHP Max Upload Size\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"name\":\"Knowledge Base - Pair Networks\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#organization\",\"name\":\"Pair Networks\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"contentUrl\":\"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg\",\"width\":360,\"height\":360,\"caption\":\"Pair Networks\"},\"image\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pairnetworks\/\",\"https:\/\/twitter.com\/pairNetworks\",\"https:\/\/www.instagram.com\/pairnetworks\/\",\"https:\/\/www.linkedin.com\/company\/2269676\/\",\"https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/\",\"https:\/\/www.youtube.com\/user\/pairnetworks\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Increase PHP Max Upload Size - Knowledge Base - Pair Networks","description":"You can increase the allowed max upload size by using a PHP directive. By using this directive, you can change the max upload size on one or more directories.","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.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/","og_locale":"en_US","og_type":"article","og_title":"How to Increase PHP Max Upload Size - Knowledge Base - Pair Networks","og_description":"You can increase the allowed max upload size by using a PHP directive. By using this directive, you can change the max upload size on one or more directories.","og_url":"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/","og_site_name":"Knowledge Base - Pair Networks","article_publisher":"https:\/\/www.facebook.com\/pairnetworks\/","article_modified_time":"2020-06-04T20:14:51+00:00","twitter_card":"summary_large_image","twitter_site":"@pairNetworks","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/","url":"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/","name":"How to Increase PHP Max Upload Size - Knowledge Base - Pair Networks","isPartOf":{"@id":"https:\/\/www.pair.com\/support\/kb\/#website"},"datePublished":"2018-04-25T12:58:10+00:00","dateModified":"2020-06-04T20:14:51+00:00","description":"You can increase the allowed max upload size by using a PHP directive. By using this directive, you can change the max upload size on one or more directories.","breadcrumb":{"@id":"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pair.com\/support\/kb\/how-to-increase-php-max-upload-size\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pair.com\/support\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Increase PHP Max Upload Size"}]},{"@type":"WebSite","@id":"https:\/\/www.pair.com\/support\/kb\/#website","url":"https:\/\/www.pair.com\/support\/kb\/","name":"Knowledge Base - Pair Networks","description":"","publisher":{"@id":"https:\/\/www.pair.com\/support\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pair.com\/support\/kb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.pair.com\/support\/kb\/#organization","name":"Pair Networks","url":"https:\/\/www.pair.com\/support\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","contentUrl":"https:\/\/www.pair.com\/support\/kb\/wp-content\/uploads\/2022\/02\/Gb_TUkUE_400x400.jpeg","width":360,"height":360,"caption":"Pair Networks"},"image":{"@id":"https:\/\/www.pair.com\/support\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pairnetworks\/","https:\/\/twitter.com\/pairNetworks","https:\/\/www.instagram.com\/pairnetworks\/","https:\/\/www.linkedin.com\/company\/2269676\/","https:\/\/www.pinterest.com\/pairnetworksinc\/pins\/","https:\/\/www.youtube.com\/user\/pairnetworks"]}]}},"_links":{"self":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/4415"}],"collection":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/comments?post=4415"}],"version-history":[{"count":12,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/4415\/revisions"}],"predecessor-version":[{"id":7705,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/4415\/revisions\/7705"}],"wp:attachment":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/media?parent=4415"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=4415"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=4415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}