{"id":10934,"date":"2025-01-17T08:42:20","date_gmt":"2025-01-17T08:42:20","guid":{"rendered":"https:\/\/www.trustedhosting.in\/blog\/?p=10934"},"modified":"2025-01-17T08:42:20","modified_gmt":"2025-01-17T08:42:20","slug":"how-to-secure-the-configuration-file-in-whmcs","status":"publish","type":"post","link":"https:\/\/www.webystrata.com\/blog\/how-to-secure-the-configuration-file-in-whmcs\/","title":{"rendered":"How to Secure the Configuration File in WHMCS"},"content":{"rendered":"<h1><a href=\"https:\/\/www.trustedhosting.in\/cpanel-hosting.html\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10932 size-full\" title=\"How to Secure the Configuration File in WHMCS\" src=\"https:\/\/www.trustedhosting.in\/blog\/wp-content\/uploads\/2025\/01\/21743424_6500528-1.jpg\" alt=\"How to Secure the Configuration File in WHMCS\" width=\"2000\" height=\"2000\" srcset=\"https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21743424_6500528-1.jpg 2000w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21743424_6500528-1-300x300.jpg 300w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21743424_6500528-1-1024x1024.jpg 1024w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21743424_6500528-1-150x150.jpg 150w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21743424_6500528-1-768x768.jpg 768w, https:\/\/www.webystrata.com\/blog\/wp-content\/uploads\/2025\/01\/21743424_6500528-1-1536x1536.jpg 1536w\" sizes=\"auto, (max-width: 2000px) 100vw, 2000px\" \/><\/a><\/h1>\n<h1>How to Secure the Configuration File in WHMCS<\/h1>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_51143daf-18ac-4d5e-8831-65f96594a495\" class=\"text-block-content\">\n<p>We recommend adjusting the permissions for the\u00a0<code>configuration.php<\/code>\u00a0file in your WHMCS root directory. This file contains sensitive data that you can&#8217;t recover without a backup copy of the file.<\/p>\n<p>Changing the file permissions helps to avoid accidentally overwriting, editing, or deleting the file.<\/p>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"9404f2f8-18e8-4e4f-8dfc-54fc6e5427b7\">\n<h2 id=\"changing-file-permissions\" tabindex=\"0\">Changing File Permissions<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_f0f0c3e1-0675-48b5-8bf5-b1acae4dbff7\" class=\"text-block-content\">\n<p><code>400<\/code>\u00a0permissions provide the system with read-only access and prevent anyone else from reading, editing, or executing the file.<\/p>\n<p>To change the file permissions, run the following command while in your WHMCS root directory:<\/p>\n<\/div>\n<\/div>\n<div class=\"code-block copy-clipboard--parent\">\n<pre id=\"code-content_f41b3e5a-4144-441a-ae1b-3d5973a42776\" tabindex=\"0\"><code>chmod 400 configuration.php<\/code><\/pre>\n<div class=\"copy-clipboard copy-clipboard--tt-right\"><\/div>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"a4dc9001-fdc6-492e-9dc4-f94eb9b743a4\">\n<h2 id=\"errors-loading-whmcs\" tabindex=\"0\">Errors Loading WHMCS<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_fbb515fa-8f7f-4f6f-8462-7604a1072e36\" class=\"text-block-content\">\n<p>While\u00a0<code>400<\/code>\u00a0permissions suffice for most systems, some server configurations may require you to set the permission to\u00a0<code>440<\/code>\u00a0or\u00a0<code>444<\/code>.<\/p>\n<p>If you encounter an error loading the application after setting the permission to\u00a0<code>400<\/code>, try\u00a0<code>440<\/code>\u00a0and then\u00a0<code>444<\/code>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"step step-depth-1\" data-step-uuid=\"3ed07550-a175-4ea5-b1a9-dcc3c3f63c08\">\n<h2 id=\"license-key-updates\" tabindex=\"0\">License Key Updates<\/h2>\n<div class=\"instructions screensteps-textblock\" tabindex=\"0\">\n<div id=\"text-content_edf4300e-c14e-4a17-af20-850ce3b26109\" class=\"text-block-content\">\n<p>If you need to update your license key, you must set the permissions on this file to\u00a0<code>755<\/code>\u00a0to allow the system to edit the file. After the updating the key, you can revert the permissions to\u00a0<code>400<\/code>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to Secure the Configuration File in WHMCS We recommend adjusting the permissions for the\u00a0configuration.php\u00a0file in your WHMCS root directory.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":10932,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10934","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whmcs"],"_links":{"self":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/comments?post=10934"}],"version-history":[{"count":1,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10934\/revisions"}],"predecessor-version":[{"id":10935,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/posts\/10934\/revisions\/10935"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media\/10932"}],"wp:attachment":[{"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/media?parent=10934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/categories?post=10934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webystrata.com\/blog\/wp-json\/wp\/v2\/tags?post=10934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}