On Sun, Apr 17, 2011 at 3:38 AM, cricket <[email protected]> wrote:
> What you and Krissy said makes sense, and is what I had in mind. But
> it seems to me that there would be issues surrounding AppController ad
> sessions. Maybe not. I haven't put too much thought into it.

Hmm, I hadn't even thought about sessions really. Good point. Assuming
we're talking about mass hosting here, you'd want it to be scaleable,
that means atleast sessions stored in the database since session data
needs to be persistent across instances incase you add another (or 12)
front end machines to handle requests, in that case -- since each
client has his own private little boundary, the database, where his
data stays -- its not an issue. Preferably though, you'd want
memcache, and even if just file based storage, it wouldnt be that hard
to hack a little client account based uniqueness in cakephp's session
generation logic (if its not even already there out of the box
anyway).

As for the AppController, I'm not sure what you're pointing at, does
it need to be different/unique? I thought the point was multiple
instances of the same application?

> Yes, setting the classpath makes more sense, as Vitor pointed out. As
> for hassles with setting up a new account, though, I'd think something
> like this would be done through a shell script, ant, or similar,
> regardless of whether one was using symlinks or a prearranged config.
> Doing it by hand each time would be too tedious and error-prone.

Yep, you're absolutely right about automation, that wasnt a very solid
point. Symlinks are nasty though -- if ony from your customers
perspective -- they dont understand what it is and how it works. You
cant serve those things to your customers without expecting a support
call from each and every one of them at least multiple times, when
they are browsing around uploading their images and getting lost in
/opt/isp/shared/whatnot everytime they follow a symlink, and they do,
just because the folder is there, in "their" document root with there
crappy working ftp's and scp's.

That, and I always forget wether to type ln -s source target or ln -s
target source, so its more of a personal bias  ;-)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to