0

I've installed WHMCS on my hosting space and did its security tips regarding to its document. I've moved templates_c, downloads, and attachments fot one level above public_html (I'm using DirectAdmin control panel) and set their permissions to 777. After it, I put these lines in configuration.php file:

$templates_compiledir = "/home/mysite.com/templates_c/";
$attachments_dir = "/home/mysite.com/attachments/";
$downloads_dir = "/home/mysite.com/downloads/";

But now, when I want to open WHMCS, I get this error:

Permissions Error The templates compiling directory '/home/mysite.com/templates_c/' must be writeable (CHMOD 777) before you can continue. If the path shown is incorrect, you can update it in the configuration.php file.

I've tested the below formats for configuration.php file too, but they did not work:

  • /domains/mysite.com/templates_c/
  • /home/domains/mysite.com/templates_c/

Please help me.

2 Answers 2

1

level above public_html for DirectAdmin:

/home/[USERNAME]/domains/[mysite.com]/

insert this code for DirectAdmin in configuration.php file:

$templates_compiledir = '/home/[USERNAME]/domains/[mysite.com]/templates_c/';
$attachments_dir = '/home/[USERNAME]/domains/[mysite.com]/attachments/';
$downloads_dir = '/home/[USERNAME]/domains/[mysite.com]/downloads/';
-1

I searched and searched all over for an answer on this and finally figured it out. At least in my server environment for WHMCS (Rackspace Cloud Sites) you need to enter the absolute path to the file, not the relative path to the file as is demonstrated in the WHCMS example.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.