triplebox Posted February 10, 2011 Share Posted February 10, 2011 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 0 Quote Link to comment Share on other sites More sharing options...
triplebox Posted February 11, 2011 Author Share Posted February 11, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
jambon Posted February 13, 2011 Share Posted February 13, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
shagotik Posted February 14, 2011 Share Posted February 14, 2011 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/"; 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.