Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

setup directory permission

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
scabbage
Smarty n00b


Joined: 16 Mar 2004
Posts: 3

PostPosted: Tue Mar 16, 2004 5:19 pm    Post subject: setup directory permission Reply with quote

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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Tue Mar 16, 2004 5:25 pm    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP