On Fri, Apr 15, 2011 at 8:07 PM, Carlos Eduardo Sotelo Pinto
<[email protected]> wrote:
> Hi people.
>
> I have read this article and thinking on a new challenge ( if it coudl
> be called a challenge ). What about having a cakephp installed on a
> server.. like a dedicated server, optimized for multiple domains, for
> example multiple domains acounts for multiple cpanel accounts.
> Starting on this article I have thinking on a shel script that load
> the webroot on the cpanel account, having each cpanel account its own
> webroot account, but all the cpanel account culd having its own app,
> but the complete app is installed on a shared path like
> /usr/share/mycakeapp for example. The question , is it possible, some
> one of you has done an app like this app?
I'm not entirely sure I follow you. If you mean can you share the cake
libs, yes. Put the cake directory somewhere like
/usr/share/php/cake_1.3.8 then create a symlink to /usr/share/php/cake
and modify index.php to have:
define('CAKE_CORE_INCLUDE_PATH', '/usr/share/php/cake');
The one downside to this is that updating the Cake libs affects all
sites, potentially breaking things. To work around that, one could
temporarily define the path to point directly to the desired version:
define('CAKE_CORE_INCLUDE_PATH', '/usr/share/php/cake_1.3.7');
Still not a great setup, but workable if the sites are all yours to manage.
You can also set up each virtual host DocumentRoot to be eg.
/var/www/vhosts/some_site/app/webroot in which case .htaccess no
longer is necessary. If you do this, be sure to set AllowOverride None
in your virtual host confs.
If you're asking about sharing the actual app I have no idea. I
suppose one could somehow do that but that would involve sharing the
database, as well, which doesn't seem like a good idea.
--
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