Is it possible to deploy cakephp applications on google app engine?

混江龙づ霸主 提交于 2019-11-28 11:06:46

问题


I recently read that php applications can be deployed on Google App Engine using Quercus.

Is it possible to deploy cakephp applications too? Also, from the developers point of view, is there any difference between developing applications for cloud and for other client sever systems?

I am a novice and do not have much knowledge about all this. So, any kind of help will be appreciated.

Thank you in advance.


回答1:


While you can run PHP applications using Quercus on GAE, getting a typical CakePHP app to work might be an exercise in frustration. As far as I'm aware, there is no PDO driver for GAE's data store so you'd have to write your own CakePHP DataSource. Also, GAE does not support filesystem access, so things that you take for granted in Cake (such as filesystem-backed caching) won't work correctly on GAE.

If you want to run a CakePHP application "in the cloud", you might consider using a service that properly supports PHP (e.g. RackSpace Cloud, PHPFog, PagodaBox, etc).

Speaking to your add-on question, the architecture of a traditional hosted application is slightly different than a true "cloud application", specifically the fact that cloud applications are designed to scale horizontally. This is a complex topic in and of itself, so I would suggest doing some research on your own about cloud application architecture to familiarize yourself with the concepts.




回答2:


Update 10/03/13

GAE now supports PHP on an experimental basis. Check out the documentation here Landing page details other details

Original answer:

Officially GAE supports Java, Python and Go! But as detailed in post PHP can be made to work on GAE.

Though you must understand that PHP is being interpreted into Java bytecode and being run with certain limitations, as specially mentioned in point 4 in notes section.

The blog details everything you possibly need to know in great detail.




回答3:


There's a detailed walkthrough of setting up CakePHP on App Engine at http://aymanrb.blogspot.com/2013/05/cakephp-deployment-on-google-app-engine.html

It uses the recently released PHP runtime.



来源:https://stackoverflow.com/questions/9774182/is-it-possible-to-deploy-cakephp-applications-on-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!