Sunday, September 29, 2013

Re: Sharing one Cake application with many domains, each with its own database

I've had previous experience with something similar, but with Joomla installations and an arrangement of symlinks.

My advice would be not to set up cake this way.  Whilst it's convenient when things are going well, it's very very bad when things go south.  It's not just one site that suffers, it's all of them. Especially if you have a database upgrade : all the sites on the machine have to go down while the database upgrades are applied, rather than one at a time.

Find a more automated way to do deployments, rather than do symlinks.  Previously, I've used capistrano to automate deployments via SSH, but I've had it in the back of my mind to also check out Fabric (python based). I wish there was something PHP based that also targeted Windows environments, but the best I've been able to come up with there is the usage of Phing (Ant for PHP) and FileSystem copies.

On Saturday, 28 September 2013 07:03:15 UTC+10, WebA wrote:
Hello,

We have a shared hosting server that hosts many domains (we will assume that the amount will be scalable).  We develop a Cake application and each domain has a copy of the application's files.  Each copy of the application connects to each domain's database.

Deploying updates to each domain is an incredibly tiresome and tedious process.  We want to consider alternative setups that will make this process easier.

We have thought of one alternative, but are unsure of the scalability of them:
  • Place one copy of the Cake application on the server and create sym links for the shared files.  Domain specific files will of course be unique for each domain

Has anyone had a similar issue or experience?

If anyone has any suggestions or previous experience with a similar issue, please share!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Migrating from 1.3 to 2.x

I would do it directly. It has no sense making it in steps

El 29/09/2013 23:58, "Adam Perks" <adamperks81@gmail.com> escribió:
Is it best to upgrade from 1.3 to 2.0, then from 2.0 to 2.1, then 2.1 to 2.2, etc. Or, do I just upgrade directly to 2.4?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Image Merging in CakePHP

I would recommend using Imagine or the Imagine plugin for CakePHP I've written that acts as a wrapper around the lib to make it useable in the a CakePHPish way. Imagine is a very good image processing lib that abstracts the different APIs very well.

https://github.com/burzum/Imagine

On Friday, September 27, 2013 2:18:34 PM UTC+2, Tom Nash wrote:
I have a layered image on my webpage, made up of small images layered onto a larger one. 

Is it possible to merge/flatten the images so that I am just left with one that can be downloaded? If so, how would I go about it?

Thanks,
Tom

This email may contain material that is confidential, privileged and/or work product for the sole use of the intended recipient.  Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies.

Cake Development Corporation.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Sharing one Cake application with many domains, each with its own database

That only works if all are upgrade and deployed with the very same cake core version.
But if thats the case, you can use a single app

For smaller websites using the same core I always just had a single instance of it (without any symlinking or other setup) - zero configuration needed:

ROOT/app1
ROOT/app2
ROOT/app... (to unfinitiy)
ROOT/lib/Cake
ROOT/plugins
ROOT/vendors

On the other side, a cake core (without tests and other baggage) is only 2MB. Wouldn't be that big of an overhead if you got the deployment scripts for automation.


Am Freitag, 27. September 2013 23:03:15 UTC+2 schrieb WebA:
Hello,

We have a shared hosting server that hosts many domains (we will assume that the amount will be scalable).  We develop a Cake application and each domain has a copy of the application's files.  Each copy of the application connects to each domain's database.

Deploying updates to each domain is an incredibly tiresome and tedious process.  We want to consider alternative setups that will make this process easier.

We have thought of one alternative, but are unsure of the scalability of them:
  • Place one copy of the Cake application on the server and create sym links for the shared files.  Domain specific files will of course be unique for each domain

Has anyone had a similar issue or experience?

If anyone has any suggestions or previous experience with a similar issue, please share!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Image Merging in CakePHP

Use imagick (imagemagick) and its functionality to do that


Am Freitag, 27. September 2013 14:18:34 UTC+2 schrieb Tom Nash:
I have a layered image on my webpage, made up of small images layered onto a larger one. 

Is it possible to merge/flatten the images so that I am just left with one that can be downloaded? If so, how would I go about it?

Thanks,
Tom

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Migrating from 1.3 to 2.x

Is it best to upgrade from 1.3 to 2.0, then from 2.0 to 2.1, then 2.1 to 2.2, etc. Or, do I just upgrade directly to 2.4?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Friday, September 27, 2013

Re: how to get cache file name in arabic language

That is going to be tied to the OS the files are on. Most Linux webservers won't support that charset. You will need to come up with another way

Eric

On Thursday, September 26, 2013 7:50:57 AM UTC-4, Mokdij wrote:
I am developing a website in Arabic language, i need to use a slug in Arabic characters but my problem is that the cache file name show characters like Ù«, ØÃ, ì, ù, à in place of normal characters.

example :
post_من-نحن ==> the slug is: من-نحن

post_٬مŠ-ومدØÙ ع-كمروي-ÙÙŠ-ØªØØ±Ùات-ااØ

so how to do to get a cache file name in arabic language ?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.