Get The Most Affordable Hosting in the World!
Starting at just $1.87/month, Vercaa offers unbeatable pricing for world-class web hosting services.
Fast, reliable, and secure hosting to power your website without breaking the bank. Plus, enjoy a free CDN for faster loading times worldwide!
Get Started Now!We recommend moving all writeable directories to a private location in order to prevent web-based access. When you move them, you must also update their locations in your installation's file storage and the templates cache.
We recommend performing this task and other security measures immediately after installing WHMCS. For a full list, see More Ways to Secure Your WHMCS Installation.
If you are running suPHP or PHP suEXEC, chmod 755
will make the directories writeable. This is the highest permission available for both folders and files when running in that condition.
Writeable Directories
WHMCS requires three writeable directories:
attachments
downloads
templates_c
The attachments
and downloads
directories include the files that you or your customers attach to support tickets and any files that you offer for download. You can either move the attachments
and downloads
storage directories to a local location or store them remotely on an Amazon S3™-compatible service.
The templates cache (templates_c
) improves the performance of templated pages and emails. You can move the templates_c
directory to a local location.
Moving the Directories
How you move the directories depends on your hosting control panel and the methods you prefer.
To do this in cPanel:
1. In your cPanel account, go to Files >> File Manager.
2. Navigate to your WHMCS installation directory.
3. For each of the three folders:
a. Right-click on the folder and choose Move.
![](https://media.screensteps.com/image_assets/assets/006/803/851/original/6b4d77c4-9401-4a22-bf55-c35f9960112d.png)
b. Enter the new path for the directory. This path must be above the public_html
directory.
![](https://media.screensteps.com/image_assets/assets/006/803/855/original/ff861464-4c98-4524-ae88-c619ab2e5c42.png)
c. Click Move File(s). As you move each folder, they will appear in the left-side navigation pane.
Make certain that you note the new directory paths. You will need them in later steps.
4. Still in cPanel at Files >> File Manager, navigate back to the WHMCS installation path.
5. Right-click on the configuration.php
file and choose Edit.
![](https://media.screensteps.com/image_assets/assets/006/803/857/original/eeef0e24-60fb-4794-9d53-fc98e106338c.png)
6. Update the $templates_compiledir
setting to use the new path to the templates_c
directory. For example:
$templates_compiledir = "/home/username/templates_c/";
7. Click Save Changes.
8. In the WHMCS Admin Area, go to Configuration > System Settings > Storage Settings.
9. In the Configurations tab, select Local Storage for Add New Configuration and click +.
![](https://media.screensteps.com/image_assets/assets/006/803/859/original/d6b4128e-9b6c-42d3-aaca-c3dc2776f5ed.png)
10. Enter the new path to the attachments
directory and click Save Changes.
![](https://media.screensteps.com/image_assets/assets/006/803/861/original/762d41dd-6c42-42cf-85c0-cb523087d40b.png)
11. Repeat steps 9-10 for the downloads
directory.
12. In the Settings tab, choose the new directory locations in each menu.
![](https://media.screensteps.com/image_assets/assets/006/803/863/original/944e1440-ac7e-4102-b43e-53710e9b9a86.png)
13. Click Switch.
Only click Switch if you moved the directories. If you created new directories instead, use Migrate instead to copy the files from the old directory to the new directory.
The End! should you have any inquiries, we encourage you to reach out to the Vercaa Support Center without hesitation.