{"id":3597,"date":"2018-02-20T11:48:20","date_gmt":"2018-02-20T16:48:20","guid":{"rendered":"https:\/\/www.pair.com\/support\/kb\/?p=3597"},"modified":"2025-06-17T11:26:13","modified_gmt":"2025-06-17T15:26:13","slug":"user-ini-file-creation","status":"publish","type":"ht_kb","link":"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/","title":{"rendered":"Creating a .user.ini File"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">A <\/span><span style=\"font-weight: 400; font-family: monospace;\">.user.ini<\/span><span style=\"font-weight: 400;\"> file can be used to control PHP settings in a specific directory. For a more in-depth explanation, visit our <\/span><a href=\"https:\/\/www.pair.com\/support\/kb\/php-ini-vs-user-ini\/\"><span style=\"font-weight: 400;\">php.ini vs .user.ini<\/span><\/a><span style=\"font-weight: 400;\"> article. &nbsp;You can create a <\/span><span style=\"font-weight: 400; font-family: monospace;\">.user.ini<\/span><span style=\"font-weight: 400;\"> file in your directory of choice by following the tutorial below. <\/span><\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">If you want to make changes to the PHP settings for the entire account, <strong>VPS<\/strong> <strong>and&nbsp;Dedicated&nbsp;accounts<\/strong> should check out their php.ini file. Check out our <a href=\"https:\/\/www.pair.com\/support\/kb\/php-ini-vs-user-ini\/\">php.ini vs user.ini <\/a>article for more information on how to do this.<br><br>For <strong>Shared Hosting accounts<\/strong>, we recommend still using the user.ini file to make changes. You may also use a .user.ini file if you are trying to implement zlib compression on a WordPress site.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating a .user.ini File with ACC File Interface<\/h3>\n\n\n\n<p>If your hosting account offers the built-in file editor interface, you can use it to create and edit a .user.ini file.&nbsp;<\/p>\n\n\n\n<p>Choose the tutorial that reflects your ACC interface type:&nbsp;<\/p>\n\n\n\n<ul>\n<li><a href=\"#if-you-are-using-the-legacy-interface\">Legacy Interface<\/a><\/li>\n\n\n\n<li><a href=\"#if-you-are-using-the-new-acc-interface\">New ACC Interface<\/a><\/li>\n<\/ul>\n\n\n\n<p>Not sure what the difference is? See<a href=\"http:\/\/pair.com\/support\/kb\/which-acc-interface-am-i-using\/\"> Which ACC Interface Am I Using?&nbsp;<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">If you are using the Legacy Interface:<\/h4>\n\n\n\n<ol>\n<li>Log in to the Account Control Center (ACC) at <a href=\"https:\/\/pairnet.zendesk.com\/hc\/en-us\/articles\/my.pair.com\">my.pair.com<\/a><\/li>\n\n\n\n<li>Click Files in the left sidebar and then click <strong>Web<\/strong> in the drop-down<\/li>\n\n\n\n<li>From here, navigate to the directory where you\u2019d like to create a .user.ini file<\/li>\n\n\n\n<li>Once within your chosen directory, click <strong>+New File<\/strong> in the navigation bar<\/li>\n\n\n\n<li>In the Editing file text field, enter \u201c.user.ini\u201d<\/li>\n\n\n\n<li>In the large text field below, add the desired PHP directives<\/li>\n\n\n\n<li>When finished, click <strong>Create File<\/strong><\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">If you are using the New ACC Interface:<\/h4>\n\n\n\n<ol>\n<li>Log in to the Account Control Center (ACC) at <a href=\"https:\/\/pairnet.zendesk.com\/hc\/en-us\/articles\/my.pair.com\">my.pair.com<\/a><\/li>\n\n\n\n<li>In the top navigation bar, click <strong>Files<\/strong><\/li>\n\n\n\n<li>Navigate to the directory where you\u2019d like to create a .user.ini file<\/li>\n\n\n\n<li>Once within your chosen directory, click the <strong>+New File<\/strong> button<\/li>\n\n\n\n<li>In the <strong>Editing file<\/strong> text field, enter \u201c.user.ini\u201d<\/li>\n\n\n\n<li>In the large text field below, add the desired PHP directives<\/li>\n\n\n\n<li>When finished, click the <strong>Create File<\/strong> button<\/li>\n<\/ol>\n\n\n\n<p>If the file is created successfully, it will now appear within your chosen directory.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating a .user.ini with SSH<\/h3>\n\n\n\n<p>If your hosting account doesn\u2019t offer a file management interface, you may be able to use SSH to create and manage a .user.ini file. See your hosting package details for more information about your hosting account\u2019s features.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><em>Navigation and file creation with SSH will differ depending on whether you are using a terminal or graphical SSH interface. See your chosen method\u2019s documentation for specific instructions.&nbsp;<\/em><\/p>\n\n\n\n<ol>\n<li><a href=\"https:\/\/www.pair.com\/support\/kb\/connecting-with-ssh\/\" target=\"_blank\" rel=\"noreferrer noopener\">Connect to your hosting account via SSH&nbsp;<\/a><\/li>\n\n\n\n<li>Navigate to the directory where you\u2019d like to create a .user.ini file<\/li>\n\n\n\n<li>Once in your chosen directory, create a new file named \u201c.user.ini\u201d<br><br>Be sure to include the period at the beginning of the filename.&nbsp;<\/li>\n\n\n\n<li>Once created, edit the file and add your desired PHP directive<\/li>\n\n\n\n<li>When finished, be sure to save the file<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>A .user.ini file can be used to control PHP settings in a specific directory. For a more in-depth explanation, visit our php.ini vs .user.ini article. &nbsp;You can create a .user.ini file in your directory of choice by following the tutorial below. Creating a .user.ini File with ACC File Interface If&#8230;<\/p>\n","protected":false},"author":11,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[175],"ht-kb-tag":[178,215,176,177,180,199],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Creating a .user.ini File | pair Networks Knowledgebase<\/title>\n<meta name=\"description\" content=\"A .user.ini file can be used to control PHP settings in a specific directory. Learn how to create this file in your hosting account.\" \/>\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\/user-ini-file-creation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a .user.ini File | pair Networks Knowledgebase\" \/>\n<meta property=\"og:description\" content=\"A .user.ini file can be used to control PHP settings in a specific directory. Learn how to create this file in your hosting account.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/\" \/>\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=\"2025-06-17T15:26:13+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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/\",\"url\":\"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/\",\"name\":\"Creating a .user.ini File | pair Networks Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/#website\"},\"datePublished\":\"2018-02-20T16:48:20+00:00\",\"dateModified\":\"2025-06-17T15:26:13+00:00\",\"description\":\"A .user.ini file can be used to control PHP settings in a specific directory. Learn how to create this file in your hosting account.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pair.com\/support\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a .user.ini File\"}]},{\"@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":"Creating a .user.ini File | pair Networks Knowledgebase","description":"A .user.ini file can be used to control PHP settings in a specific directory. Learn how to create this file in your hosting account.","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\/user-ini-file-creation\/","og_locale":"en_US","og_type":"article","og_title":"Creating a .user.ini File | pair Networks Knowledgebase","og_description":"A .user.ini file can be used to control PHP settings in a specific directory. Learn how to create this file in your hosting account.","og_url":"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/","og_site_name":"Knowledge Base - Pair Networks","article_publisher":"https:\/\/www.facebook.com\/pairnetworks\/","article_modified_time":"2025-06-17T15:26:13+00:00","twitter_card":"summary_large_image","twitter_site":"@pairNetworks","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/","url":"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/","name":"Creating a .user.ini File | pair Networks Knowledgebase","isPartOf":{"@id":"https:\/\/www.pair.com\/support\/kb\/#website"},"datePublished":"2018-02-20T16:48:20+00:00","dateModified":"2025-06-17T15:26:13+00:00","description":"A .user.ini file can be used to control PHP settings in a specific directory. Learn how to create this file in your hosting account.","breadcrumb":{"@id":"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pair.com\/support\/kb\/user-ini-file-creation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pair.com\/support\/kb\/"},{"@type":"ListItem","position":2,"name":"Creating a .user.ini File"}]},{"@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\/3597"}],"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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/comments?post=3597"}],"version-history":[{"count":9,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/3597\/revisions"}],"predecessor-version":[{"id":10190,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb\/3597\/revisions\/10190"}],"wp:attachment":[{"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/media?parent=3597"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=3597"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.pair.com\/support\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=3597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}