Can i run php mysql in google engine

I am planning to create a facebook canvas application using php sdk.

The Google app engine, which provides a free account, so I plan to do this.

But there is still a problem, right now the google application only supports java and python.

Is there any way to run php and mysql in google engine?

+7
source share
7 answers

PHP cannot start natively in App Engine. But there is an open source tool called Quercus , a 100% implementation of the Java Java language (requires JDK 1.5). Since App Engine now supports Java, this means that you can use Quercus to run PHP scripts in App Engine.

+5
source

Well, I'm two years late, but from today, PHP is officially available on the Google App Engine.

+7
source

You can run PHP scripts in App Engine in the JVM with Quercus; however, it is still not possible to use mySQL; you need to use the App Engine datastore. This will require rewriting any code that relates to the database, so existing PHP scripts will not work without a big hack.

Note. Support for relational databases is on the App Engine roadmap, but no one knows exactly when it will be available, or if mySQL relational database is available.

+6
source

The Google App engine now supports PHP runtime. Check out the official documentation here - https://developers.google.com/appengine/docs/php/

You can check this blog for more information about the announcement - http://spsneo.com/blog/2013/05/18/php-on-google-app-engine/

+4
source

Quercus is not as good as working PHP initially, and it knows the problems. As I understand it, you are starting to build an application, so I suggest using Python in appengine. Its very easy to get started.

If you have a LAMP-based application, and if you don't want to learn a new language, check out Amazon Beanstalk .

I suggest making a decision based on the strengths of the platform and the flexibility you need.

+3
source

Here is a link to using mysql through CloudSQL in the Google Cloud: https://developers.google.com/appengine/docs/php/cloud-sql/

0
source

Google officially announced its support for PHP in the Google App Engine (GAE)

How to host a PHP web application in GAE for free is explained in this tutorial .

0
source

All Articles