Jump to content

Further Security Steps - subdomains setup problems


popart

Recommended Posts

I'm trying to install WHMCS for the first time. I'm putting it in a subdomain:

http://my.hostsite.net

 

However, I'm having problems with the Further Security Steps. First, I'm unable to move the three folders ("attachments", "downloads" and "templates_c"). Could some please explain, what does 'outside of the public accessible folder file tree' mean? Where exactly do I move those folders? When I try to move them into the "my" subdirectory, I get a permissions error. And I can't change permissions on my subdirectory.

 

Second, what should my file path be? Please tell me how I should edit this code:

 

$templates_compiledir = "/home/whmcs/templates_c/";

$attachments_dir = "/home/whmcs/attachments/";

$downloads_dir = "/home/whmcs/downloads/";

 

Thanks!

Link to comment
Share on other sites

Assuming a cpanel hosting server, your document root is "/home/username/public_html". Files to show visitors go in "public_html", and anything above that (/home/username) will be unreachable via the web, but fine for WHMCS to access.

 

The paths would be:

$templates_compiledir = "/home/username/templates_c/";

$attachments_dir = "/home/username/attachments/";

$downloads_dir = "/home/username/downloads/";

 

In all the above cases, "username" is your actual cpanel username.

Link to comment
Share on other sites

using a subdirectory "my" (with Plesk), I think my paths would be... (can someone tell me if this is correct??)

 

$templates_compiledir = "/subdomains/my/templates_c/";

$attachments_dir = "/subdomains/my/attachments/";

$downloads_dir = "/subdomains/my/downloads/";

 

BUT, I'm unable to move those folders to the subdirectory. Plesk doesn't allow me to change the permissions for my subdirectory. So, how can I move the folders?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated