|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
dsd Smarty n00b
Joined: 21 Oct 2003 Posts: 1
|
Posted: Tue Oct 21, 2003 6:38 pm Post subject: Permissions to Smarty? |
|
|
Hello, I just installed Smarty but permissions are not allowing it to work.
Whenever I run it it says:
Ex. the script with UID of 0 can't access templates_c with UID of 501
I have changed ownership of all Smarty files,directories to root and all possible groups and users apache nobody etc and chmod everything 777 but still get this error. I may need to restart the system?
Any help would be appreciated.
Damon Doran |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue Oct 21, 2003 10:36 pm Post subject: |
|
|
it seems you have safe-mode enabled. you have to switch $smarty->use_sub_dirs=false to make smarty work with safe-mode.
you don't need chmod 777 everything and giving all files to root doesn't make sense at all. just ensure all files are readable by your webserver-process (who is running with uid 501 it seems). and that templates_c is writable by said uid.
HTH
messju |
|
Back to top |
|
harris Smarty Rookie
Joined: 15 Oct 2003 Posts: 5
|
Posted: Wed Oct 22, 2003 9:14 am Post subject: |
|
|
It's not needed to set the owner to root or something, just check under which user the webserver is running, and give that user write access to the following folders:
cache/
templates_c/ |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|