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

configs dir under web root- security help needed

 
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
sulleleven
Smarty Rookie


Joined: 26 Jan 2004
Posts: 9

PostPosted: Tue Feb 24, 2004 11:28 pm    Post subject: configs dir under web root- security help needed Reply with quote

hi.
i want to include my database connection setting in a .conf but prefer the file to be located under web root for added security. I tried to add manual location of configs directory in my php file but it wouldnt take.

also, the conf file didnt load when I took public read off (0640). Though it seems to work now Question

Can someone offer me the most secure way to store sensitive data using smarty?

thanks.
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Tue Feb 24, 2004 11:54 pm    Post subject: Reply with quote

configure $smarty->config_dir with an absolute path. this should work.
the config-file has to be readable by the webserver's uid or gid. if you set the permissions 0640 be sure the group the file is owned by, is the group the webserver is running.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sulleleven
Smarty Rookie


Joined: 26 Jan 2004
Posts: 9

PostPosted: Thu Feb 26, 2004 10:11 pm    Post subject: Reply with quote

i did use absolute path.
but i left out section name in $smarty->config_load
woops. Embarassed
Back to top
View user's profile Send private message
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