{"id":10950,"date":"2025-01-17T10:24:15","date_gmt":"2025-01-17T10:24:15","guid":{"rendered":"https:\/\/www.webystrata.co.uk\/blog\/?p=10950"},"modified":"2025-01-17T10:24:15","modified_gmt":"2025-01-17T10:24:15","slug":"how-to-rename-the-whmcs-admin-directory","status":"publish","type":"post","link":"https:\/\/www.webystrata.co.uk\/blog\/how-to-rename-the-whmcs-admin-directory\/","title":{"rendered":"How to Rename the WHMCS Admin Directory"},"content":{"rendered":"<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_d00434c8-df67-47b0-8206-d7cc9d39a1b9\" class=\"text-block-content\">\n<h1><a href=\"https:\/\/www.webystrata.co.uk\/cpanel-hosting.html\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-10946 size-full\" title=\"How to Rename the WHMCS Admin Directory\" src=\"https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2025\/01\/22111212_6536579-1-scaled.jpg\" alt=\"How to Rename the WHMCS Admin Directory\" width=\"2560\" height=\"1707\" srcset=\"https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2025\/01\/22111212_6536579-1-scaled.jpg 2560w, https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2025\/01\/22111212_6536579-1-300x200.jpg 300w, https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2025\/01\/22111212_6536579-1-1024x683.jpg 1024w, https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2025\/01\/22111212_6536579-1-768x512.jpg 768w, https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2025\/01\/22111212_6536579-1-1536x1024.jpg 1536w, https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2025\/01\/22111212_6536579-1-2048x1365.jpg 2048w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/a><\/h1>\n<h1>How to Rename the WHMCS Admin Directory<\/h1>\n<p>Customizing the name of your WHMCS admin directory makes it harder for bots and other malicious users to find the login URL for your WHMCS Admin Area.<\/p>\n<p>To do this, you must create the custom directory\u00a0<strong>and<\/strong>\u00a0update WHMCS&#8217;s configuration to use it successfully.<\/p>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--info screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"info\">\n<div id=\"text-content_6bde2f5d-1ae9-4e1d-98fe-22691e6aa2c0\" class=\"text-block-content\">\n<p>We recommend performing this task and other security measures immediately after installing WHMCS. For a full list, see\u00a0<a href=\"https:\/\/help.whmcs.com\/a\/1075203\" target=\"_blank\" rel=\"noopener\" data-internal-link-id=\"1075203\" data-internal-link=\"article\">More Ways to Secure Your WHMCS Installation<\/a>.<\/p>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"aa204f8b-a59a-40a5-a0d1-1a5385e0b5c3\">\n<h2 id=\"renaming-your-admin-directory\" tabindex=\"0\">Renaming Your Admin Directory<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_7967487c-2495-49c5-a024-0bbac2bc7632\" class=\"text-block-content\">\n<p>To customize your admin directory and update it in WHMCS:<\/p>\n<p>1. Open the\u00a0<code>configuration.php<\/code><strong>\u00a0<\/strong>file in your WHMCS installation&#8217;s root directory.<\/p>\n<p>2. Update the following line, where\u00a0<code>example<\/code>\u00a0is the custom name that you want to use:<\/p>\n<\/div>\n<\/div>\n<div class=\"code-block copy-clipboard--parent\">\n<pre id=\"code-content_6116c3c9-3537-4d01-9f91-456708a5f1ea\" tabindex=\"0\"><code>$customadminpath = \"example\";<\/code><\/pre>\n<div class=\"copy-clipboard copy-clipboard--tt-right\"><\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock screensteps-wrapper--tip screensteps-wrapper\" tabindex=\"0\" role=\"status\" aria-label=\"tip\">\n<div id=\"text-content_0babe5dc-3786-46ce-9e8b-f150a84ab50e\" class=\"text-block-content\">\n<ul>\n<li>The admin directory name can only contain alphanumeric characters (a-z and 0-9), hyphens (-), and underscores (_) and it must exist within the WHMCS installation&#8217;s root directory.<\/li>\n<li>Only specify the directory name,\u00a0<strong>not<\/strong>\u00a0the full directory path.<\/li>\n<li>If this line does not already exist in the file, add it to the bottom line, or above the final\u00a0<code>?&gt;<\/code>\u00a0if one exists.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_1e0a87fb-0940-4b25-93ec-58479ced3285\" class=\"text-block-content\">\n<p>3. Rename the\u00a0<code>admin<\/code>\u00a0directory to use the name that you specified for the\u00a0<code>$customadminpath<\/code>\u00a0value.<\/p>\n<p>If you see errors after completing this process, see\u00a0<a href=\"https:\/\/help.whmcs.com\/a\/1650308\" target=\"_blank\" rel=\"noopener\" data-internal-link-id=\"1650308\" data-internal-link=\"article\">Troubleshooting Admin Directory Errors<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"9b453f13-8655-4ee6-88ba-0baee891a12b\">\n<h2 id=\"custom-admin-directories-and-upgrades\" tabindex=\"0\">Custom Admin Directories and Upgrades<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_fb93fd23-f5fa-4ba6-9b47-b0b05142ec0a\" class=\"text-block-content\">\n<p>Applying updates or patches after customizing your admin directory requires an additional step. You\u00a0<strong>must<\/strong>\u00a0upload any updated files from the default\u00a0<code>admin<\/code>\u00a0directory in the distribution&#8217;s\u00a0<code>.zip<\/code>\u00a0files to your custom admin directory.<\/p>\n<p>If you do not move the files, you will see an error when you attempt to access the Admin Area. For more information, see\u00a0<a href=\"https:\/\/help.whmcs.com\/a\/1650308\" target=\"_blank\" rel=\"noopener\" data-internal-link-id=\"1650308\" data-internal-link=\"article\">Troubleshooting Admin Directory Errors<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to Rename the WHMCS Admin Directory Customizing the name of your WHMCS admin directory makes it harder for bots and other malicious users to find the login URL for your WHMCS Admin Area. To do this, you must create the custom directory\u00a0and\u00a0update WHMCS&#8217;s configuration to use it successfully. We recommend performing this task and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10946,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10950","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whmcs"],"_links":{"self":[{"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/posts\/10950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=10950"}],"version-history":[{"count":1,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/posts\/10950\/revisions"}],"predecessor-version":[{"id":10951,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/posts\/10950\/revisions\/10951"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/media\/10946"}],"wp:attachment":[{"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=10950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=10950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=10950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}