|
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 |
scabbage Smarty n00b
Joined: 16 Mar 2004 Posts: 3
|
Posted: Tue Mar 16, 2004 5:19 pm Post subject: setup directory permission |
|
|
Hi, I'm trying to get smarty to work. I'm using my friends machine, which doesn't let me do "chown". So I can't chown templates_c and cache directory to apache. What can I do? Right now the only way to get it to work is set permissions to 777, which I'm not quite comforable with. Can anyone help me? |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue Mar 16, 2004 5:25 pm Post subject: |
|
|
if the templates_c-directory belongs to the webserver's gid, then chmod 770 is enough.
another way may be.
if you have something like .../tmp/templates_c :
- remove templates_c
- chmod 777 ../tmp
- run php-script on the webserver that does "mkdir .../tmp/templates_c"
- chmod 755 ../tmp
you end up with a templates_c that is owned by the webserver, and don't need any world-writable directories.
or better (and easier): ask your friend to do the necessary chown for you. |
|
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
|