m8internet Posted December 11, 2011 Share Posted December 11, 2011 Could someone advise me as to what files should reside in the whcms/****/templates_c folder I have reset mine to 755 This has not made any difference and is full of files with random letters, ending .php Including some .tpl.php 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 11, 2011 Share Posted December 11, 2011 Those are normal, they are cached template files and pages. By default there should be an index in there also. If you see any in there that are not long strings (some start with %%), they need looking at. Is that folder above publicly accessible directories? The high permissions needed (in a non suphp environment) make it more likely to be used for bad things, so moving it out of public reach is necessary. 755 permissions won't work in a regular shared server setup where scripts execute as "nobody" as it won't be writable by the script. If it worked as 777 (likely the "nobody" environment), it won't as 755 and vice versa. 0 Quote Link to comment Share on other sites More sharing options...
m8internet Posted December 11, 2011 Author Share Posted December 11, 2011 (edited) Is that folder above publicly accessible directories? All three folders are in their own unique folder After the update (v4.3.1 to v4.5.2) the permissions changed from 777 to 644 I have tried various permissions, doesn't seem to make any difference Noted after the update a duplicate folder appeared, but is empty Followed the instructions and renamed this folder Edited December 11, 2011 by m8internet 0 Quote Link to comment Share on other sites More sharing options...
easyhosting Posted December 11, 2011 Share Posted December 11, 2011 so my templates_c is currently at public_html/****/templates_c so yoiu sare saying this shoul be at templates_c/public_html/**** if so how do i change $templates_compiledir = "templates_c/" in the configuration.php file 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 11, 2011 Share Posted December 11, 2011 All three folders are in their own unique folder But is that folder out of public reach, as in: /home/username/uniquefolder << out of reach And not: /home/username/public_html/unique folder << still at risk so my templates_c is currently at public_html/****/templates_c so yoiu sare saying this shoul be at templates_c/public_html/**** if so how do i change $templates_compiledir = "templates_c/" in the configuration.php file Should be /home/user/templates_c http://docs.whmcs.com/Further_Security_Steps 0 Quote Link to comment Share on other sites More sharing options...
easyhosting Posted December 11, 2011 Share Posted December 11, 2011 But is that folder out of public reach, as in:/home/username/uniquefolder << out of reach And not: /home/username/public_html/unique folder << still at risk Should be /home/user/templates_c http://docs.whmcs.com/Further_Security_Steps thanks bear also sorry about the exploits in the other thread, never thought. anyway the IPS assigned to the exploit tickets originated on the OVH network, so have been reported to them 0 Quote Link to comment Share on other sites More sharing options...
m8internet Posted December 11, 2011 Author Share Posted December 11, 2011 (edited) I can see where the confusion lies, it's not very clear these three folders must NOT be in the public_html and should be below this ie root/templates_c/ However, I have tested with all three permissions and the files are still created edit : Checked and neither suphp nor phpsuexec are running Edited December 11, 2011 by m8internet 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.