Jump to content

Plesk server: Blank pages due to 3 moved folders not being accessed


triplebox

Recommended Posts

As recommended for security purposes, I moved the 3 777 folders out of the public folder (in my case "httpsdocs" w/ my Plesk VPS). I set the path variables in configuration.php absolutely as follows:

 

$templates_compiledir = "/var/www/vhosts/mysite.com/whmcs_hidden/templates_c/";

$attachments_dir = "/var/www/vhosts/mysite.com/whmcs_hidden/attachments/";

$downloads_dir = "/var/www/vhosts/mysite.com/whmcs_hidden/downloads/";

 

For reference sake, WHMCS is located here (with the publicly-accessible bolded):

 

/var/www/vhosts/mysite.com/httpsdocs/whmcs

 

However, the screen is blank and I keep getting the following error:

 

Smarty Error: the $compile_dir '/var/www/vhosts/mysite.com/whmcs_hidden/templates_c/' does not exist, or is not a directory.

 

I know for a fact that the folder both exists and is a directory. I've experimented with folder ownership and confirming no open_basedir restrictions etc., but still no effect.

 

Can someone with Plesk knowledge/experience PLEASE give me some direction and guidance? I already opened a ticket and that got me nowhere.

 

Thanks,

Joe

Link to comment
Share on other sites

I can confirm that the path is correct as it works with this path:

 

$templates_compiledir = "/var/www/vhosts/mysite.com/httpsdocs/whmcs_hidden/templates_c/";

 

However, when I move those 3 folders outside of "httpsdocs", they're unaccessible and the screen is just blank.

 

So it's confirmed to be an ownership/permissions issue, but nothing I do in that vein makes a difference.

Link to comment
Share on other sites

I had this same issue - I think it's specifically something to do with the permissions that plesk sets on the main domain folder by default. however in editing those settings you reduce security so I just left them in the main area - you can still just rename them like you do with the main admin area to gain a little added security.

Link to comment
Share on other sites

Moved all your folder to main directory ( HOME ) where you will see public_html as a folder also. then change the configuration.php

$templates_compiledir = "/home/ mysite.com /templates_c/";

$attachments_dir = "/home /mysite.com /attachments/";

$downloads_dir = "/home/ mysite.com /downloads/";

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