Saturday, October 12, 2013

Google app engine php tutorial in windows. Getting started hello worldexample. GAE development and deployment

Google App Engine (GAE) is a platform as a service (PaaS) cloud computing platform for developing and hosting web applications. Recently Google has made Google App Engine PHP runtime support fully available to the general public, meaning you can run your PHP applications in the Google Cloud Infrastructure with various pricing plans.

I've never used App Engine before and thought of give it a try. I thought I might have to put a lot of workaround for setup and deployment of the project. But I am really impressed by its simplicity of creation and deployment of the project. Also they provide a simple GUI called Google App Engine Launcher for making the application management simpler.

Lets get started,

Creating the Application

1. Go to and download the Python MSI installer for windows and install the application.

2. Then download the PHP SDK for App Engine from the link and install the application.
3. After Installing Python and App Engine PHP SDK, Open the Google App Engine Launcher application,

4. Go to menu bar and click  File -> Create New Application,

5. Fill up the Application Name, Parent Directory, Runtime (PHP), Port and Admin Port.

6. The application will be created and listed out in the GAE launcher.

7. Open the Parent Directory in Explorer, You can see the application folder got created.

8. The new empty application folder will have app.yaml file, main.php file and a favicon.ico file.

9. The app.yaml file will have the application configurations, and by default it is configured in a way that main.php will handle all the requests coming into the application. We'll see the configuration options later and run the application first.

10. Now open Google App Engine Launcher Click Run button given above (Control -> Run),

11. Now goto http://localhost:8080 or to whatever port you have given. You can see the "Hello World!" over there.

If the application is not starting goto Edit -> Preferences, and fill up the required details.

It is said that the default values will be used if it is not set. But for me, Unless I set it manually, The application was not running. Try with the above details. If it is still not running, Try adding the Deployment Server value with "C:Program" in the preference and try again.

The given demo is done in Windows 8 machine. But when I tried with Windows XP, I've got the error message "The procedure entry point InitializeSRWLock could not be located in the dynamic link library KERNEL32.dll" and I couldn't resolve it though.

Deploying application to Google App Engine
12. Go to , Login with your Google account and Click create application.

13. Fill up the Application ID, Title and leave the other options to default and Click Create Application.

14. After creation, You can see a dashboard for the application. Lets not get complicated and start with deploying the application.

15. Now lets create an application to deploy to App Engine, Or you can use your old application itself. Make sure to change the "application:" in the app.yaml with the Application Identifier you've registered with Google App Engine.

16. Select the application and click the Deploy button ( Control -> Deploy )
Fill up your google account credentials and Click Ok.
17. The below window will be opened and the application will be deployed to the Google App Engine.
18. After the deployment is successful, Go to http://<your-app-id>, in the current scenario it is

Bazinga!! Your PHP application is running in Google App Engine Cloud Infrastructure.

I'll explore what else we can do with PHP in Google App Engine and will blog in the upcoming posts.


  1. Thanks for the post, it's very helpful.

  2. The Google tutorial neglected to explain that the preferences really needed to be set for things to work, they really weren't even though it appeared as though they were! I drove myself nuts trying to figure out my mistake but I didn't have one! I was about to give up until I found this, Thank you!

  3. Do you know who is responsible fro development human whose mind is superb a great advanced methodology is responsible fro such applications, that is why companies hire PHP developer

  4. This comment has been removed by the author.

  5. A million thanks for sharing this. This whole thing (especially the "Deploying application to Google App Engine" part) was already driving me crazy.

  6. Thanks for your informative post!!! After completing my graduation, i am confused whether to choose web design as my career. Your article helped me to make a right choice. PHP Training in Chennai

  7. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    PHP Training in Chennai | PHP Course in Chennai

  8. Thank you for the detailed instruction but I needed when installing applications. Some errors are fixed very simply. Good thing cuz, I found this file in time.

  9. Thanks a lot very much for the high your blog post quality and results-oriented help. I won’t think twice to endorse to anybody who wants and needs support about this area. software testing training in chennai

  10. Thanks for sharing this valuable blog. Very clear step by step representation of the process. Keep updating.
    Final Year Project Center in Chennai | IEEE Project Center in Chennai | Diploma Project Center in Chennai

  11. Informative blog and it was up to the point describing the information very effectively. Thanks to blog author for wonderful and informative post.
    Mobile application developers in Chennai | Android application developers in Chennai | Android app developers Chennai | PHP developers chennai

  12. Wow! It was the best article , actually you have posted something new compared to others, because I read many articles related to this topic but I only get impressed with your post only, keep posting.
    Java Training in Chennai | Web Designing Training Institute in Chennai | DotNet Training Institute in Chennai

  13. Awesome post. Really you are shared very informative concept... Thank you for sharing. Keep on updating...
    Best Summer Courses for professional students in Chennai|Best Summer Courses for professional students in Ashok Nagar

  14. Needed to compose one little word yet thanks for the suggestions that you are contributed here, please do keep on sharing...
    Best Online Software Training Institute | PHP Training