2

Has anyone tried to do this?

Cake needs a tmp folder with writable permissions so I guess it isn't possible. Or is there a way to disable this behavior?

Sérgio Lopes
  • 258
  • 3
  • 10
  • I don't think so. That question is about running PHP with quercus using the Java runtime. I'm talking about the new PHP runtime lauched yesterday. – Sérgio Lopes May 16 '13 at 19:08
  • Interesting. Well, if you can't create a writable tmp folder I would not do this. – timstermatic May 16 '13 at 19:15
  • 1
    even though this got marked as a dupe it's probably not - as the accepted answer on the other question was from a time before GAE natively supported PHP. What does cakePHP use the /tmp folder for? – Stuart Langley May 17 '13 at 04:06
  • @Stuart Langley: I can't say for Cake, but PHP "normally" uses tmp for Session files and File-Uploads. I wondered about how you manage file-uploads as well, so is there some tmp that actually exists or how is that done? All into the cloud storage buckets by default? – hakre May 18 '13 at 18:06
  • @harke: Everything into Cloud Storage - look at CloudStorageUtil::createUploadUrl to how to make the action to point your form to - from there it should all flow as normal. For sessions, by default we store them in memcache, which is fine for some apps but if you want something more resilliant then into Cloud SQL they should go. – Stuart Langley May 18 '13 at 18:15

1 Answers1

1

Is it possible to specify an alternate location for the /tmp directory CakePHP writes to? If so, you might want to try specifying to a Cloud Storage bucket. eg. gs://my-cake-bucket/tmp/

More info: https://developers.google.com/appengine/docs/php/googlestorage/overview

Andrew J
  • 1,951
  • 1
  • 14
  • 16