{"id":6337,"date":"2021-07-29T14:27:47","date_gmt":"2021-07-29T14:27:47","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=6337"},"modified":"2022-03-17T11:22:20","modified_gmt":"2022-03-17T11:22:20","slug":"whmcs-security","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/whmcs-security\/","title":{"rendered":"WHMCS Security Checklist: 5 Ways to Secure Your Installation"},"content":{"rendered":"<p>While WHMCS may include many features to help automate your sales, it also includes many features to help keep your data safe. However, you should still take some additional steps to further secure your WHMCS installation.<\/p>\n<p>This Knowledge Base article will help you do just that.<\/p>\n<p>Let&#8217;s begin!<\/p>\n    \t\t<div class=\"hts-messages hts-messages--info   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tDid you know that you can get a <span style=\"text-decoration: underline;\"><strong>free<\/strong><\/span> <strong>WHMCS license<\/strong> with our <a href=\"https:\/\/chemicloud.com\/reseller-hosting#60b65e4e63b58\" target=\"_blank\" rel=\"noopener\">reseller hosting<\/a> plans? Give us a try! \ud83e\udd1d    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h2 id=\"whmcs-security-checklist-5-ways-to-secure-your-installation\">WHMCS Security Checklist: 5 Ways to Secure Your Installation<\/h2>\n<h3 id=\"secure-your-writable-directories\">Secure Your Writable Directories<\/h3>\n<p>WHMCS recommends moving all writeable directories to a non-public location to prevent web-based access. There are three required writeable directories in WHMCS:<\/p>\n<ul>\n<li>attachments<\/li>\n<li>downloads<\/li>\n<li>templates_c<\/li>\n<\/ul>\n<p>If you change the location of these writable directories, you must specify their new location in WHMCS. This is done in 2 places:<\/p>\n<ul>\n<li>File Storage<\/li>\n<li>and Templates Cache<\/li>\n<\/ul>\n<h4 id=\"file-storage\">File Storage:<\/h4>\n<p>You have the option to move the attachments and downloads storage directories to a local location, or you can store them remotely on an AWS S3-compatible service. (If you aren&#8217;t familiar with S3-type services, we recommend using the Local Storage option.)<\/p>\n<p>To change your storage locations, use the steps below.<\/p>\n<p><strong>Step 1:<\/strong> Create your tertiary storage location in the new service. This could either be one of the following:<\/p>\n<ul>\n<li>A writeable directory on your web server in a directory above your public_html folder.<\/li>\n<li>or a non-public AWS S3-compatible storage bucket.<\/li>\n<\/ul>\n<p><strong>Step 2:<\/strong> Login to your WHMCS installation and once logged in, click the wrench in the top right corner, then click System Settings.<\/p>\n<p><a class=\"ab-item\" href=\"https:\/\/chemicloud.com\/kb\/\">Visit Site<\/a><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6341\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-19.png\" alt=\"\" width=\"780\" height=\"356\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-19.png 780w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-19-300x137.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-19-768x351.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-19-50x23.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-19-60x27.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-19-100x46.png 100w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/a><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6150\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10.png\" alt=\"\" width=\"1905\" height=\"445\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10.png 1905w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10-300x70.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10-783x183.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10-768x179.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10-50x12.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10-1536x359.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10-60x14.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-10-100x23.png 100w\" sizes=\"auto, (max-width: 1905px) 100vw, 1905px\" \/><\/a><\/p>\n<p><strong>Step 3:<\/strong> Using the search function at the top, search for storage. Once the Storage Settings option loads, click it to open the Storage Settings.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6339\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-18.png\" alt=\"\" width=\"1345\" height=\"404\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-18.png 1345w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-18-300x90.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-18-783x235.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-18-768x231.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-18-50x15.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-18-60x18.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/1-18-100x30.png 100w\" sizes=\"auto, (max-width: 1345px) 100vw, 1345px\" \/><\/a><\/p>\n<p><strong>Step 4:<\/strong> Once the Storage Settings load, you&#8217;ll be presented with a list of all storage types and their locations:<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6340\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-20.png\" alt=\"\" width=\"1126\" height=\"735\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-20.png 1126w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-20-300x196.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-20-783x511.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-20-768x501.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-20-50x33.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-20-60x39.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-20-100x65.png 100w\" sizes=\"auto, (max-width: 1126px) 100vw, 1126px\" \/><\/a><\/p>\n<p>In order to set a offsite or S3-type storage, you&#8217;ll need to click the Configurations option at the top:<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6342\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-20.png\" alt=\"\" width=\"780\" height=\"356\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-20.png 780w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-20-300x137.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-20-768x351.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-20-50x23.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-20-60x27.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-20-100x46.png 100w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/a><\/p>\n<p>Once the configurations load, you&#8217;ll be presented with a list of the three local configurations plus the option to Add New Configuration.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6343\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18.png\" alt=\"\" width=\"1658\" height=\"409\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18.png 1658w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18-300x74.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18-783x193.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18-768x189.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18-50x12.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18-1536x379.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18-60x15.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-18-100x25.png 100w\" sizes=\"auto, (max-width: 1658px) 100vw, 1658px\" \/><\/a><\/p>\n<p>Click the drop-down next to Local Storage and choose S3, then click the + to add the configuration.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6344\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-19.png\" alt=\"\" width=\"836\" height=\"626\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-19.png 836w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-19-300x225.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-19-783x586.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-19-768x575.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-19-50x37.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-19-60x45.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/5-19-100x75.png 100w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/a>In the modal that appears, you&#8217;ll need to enter the Access Key &amp; Secret, plus the Bucket name and region, and an optional endpoint URL in order to successfully set this up.<\/p>\n<p>Once you&#8217;ve entered that information, click Save Changes.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6346\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-17.png\" alt=\"\" width=\"387\" height=\"218\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-17.png 387w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-17-300x169.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-17-50x28.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-17-60x34.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-17-100x56.png 100w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Next, return to the Settings by clicking Settings.<\/p>\n<p>Once the list of locations loads, click the drop-down menu next to the location you want to set to remote, then choose the newly created remote destination from the drop-down menu.<\/p>\n<h4 id=\"templates-cache\">Templates Cache:<\/h4>\n<p>You can use the templates cache (templates_c) to improve the performance of templated pages and emails. To do this, follow the steps below:<\/p>\n<p><strong>Step 1:<\/strong> Create a templates_c directory in the desired location&#8230;. i.e. above your public_html folder.<\/p>\n<p><strong>Step 2:<\/strong> This will involve editing the configuration.php file of your WHMCS installation. To do this, log in to your ChemiCloud account by <a href=\"https:\/\/www.chemicloud.com\/login\" target=\"_blank\" rel=\"noopener\">clicking here<\/a>, then open your cPanel &gt; File Manager.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6347\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-17.png\" alt=\"\" width=\"1346\" height=\"459\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-17.png 1346w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-17-300x102.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-17-783x267.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-17-768x262.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-17-50x17.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-17-60x20.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-17-100x34.png 100w\" sizes=\"auto, (max-width: 1346px) 100vw, 1346px\" \/><\/a>Step 3: In your File Manager, navigate to the Directory where your WHMCS installation is located and locate a file called configuration.php.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6348\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15.png\" alt=\"\" width=\"1937\" height=\"1410\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15.png 1937w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-300x218.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-783x570.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-768x559.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-50x36.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-1536x1118.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-60x44.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-100x73.png 100w\" sizes=\"auto, (max-width: 1937px) 100vw, 1937px\" \/><\/a><\/p>\n<p>Click on the file, then at the top click Edit in the row of tools. In the modal that appears, click Edit.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6349\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14.png\" alt=\"\" width=\"801\" height=\"555\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14.png 801w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-300x208.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-783x543.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-768x532.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-50x35.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-60x42.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-100x69.png 100w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/a><\/p>\n<p>A new tab will open with your WHMCS configuration listed:<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6351\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8.png\" alt=\"\" width=\"881\" height=\"495\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8.png 881w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-300x169.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-783x440.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-768x432.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-50x28.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-60x34.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-100x56.png 100w\" sizes=\"auto, (max-width: 881px) 100vw, 881px\" \/><\/a><\/p>\n<p>If you are changing the location of the templates_c, specify the new path to the templates_c directory you created on Line 10.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Important:<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tIf you are running suPHP or PHP suEXEC, chmod 755 should be sufficient permissions to make the directories writeable. This is the highest permission available for both folders and files when running in that condition.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><strong>Step 4:<\/strong> When you&#8217;ve finished editing, click Save Changes in the top right corner.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6352\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-9.png\" alt=\"\" width=\"547\" height=\"151\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-9.png 547w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-9-300x83.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-9-50x14.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-9-60x17.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-9-100x28.png 100w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/a><\/p>\n<h3 id=\"secure-the-configuration-php-file\">Secure the configuration.php File<\/h3>\n<p>WHMCS recommends adjusting the permissions for the &#8220;configuration.php&#8221; file in your WHMCS root directory. This file contains sensitive data that you can&#8217;t recover without a backup of the file. To avoid accidentally overwriting, editing, or deleting the file, change the permission setting of this file to 400.<\/p>\n<p>This provides the system with read-only access and prevents anyone else from reading, editing, or executing the file.<\/p>\n<p>To change the permissions on this file, you can use the Terminal app to do. Just follow the steps below:<\/p>\n<p><strong>Step 1:<\/strong> Login to your ChemiCloud account by <a href=\"https:\/\/www.chemicloud.com\/login\" target=\"_blank\" rel=\"noopener\">clicking here<\/a>, then open your cPanel and look for Terminal, which is located in the Advanced Section.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6356\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-21.png\" alt=\"\" width=\"1333\" height=\"377\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-21.png 1333w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-21-300x85.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-21-783x221.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-21-768x217.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-21-50x14.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-21-60x17.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/2-21-100x28.png 100w\" sizes=\"auto, (max-width: 1333px) 100vw, 1333px\" \/><\/a><\/p>\n<p><strong>Step 2:<\/strong> Once the Terminal Page opens, you&#8217;ll need to click the blue button which says &#8220;I understand and want to proceed.&#8221;. The Terminal is an advanced feature and you&#8217;ll need to follow the directions below precisely.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6357\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-21.png\" alt=\"\" width=\"1302\" height=\"247\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-21.png 1302w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-21-300x57.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-21-783x149.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-21-768x146.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-21-50x9.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-21-60x11.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/3-21-100x19.png 100w\" sizes=\"auto, (max-width: 1302px) 100vw, 1302px\" \/><\/a><\/p>\n<p><strong>Step 3:<\/strong> After clicking the blue button, the terminal will load.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6359\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20.png\" alt=\"\" width=\"1918\" height=\"992\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20.png 1918w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20-300x155.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20-783x405.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20-768x397.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20-50x26.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20-1536x794.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20-60x31.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/4-20-100x52.png 100w\" sizes=\"auto, (max-width: 1918px) 100vw, 1918px\" \/><\/a><\/p>\n<p><strong>Step 4:<\/strong> Using the cd command, which stands for change directory, change directory into the directory where your WHMCS location is installed. In my case, WHMCS is installed in a folder called billing which is located in the public_html folder, so I will use this command:<\/p>\n<pre>cd public_html\/billing<\/pre>\n<p>to change directories into the WHMCS installation directory.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Important:<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tIf you aren&#8217;t sure where that is, or need a visual reminder, you can use the LIST command, which is ls, to list the directories in the folder in which you are currently located.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-19.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6362\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-19.png\" alt=\"\" width=\"1366\" height=\"450\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-19.png 1366w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-19-300x99.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-19-783x258.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-19-768x253.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-19-50x16.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-19-60x20.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/6-19-100x33.png 100w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<p>In case it&#8217;s difficult to see, in the above image, I used the following commands:<\/p>\n<pre>ls\r\n\r\ncd public_html\r\n\r\nls\r\n\r\ncd billing<\/pre>\n<p>This allowed me to show, or &#8220;list&#8221; the directories in each folder as I moved through them one at a time, to be sure I was able to navigate into the right directory.<\/p>\n    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>Step 5: Next you need to run the following command in your Terminal:<\/p>\n<pre>chmod 400 configuration.php<\/pre>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Important:<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tSome systems may require you to set the permission to 440 or 444, depending on the server&#8217;s configuration. Usually, 400 should suffice, but if you encounter an error loading the application after setting the permission to 400, try 440 and then 444.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6363\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-18.png\" alt=\"\" width=\"1147\" height=\"195\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-18.png 1147w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-18-300x51.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-18-783x133.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-18-768x131.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-18-50x9.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-18-60x10.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/7-18-100x17.png 100w\" sizes=\"auto, (max-width: 1147px) 100vw, 1147px\" \/><\/a><\/p>\n    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Important Note about the CHMOD command:<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tThe CHMOD command doesn&#8217;t have any output on successful run, which means it will only give you output if there&#8217;s something wrong. I.e. you don&#8217;t have permission to change the file permissions, etc.\u00a0    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>After running the command, your Terminal should look like this:<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6364\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-16.png\" alt=\"\" width=\"1373\" height=\"442\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-16.png 1373w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-16-300x97.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-16-783x252.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-16-768x247.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-16-50x16.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-16-60x19.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-16-100x32.png 100w\" sizes=\"auto, (max-width: 1373px) 100vw, 1373px\" \/><\/a><\/p>\n    \t\t<div class=\"hts-messages hts-messages--success  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Fun Fact About Terminal Commands:<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tFor commands like CHMOD which don&#8217;t have output on successful run, being sent back to a blank command line is called being sent back to prompt.\u00a0    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>Congrats, you&#8217;ve successfully changed the permissions on the WHMCS configuration.php file. Keep in mind, if you need to update your WHMCS License Key, you must set the permissions on this file to 755 to allow the system to edit the file. After updating your license key, you can revert the permissions to 400.<\/p>\n<h3 id=\"restrict-access-by-ip-address\">Restrict Access By IP Address<\/h3>\n<p>For increased protection, if you and all of your staff use fixed (static) IP addresses, you can restrict access to WHMCS to a specific set of IP addresses. To do this, use the steps below:<\/p>\n<p><strong>Step 1:<\/strong> Log in to your cPanel. There&#8217;s a lot of ways to do this, but the sure-fire easiest way is to login to your <a href=\"https:\/\/www.chemicloud.com\/login\" target=\"_blank\" rel=\"noopener noreferrer\">Client Area<\/a>, then open your cPanel.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4061\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab.jpg\" alt=\"\" width=\"1674\" height=\"496\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab.jpg 1674w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-300x89.jpg 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-1024x303.jpg 1024w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-768x228.jpg 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-50x15.jpg 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-1536x455.jpg 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-60x18.jpg 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-100x30.jpg 100w\" sizes=\"auto, (max-width: 1674px) 100vw, 1674px\" \/><\/p>\n<p><strong>Step 2:<\/strong> Once your cPanel is open, open your File Manager.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6367\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9.png\" alt=\"\" width=\"1329\" height=\"454\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9.png 1329w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-300x102.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-783x267.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-768x262.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-50x17.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-60x20.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-100x34.png 100w\" sizes=\"auto, (max-width: 1329px) 100vw, 1329px\" \/><\/a><\/p>\n<p><strong>Step 3:<\/strong> In your File Manager, navigate to the directory where your WHMCS installation is located, and open the admin directory.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6368\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10.png\" alt=\"\" width=\"1918\" height=\"541\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10.png 1918w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10-300x85.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10-783x221.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10-768x217.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10-50x14.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10-1536x433.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10-60x17.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/12-10-100x28.png 100w\" sizes=\"auto, (max-width: 1918px) 100vw, 1918px\" \/><\/a><\/p>\n<p><strong>Step 4:<\/strong> You&#8217;ll need to create a new file in the admin directory in order to restrict access to WHMCS by IP address. To do this, click + File in the top left corner of File Manager.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/13-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6369\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/13-8.png\" alt=\"\" width=\"480\" height=\"499\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/13-8.png 809w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/13-8-289x300.png 289w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/13-8-754x783.png 754w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/13-8-768x797.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/13-8-48x50.png 48w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/13-8-58x60.png 58w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/13-8-96x100.png 96w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a>In the new file modal, the file name will be .htaccess<\/p>\n<p>Click Create New File after entering the filename.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/14-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6370\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/14-8.png\" alt=\"\" width=\"770\" height=\"391\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/14-8.png 770w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/14-8-300x152.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/14-8-768x390.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/14-8-50x25.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/14-8-60x30.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/14-8-100x51.png 100w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a>Once the .htaccess file is created, it will be listed amongst the other files in the \/admin directory:<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/15-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6371\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/15-5.png\" alt=\"\" width=\"1414\" height=\"631\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/15-5.png 1414w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/15-5-300x134.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/15-5-783x349.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/15-5-768x343.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/15-5-50x22.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/15-5-60x27.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/15-5-100x45.png 100w\" sizes=\"auto, (max-width: 1414px) 100vw, 1414px\" \/><\/a><\/p>\n<p>Single-click on the .htaccess file to select it, then click Edit in the top right corner of the row of tools at the top of File Manager.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/16-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6372\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/16-4.png\" alt=\"\" width=\"1411\" height=\"632\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/16-4.png 1411w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/16-4-300x134.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/16-4-783x351.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/16-4-768x344.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/16-4-50x22.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/16-4-60x27.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/16-4-100x45.png 100w\" sizes=\"auto, (max-width: 1411px) 100vw, 1411px\" \/><\/a><\/p>\n<p>The Edit modal will appear, just click Edit in the bottom right corner to proceed.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/17-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-6373\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/17-2.png\" alt=\"\" width=\"411\" height=\"293\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/17-2.png 760w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/17-2-300x214.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/17-2-50x36.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/17-2-60x43.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/17-2-100x71.png 100w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/a><strong>Step 5:<\/strong> A new tab in your browser will open with the HTML editor.<\/p>\n<p>Enter the following text:<\/p>\n<pre>order deny,allow\r\nallow from x.x.x.x\r\nallow from x.x.x.x\r\ndeny from all<\/pre>\n<p>For each IP address, you wish to allow, enter a new line beginning with allow from, following by the IP address.<\/p>\n<p>When you&#8217;ve finished, your file could look like this one below (depending on how many IPs you&#8217;ve allowed):<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/19-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6374\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/19-2.png\" alt=\"\" width=\"648\" height=\"247\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/19-2.png 648w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/19-2-300x114.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/19-2-50x19.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/19-2-60x23.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/19-2-100x38.png 100w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>When you&#8217;ve finished, click the Save Changes button in the top right corner.<\/p>\n<p>Now, when others try to access your WHMCS Admin area, unless their IP address is on the list, they won&#8217;t be able to load the login page or any other elements in the Admin directory.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Important Information:<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tYou can specify as many different allow from IP address entries as you need. You can allow entire IP subnets by specifying just the first part of an IP address (for example, 12.34.).    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h3 id=\"renaming-your-admin-directory\">Renaming Your Admin Directory<\/h3>\n<p>You can rename the Admin directory into something else to make it even harder for people to access your Admin area or break into your WHMCS installation.<\/p>\n<p>Follow the steps below to rename your WHMCS admin directory.<\/p>\n<p><strong>Step 1:<\/strong> Login to your cPanel. There&#8217;s a lot of ways to do this, but the sure fire easiest way is to login to your <a href=\"https:\/\/www.chemicloud.com\/login\" target=\"_blank\" rel=\"noopener noreferrer\">Client Area<\/a>, then open your cPanel.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4061\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab.jpg\" alt=\"\" width=\"1674\" height=\"496\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab.jpg 1674w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-300x89.jpg 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-1024x303.jpg 1024w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-768x228.jpg 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-50x15.jpg 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-1536x455.jpg 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-60x18.jpg 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-100x30.jpg 100w\" sizes=\"auto, (max-width: 1674px) 100vw, 1674px\" \/><\/p>\n<p><strong>Step 2:<\/strong> Once your cPanel is open, open your File Manager.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6367\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9.png\" alt=\"\" width=\"1329\" height=\"454\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9.png 1329w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-300x102.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-783x267.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-768x262.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-50x17.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-60x20.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-9-100x34.png 100w\" sizes=\"auto, (max-width: 1329px) 100vw, 1329px\" \/><\/a><\/p>\n<p><strong>Step 3:<\/strong> In your File Manager, navigate to the Directory where your WHMCS installation is located and locate a file called configuration.php.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6348\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15.png\" alt=\"\" width=\"1937\" height=\"1410\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15.png 1937w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-300x218.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-783x570.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-768x559.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-50x36.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-1536x1118.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-60x44.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/8-15-100x73.png 100w\" sizes=\"auto, (max-width: 1937px) 100vw, 1937px\" \/><\/a><\/p>\n<p>Click on the file, then at the top click Edit in the row of tools. In the modal that appears, click Edit.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6349\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14.png\" alt=\"\" width=\"801\" height=\"555\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14.png 801w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-300x208.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-783x543.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-768x532.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-50x35.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-60x42.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/9-14-100x69.png 100w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/a><\/p>\n<p>A new tab will open with your WHMCS configuration listed:<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6351\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8.png\" alt=\"\" width=\"881\" height=\"495\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8.png 881w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-300x169.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-783x440.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-768x432.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-50x28.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-60x34.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/11-8-100x56.png 100w\" sizes=\"auto, (max-width: 881px) 100vw, 881px\" \/><\/a><\/p>\n<p>At the bottom of the configuration, add a new line with the following text:<\/p>\n<div class=\"mw-highlight mw-content-ltr\" dir=\"ltr\">\n<pre>$customadminpath = \"mycustomfoldername\";<\/pre>\n<\/div>\n<p>Replace &#8220;mycustomfoldername&#8221; with the name you wish to use for your Admin directory. This should just be the directory name, not the full path to the directory.<\/p>\n<p>Click Save Changes in the top right corner to save these new changes.<\/p>\n<p><strong>Step 4:<\/strong> Next, return to your File Manager and locate the Admin directory in the directory where WHMCS is installed.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/20-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6375\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/20-2.png\" alt=\"\" width=\"1417\" height=\"697\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/20-2.png 1417w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/20-2-300x148.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/20-2-783x385.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/20-2-768x378.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/20-2-50x25.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/20-2-60x30.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/20-2-100x49.png 100w\" sizes=\"auto, (max-width: 1417px) 100vw, 1417px\" \/><\/a><\/p>\n<p>Single-click the folder, then click Rename from the row of tools at the top of the File Manager.<\/p>\n<p>In the rename modal, give the folder the same name you entered in the WHMCS configuration.php file in the earlier step, then click the rename file button to save the file rename.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/21-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6376\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/21-1.png\" alt=\"\" width=\"753\" height=\"316\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/21-1.png 753w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/21-1-300x126.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/21-1-50x21.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/21-1-60x25.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/21-1-100x42.png 100w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/a><\/p>\n<p>Now, the folder will be renamed and your WHMCS installation is even more secure!<\/p>\n<h3 id=\"restrict-database-privileges\">Restrict Database Privileges<\/h3>\n<p>WHMCS only requires a few database permissions to operate day-to-day, including these permissions:<\/p>\n<ul>\n<li>DELETE<\/li>\n<li>INSERT<\/li>\n<li>SELECT<\/li>\n<li>UPDATE<\/li>\n<li>LOCK TABLES<\/li>\n<\/ul>\n<p>However, if you are doing a new installation, upgrade, or activating and deactivating modules, you&#8217;ll need these privileges:<\/p>\n<ul>\n<li>ALTER<\/li>\n<li>CREATE<\/li>\n<li>DROP<\/li>\n<li>INDEX<\/li>\n<\/ul>\n<p>For enhanced security, you can disable access to ALTER, CREATE, DROP, and INDEX. To do this, use the steps below:<\/p>\n<p><strong>Step 1:<\/strong> Login to your cPanel. There&#8217;s a lot of ways to do this, but the sure fire easiest way is to login to your <a href=\"https:\/\/www.chemicloud.com\/login\" target=\"_blank\" rel=\"noopener noreferrer\">Client Area<\/a>, then open your cPanel.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4061\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab.jpg\" alt=\"\" width=\"1674\" height=\"496\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab.jpg 1674w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-300x89.jpg 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-1024x303.jpg 1024w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-768x228.jpg 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-50x15.jpg 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-1536x455.jpg 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-60x18.jpg 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/12\/lab-100x30.jpg 100w\" sizes=\"auto, (max-width: 1674px) 100vw, 1674px\" \/><\/p>\n<p><strong>Step 2:<\/strong> Once your cPanel is open, scroll down to the Databases section and open MySQL Databases.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/22-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6377\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/22-1.png\" alt=\"\" width=\"1327\" height=\"352\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/22-1.png 1327w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/22-1-300x80.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/22-1-783x208.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/22-1-768x204.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/22-1-50x13.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/22-1-60x16.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/22-1-100x27.png 100w\" sizes=\"auto, (max-width: 1327px) 100vw, 1327px\" \/><\/a><\/p>\n<p><strong>Step 3:<\/strong> Scroll to the Current Databases section and locate the database that&#8217;s used for your WHMCS installation.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--danger  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Important Information:<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tIf you don&#8217;t remember which database you used for your WHMCS installation, not to worry, just open your cPanel, then navigate to File Manager, and using the File Manager, open the configuration.php file located in the directory where your WHMCS installation is located.<\/p>\n<p>The database used will be listed in the configuration.php file.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/24-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6379\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/24-1.png\" alt=\"\" width=\"1454\" height=\"446\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/24-1.png 1454w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/24-1-300x92.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/24-1-783x240.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/24-1-768x236.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/24-1-50x15.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/24-1-60x18.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/24-1-100x31.png 100w\" sizes=\"auto, (max-width: 1454px) 100vw, 1454px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 4:<\/strong> Adjacent to the database used for WHMCS, click the Privileged User in the Privileged Users Column. This will load the User Privileges, aka permissions, page.<\/p>\n<p><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/23-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6378\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/23-1.png\" alt=\"\" width=\"1450\" height=\"433\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/23-1.png 1450w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/23-1-300x90.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/23-1-783x234.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/23-1-768x229.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/23-1-50x15.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/23-1-60x18.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2021\/07\/23-1-100x30.png 100w\" sizes=\"auto, (max-width: 1450px) 100vw, 1450px\" \/><\/a>Step 5: Uncheck the permissions that are not needed for day-to-day functioning of WHMCS. This includes these:<\/p>\n<ul>\n<li>ALTER<\/li>\n<li>CREATE<\/li>\n<li>DROP<\/li>\n<li>INDEX<\/li>\n<\/ul>\n<p>When you&#8217;ve finished, click the Make Changes button at the bottom of the page.<\/p>\n<p>And that&#8217;s all you need to do! <strong>Just keep in mind, next time you go to upgrade your WHMCS, or activate or deactivate a new module, you&#8217;ll need to enable those permissions.\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While WHMCS may include many features to help automate your sales, it also includes many features to help keep your data safe. However, you should still take some additional steps to further secure your WHMCS installation. This Knowledge Base article will help you do just that. Let&#8217;s begin! WHMCS Security&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[44],"ht-kb-tag":[],"class_list":["post-6337","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-whmcs"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/6337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=6337"}],"version-history":[{"count":11,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/6337\/revisions"}],"predecessor-version":[{"id":7114,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/6337\/revisions\/7114"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=6337"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=6337"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=6337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}