{"id":20642,"date":"2025-07-04T09:42:47","date_gmt":"2025-07-04T09:42:47","guid":{"rendered":"https:\/\/www.webhosting.uk.com\/kb\/?p=20642"},"modified":"2026-06-03T11:43:48","modified_gmt":"2026-06-03T11:43:48","slug":"how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting","status":"publish","type":"post","link":"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/","title":{"rendered":"How to Change File Upload Size Limit Using php.ini in Shared Hosting"},"content":{"rendered":"<p>Suppose you are using a shared hosting environment and want to control the maximum size of file uploads for your PHP applications (like WordPress, Laravel, etc.). In that case, you can often do this by modifying the php.ini file provided by your host that allows custom PHP settings.<\/p>\n<p>This guide shows how to increase or limit the upload size using php.ini in shared hosting.<\/p>\n<p><strong>Follow the steps to change upload limits using php.ini in Shared Hosting:<\/strong><\/p>\n<ol>\n<li>Check if Your Hosting Supports Custom <strong>php.ini<\/strong>:<br \/>\nSome shared hosting providers allow a per-directory php.ini. Check your control panel (like cPanel) or ask support whether you can use custom php.ini files.<\/li>\n<li>Create or Edit the php.ini File:\n<ol>\n<li>In the root directory of your website (e.g., public_html), create or edit a file named:\n<pre>ini<\/pre>\n<\/li>\n<li>Add or update the following lines:\n<pre>upload_max_filesize = 10M\r\npost_max_size = 12M\r\nmax_execution_time = 30<\/pre>\n<p><strong>Here\u2019s what these settings do:<\/strong><\/p>\n<ol>\n<li><strong>upload_max_filesize<\/strong> defines the maximum size allowed for a single file upload.<\/li>\n<li><strong>post_max_size<\/strong> sets the maximum size of the entire POST request, which should be slightly higher than upload_max_filesize.<\/li>\n<li><strong>max_execution_time<\/strong> determines how long a PHP script is allowed to run before timing out (useful when uploading large files).<br \/>\nYou can increase the values (e.g., 20M, 50M) based on your requirements.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>(Optional) Modify .htaccess if php.ini doesn\u2019t work:<br \/>\nIf php.ini changes aren\u2019t applied, try adding these lines to your .htaccess file (in the same directory):<\/p>\n<pre>php_value upload_max_filesize 10M\r\nphp_value post_max_size 12M\r\nphp_value max_execution_time 30<\/pre>\n<p>Note: Not all shared hosts allow .htaccess PHP directives. If your site throws a 500 error after this, remove these lines.<\/li>\n<li>Check if the Changes Are Applied by Creating a PHP Info File:\n<pre>&lt;?php phpinfo(); ?&gt;<\/pre>\n<p>Upload the file to your hosting account, open it in your browser, and check the values for upload_max_filesize and post_max_size.<\/li>\n<\/ol>\n<p><strong>Important Notes:<\/strong><\/p>\n<ul>\n<li>post_max_size should be larger than upload_max_filesize.<\/li>\n<li>Restarting the web server isn\u2019t necessary in shared hosting, as changes are applied automatically (if supported).<\/li>\n<li>Always delete the phpinfo.php file after checking, to avoid exposing server info.<\/li>\n<\/ul>\n<p>Setting file upload limits via php.ini in shared hosting is simple and improves security and performance. If changes don\u2019t apply, try .htaccess or contact our support team for help.<\/p>\n<div style=\"background: #E6F0FF; padding: 15px; border-left: 4px solid #0047BA; margin: 20px 0;\"><strong>Need to upload larger files and manage PHP settings more efficiently?<\/strong><br \/>\nA <a href=\"https:\/\/www.webhosting.uk.com\/cpanel-hosting\">cPanel Web Hosting<\/a> solution gives you the flexibility to manage PHP configurations, website resources and application requirements with ease.<\/div>\n<p style=\"text-align: center;\"><em><strong>Need broader control over upload limits? Learn <a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-the-maximum-upload-file-size-for-your-website\/\">How to change the maximum upload file size for your website<\/a><\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Suppose you are using a shared hosting environment and want to control the maximum size of file uploads for your PHP applications (like WordPress, Laravel, etc.). In that case, you&hellip;<\/p>\n<p><a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/\" class=\"more-link\">Read More<\/a><\/p>\n<div class='heateorSssClear'><\/div><div  class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' data-heateor-sss-href='https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/'><div class='heateor_sss_sharing_title' style=\"font-weight:bold\" >Spread the love<\/div><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting%2F\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=Change%20File%20Upload%20Limit%20via%20php.ini%20in%20Shared%20Hosting&url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting%2F\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting%2F\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div><div class='heateorSssClear'><\/div>","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1395],"tags":[1856],"class_list":["post-20642","post","type-post","status-publish","format-standard","hentry","category-development","tag-upload-file-size"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.9 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Change File Upload Limit via php.ini in Shared Hosting<\/title>\n<meta name=\"description\" content=\"Increase file upload size in shared hosting by editing php.ini settings like upload_max_filesize and post_max_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:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change File Upload Limit via php.ini in Shared Hosting\" \/>\n<meta property=\"og:description\" content=\"Increase file upload size in shared hosting by editing php.ini settings like upload_max_filesize and post_max_size.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/\" \/>\n<meta property=\"og:site_name\" content=\"Webhosting UK Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhostingukcom\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-04T09:42:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T11:43:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/How-to-Change-File-Upload-Size-Limit-Using-php.ini-in-Shared-Hosting-1200.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Change File Upload Limit via php.ini in Shared Hosting\" \/>\n<meta name=\"twitter:description\" content=\"Increase file upload size in shared hosting by editing php.ini settings like upload_max_filesize and post_max_size.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/How-to-Change-File-Upload-Size-Limit-Using-php.ini-in-Shared-Hosting-1200.png\" \/>\n<meta name=\"twitter:creator\" content=\"@WebhostingUKcom\" \/>\n<meta name=\"twitter:site\" content=\"@WebhostingUKcom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\\\/\"},\"author\":{\"name\":\"Victor G\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\"},\"headline\":\"How to Change File Upload Size Limit Using php.ini in Shared Hosting\",\"datePublished\":\"2025-07-04T09:42:47+00:00\",\"dateModified\":\"2026-06-03T11:43:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\\\/\"},\"wordCount\":436,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"keywords\":[\"upload file size\"],\"articleSection\":[\"Web Development\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\\\/\",\"name\":\"Change File Upload Limit via php.ini in Shared Hosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\"},\"datePublished\":\"2025-07-04T09:42:47+00:00\",\"dateModified\":\"2026-06-03T11:43:48+00:00\",\"description\":\"Increase file upload size in shared hosting by editing php.ini settings like upload_max_filesize and post_max_size.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change File Upload Size Limit Using php.ini in Shared Hosting\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"name\":\"Webhosting UK Knowledge Base\",\"description\":\"Expert Insights on Hosting, Development, Security, Marketing, and SEO\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"alternateName\":\"WHUK\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\",\"name\":\"Webhosting UK\",\"alternateName\":\"WHUK\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"width\":1200,\"height\":628,\"caption\":\"Webhosting UK\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webhostingukcom\",\"https:\\\/\\\/x.com\\\/WebhostingUKcom\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/webhostinguk\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/webhosting-uk-com-ltd\\\/\",\"https:\\\/\\\/www.instagram.com\\\/webhosting_uk\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webhostinguk\"],\"description\":\"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.\",\"email\":\"sales@webhosting.uk.com\",\"telephone\":\"0800 862 0890\",\"legalName\":\"Webhosting UK\",\"foundingDate\":\"2001-02-07\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"51\",\"maxValue\":\"200\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\",\"name\":\"Victor G\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"caption\":\"Victor G\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Change File Upload Limit via php.ini in Shared Hosting","description":"Increase file upload size in shared hosting by editing php.ini settings like upload_max_filesize and post_max_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:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/","og_locale":"en_GB","og_type":"article","og_title":"Change File Upload Limit via php.ini in Shared Hosting","og_description":"Increase file upload size in shared hosting by editing php.ini settings like upload_max_filesize and post_max_size.","og_url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/","og_site_name":"Webhosting UK Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/webhostingukcom","article_published_time":"2025-07-04T09:42:47+00:00","article_modified_time":"2026-06-03T11:43:48+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/How-to-Change-File-Upload-Size-Limit-Using-php.ini-in-Shared-Hosting-1200.png","type":"image\/png"}],"author":"Victor G","twitter_card":"summary_large_image","twitter_title":"Change File Upload Limit via php.ini in Shared Hosting","twitter_description":"Increase file upload size in shared hosting by editing php.ini settings like upload_max_filesize and post_max_size.","twitter_image":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/How-to-Change-File-Upload-Size-Limit-Using-php.ini-in-Shared-Hosting-1200.png","twitter_creator":"@WebhostingUKcom","twitter_site":"@WebhostingUKcom","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/#article","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/"},"author":{"name":"Victor G","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297"},"headline":"How to Change File Upload Size Limit Using php.ini in Shared Hosting","datePublished":"2025-07-04T09:42:47+00:00","dateModified":"2026-06-03T11:43:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/"},"wordCount":436,"publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"keywords":["upload file size"],"articleSection":["Web Development"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/","url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/","name":"Change File Upload Limit via php.ini in Shared Hosting","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#website"},"datePublished":"2025-07-04T09:42:47+00:00","dateModified":"2026-06-03T11:43:48+00:00","description":"Increase file upload size in shared hosting by editing php.ini settings like upload_max_filesize and post_max_size.","breadcrumb":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-change-file-upload-size-limit-using-php-ini-in-shared-hosting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhosting.uk.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Change File Upload Size Limit Using php.ini in Shared Hosting"}]},{"@type":"WebSite","@id":"https:\/\/www.webhosting.uk.com\/kb\/#website","url":"https:\/\/www.webhosting.uk.com\/kb\/","name":"Webhosting UK Knowledge Base","description":"Expert Insights on Hosting, Development, Security, Marketing, and SEO","publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"alternateName":"WHUK","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhosting.uk.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization","name":"Webhosting UK","alternateName":"WHUK","url":"https:\/\/www.webhosting.uk.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","width":1200,"height":628,"caption":"Webhosting UK"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhostingukcom","https:\/\/x.com\/WebhostingUKcom","https:\/\/www.youtube.com\/c\/webhostinguk","https:\/\/www.linkedin.com\/company\/webhosting-uk-com-ltd\/","https:\/\/www.instagram.com\/webhosting_uk\/","https:\/\/www.tiktok.com\/@webhostinguk"],"description":"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.","email":"sales@webhosting.uk.com","telephone":"0800 862 0890","legalName":"Webhosting UK","foundingDate":"2001-02-07","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"51","maxValue":"200"}},{"@type":"Person","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297","name":"Victor G","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","caption":"Victor G"}}]}},"_links":{"self":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/20642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/comments?post=20642"}],"version-history":[{"count":6,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/20642\/revisions"}],"predecessor-version":[{"id":22734,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/20642\/revisions\/22734"}],"wp:attachment":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/media?parent=20642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/categories?post=20642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/tags?post=20642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}