For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > March 2004 > Global template_c and cache directory for several clients - good idea









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Global template_c and cache directory for several clients - good idea
Jochen Kaechelin

2004-03-27, 12:31 am

Hello list,

I'am running debian/sid and smarty 2.6.2 and I have the following
question:

I will give all clients a _smarty directory which include a template
and a config directory.

clientname:www-data templates (chmod 0770)
clientname:www-data configs (chmod 0770)

My question is, if it is a good idea to create a global templates_c
and cache directory under /usr/share/php/smarty/

www-data:www-data templates_c (chmod 0700)
www-data:www-data cache (chmod 0700)

when I will create a templates_c directory under the users
_smarty directory everybody can view the contents of the compiled
scripts by typing

www.clientdomain.de/_smarty/templates_c/templatename

What's the best, most secure way to install smarty globally for
several clients?

Thanx

--
Jochen
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com