![]() |
file ownership/permissions issues
Somehow my permissions/file ownership has gotten out of wack. What should file permissions be set at? Should file ownership be set to "WWW" or the user? My hosting company contacted me last week saying my site was insecure because of how the permissions were set up. I asked xcart people to fix this and they did. Then there were certain directories which I couldn't see the files (though they were there). Now I can see all file by my site totally doesn't work. My host said they changed the ownership from WWW to the user. This is the error I'm getting:
Quote:
Any insight would be appriciated. thanks |
try running http://www.yoursite.com/xcartdir/cleanup.php
that will refresh the templates_c folders I have a list of what file permissions should be set as and will post it in the faq in a while when I find it again. |
Thanks shan. My host has been screwing with my permissions and the last change they made everything unreadable. It has been fixed now.
|
|
So everything was working ok on Friday, UNTIL I decided to make a change. Now I get this error:
Quote:
All I did was upload head.tpl and skin1.conf. The site seems to work fine though. Strange thing is the change I made was a modification to the drop-down box in the search box on head.tpl. I totally changed the contents of the drop down box though the old options are what show up even though those options are no longer in the code?? Strange huh? I'm assuming it's got to be a permissions issue since I've been having problems with them and I've modified plenty of tpl files without any problems. Can't figure it out though. |
You could always try and run
http://www.yourhost.com/xcartdir/cleanup.php to flush out the templates folder |
What does that do exactly? I have made a lot of modifications.
|
It will just clear out the templates_c directory which is where smarty puts the compiled versions of your templates. Its like a cache and is updated whever you change any files.
Its fine to clear it every now and again as it does not change your .tpl files |
Well I tried that and I'm still getting the error.
I can't figure this out. The code which is currently showing up on my site, no longer is there. It has been replaced by other code yet there it is. If you could check out my site, just to make sure i'm not insane or something. http://208.56.135.184/customer/home.php thanks |
Quote:
Have you made sure your /templates_c/ directory permissions are chmod 777? |
From the horses mouth, well the xcart faq anyway ...
Q : While ruuning X-Cart I get the following error messages: Warning: MkDir failed (Permission denied) in /u/http/user/xcart/Smarty-2.0/Smarty.class.php on line 1366 Warning: Smarty error: problem creating directory "../templates_c/-20/-2087024569" in /u/http/user/xcart/Smarty-2.0/Smarty.class.php on line 470 Warning: Smarty error: problem writing '../temp8lates_c/-20/-2087024569/0.php.' in /u/http/user/xcart/Smarty-2.0/Smarty.class.php on line 470 Warning: Failed opening '../templates_c/-20/-2087024569/0.php' for inclusion (include_path='.:/usr/local/lib/php4/lib/php') in /u/http/user/xcart/Smarty-2.0/Smarty.class.php on line 1003 A : The "templates_c" directory contains cache of compiled templates. These errors occur because web server has no enough permissions to overwrite temporary cache files in directory templates_c. You probably have copied them while moving X-Cart and these files now do not belong to web server user (httpd or nobody). To fix this issue just remove all your files from that directory. Everything will be recreated by Smarty. Also, this directory must have writeable permissions, which can be achieved by "chmod 777 templates_c" command. |
I deleted all those files and it works. Thanks
Should these files be deleted every so often? Seems like they are just taking up space. |
only gets messy if your updating / editing lots of files.
Once your done working on the site flush the templates_c and then all should be fine and not need empting again. |
Once I'm DONE?! Ha!
|
i just installed 3.4.2 and noticed that my skin1 directory is 777 with owner = nobody. I tried to chmod this to 755 but i cannot because of the nobody owner. I cant chown the files either.
what do I need to do to change the permissions? i dont want 777 permissions on these !!! |
All times are GMT -8. The time now is 01:40 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.