First app using google app engine

First you create php file

helloword.php

<?php

echo “hello world”;

?>

 

After this create .yml file for compile your application

 

app.yml

make this changes in this fle

 

 

application: helloworld
version: 1
runtime: php
api_version: 1

handlers:
– url: /.*
script: helloworld.php

 

 

Now run your application with this command

sudo python dev_appserver.py –port=9999 –php_executable_path=/usr/bin/php5-cgi helloworld/

Now open your browser and enter this address

localhost:9999/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s