Thursday, June 20, 2013

Re: Anyone tried installing CakePHP on Google App Engine (since PHP now support)

On Wed, 19 Jun 2013 16:57:27 -0700, Chris G wrote:

> Just curious as to whether anyone had come across a tutorial on getting
> CakePHP up and running on Google App Engine since php support has come
> online?

Yes,

I have ran Croogo on GAE. I have turned it off since they offer no free plan for CloudSQL.

Two points of interests:
- Your app can't write to file systems: use memcached and SyslogLog engine from 2.4 branch
- Patch your webroot/index.php:

diff --git a/webroot/index.php b/webroot/index.php
index c1f5520..fef064f 100644
--- a/webroot/index.php
+++ b/webroot/index.php
@@ -92,5 +92,8 @@ if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/favicon.ico') {

App::uses('Dispatcher', 'Routing');

+$_SERVER['SCRIPT_FILENAME'] = __FILE__;
+$_SERVER['PHP_SELF'] = 'webroot/index.php';
+
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));


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

No comments: