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

deploying a smarty site into the unknown

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


Joined: 28 Apr 2003
Posts: 9

PostPosted: Tue May 13, 2003 10:10 am    Post subject: deploying a smarty site into the unknown Reply with quote

I am working on a few scripts such as a dynamic site builder and i was wondering how i would go about packaging the smarty files as a .zip file so anyone can download it and install.

i have already extended the smarty class to specify the template/cache folder locations using the scripts config file to get the path (so its a simple config file change to get smarty to be able to see everything), but the stumbling block that keeps coming up is changing the owner of the template_c/cache folders to nobody:nobody as this script is potentially going to be used by people with a basic or even free web hosting account where gaining root access to do the chown is not a feasible option.

how have you guys deployed your scripts in the past? i have a feeling i'm missing the obvious here but i just cant think of a way around it.

Ciq


Last edited by ciqala on Wed May 05, 2010 10:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Tue May 13, 2003 11:05 am    Post subject: Reply with quote

I always make a libraries folder and put Smarty and ADOdb in seperate subfolders and distribute it along with the package its needed for. It helps to have a good layed out directory structure when programming large projects.
_________________
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane
Back to top
View user's profile Send private message Visit poster's website
ciqala
Smarty Rookie


Joined: 28 Apr 2003
Posts: 9

PostPosted: Tue May 13, 2003 2:21 pm    Post subject: Reply with quote

how do you handle the fact that the user nobody requires access to templates_c and cache folders do you manually set that when installing?

i'm asking because I am using smarty to rework a script of my friends that he sells from his site so it uses templates so i can then extend the functionality for him.

but the problem is we cant expect the users to know how to chown a folder to install it. it needs to be pretty much ftp the files and run the setup to install the db tables and set the config variables. but i'm not sure this is possibly with smarty.

any ideas?


Last edited by ciqala on Wed May 05, 2010 10:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
ilir
Smarty Rookie


Joined: 20 Apr 2003
Posts: 16
Location: NYC

PostPosted: Tue May 13, 2003 2:31 pm    Post subject: Reply with quote

Ciqala, it is highly recommended to to put the 'configs', 'templates', and 'templates_c' outside the web tree. In other words, these directories shouldn't be accessible via the web because they may contain important info (such as DB passwords) or you simply don't want your .tpl files exposed!

If you plan to use the caching capabilities, chmod 'templates_c' to 777 (while outside the web tree).

As far as automating this whole outside-the-web-tree idea, I have no clue how you would do that. I hope someone here can help you. I am interested in the same thing because I am thinking of selling a script of mine Smile


Ilir.
_________________
The real problem is not whether machines think but whether men do.
- B. F. Skinner
Back to top
View user's profile Send private message MSN Messenger
sulleleven
Smarty Rookie


Joined: 26 Jan 2004
Posts: 9

PostPosted: Mon Jan 26, 2004 6:34 pm    Post subject: Reply with quote

I am now wondering how best to include smarty with a script I am building. Can someone direct me to details, especially the questions here regarding chowning by users who do not have proper access to do this.

thanks.
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