SlideShare a Scribd company logo
PHP on Google App Engine

                        Even after several years of public requests for opening App Engine ports
                        for PHP programmers Google hasnt done much for it. But as well as Ruby
                        is working on App Engine with Java, so is PHP possible using Caucho's
                        Quercus Java implementation. Combining AppEngine and Quercus is
                        little tricky at the moment. Information is spread all over the net and often
                        is not using the latest packages. Thats why you may find next easy steps
                        welcome.

Components needed

      Java Development Kit (1.6)
      Google Application Engine Software Development Kit (1.4.0)
      Quercus & Resin Java-PHP5 bridge by Caucho (4.0)

Downloads

   1. Download JDK6 if you dont have it. Apple has its own fork of JDK for MacOS X and
      version 6 is already on basic operating system installation. For earlier versions you get the
      most recent help from Google.
   2. Download custom PHP on Google App Engine installation package. Unzip to some place on
      your computer. Package size is 47.4Mb.

You can get all components on package separately, but if you want easy way, I recommend
downloading custom installation package for hassle free deployment. In case you want to make
your own setup, its all here:

      Download AppEngine. Choose Java version instead of Python version.
      Download Quercus. Get the latest war or source.
      See some instruction from this blog to make them work together.

Configure & Deploy

With JDK6 you need to follow their install instructions. Most probably you will have JDK already
installed on your computer. Then follow these steps:

   1. Create your application on Google: http://appengine.google.com/. Take the name of the
      application for the next steps.
   2. Get PHP on Google App Engine and upzip if you didnt already
   3. Open ./war/appengine-web.xml file from unzipped directory and edit 3rd line:
      <application>my-application-id</application>

      to contain your application id.
   4. Open console and go to the unzipped directory called "blankapp":
      cd /path/to/blankapp/

   5. Run the deployment code for mac/linux:
sh ./appengine-java-sdk-1.4.0/bin/appcfg.sh 
              --enable_jar_splitting update ./war

      or run the deployment code for windows:
      ./appengine-java-sdk-1.4.0/bin/appcfg.cmd 
            --enable_jar_splitting update ./war

   6. Give your Google account username and password.
   7. Point your browser to your application root:
      http://my-application-id.appspot.com

And thats it! See working example from: http://blankapp.appspot.com and notice the content of
phpinfo() as an evidence of successful operation. Of course now you want to create the greatest
PHP application on planet using scaleable, robust and secure Google clouds. Please note that there
are some major and lots of minor restriction on Google platform you cannot do. You probably
need to test & test & test to know all the small quirks, but hey, that is programmer's life! Happy
learning and coding!

More Related Content

PDF
Google Glass Mirror API Setup
Diana Michelle
 
PPTX
Django simplified : by weever mbakaya
Mbakaya Kwatukha
 
PPTX
Introduction of laravel framework.
Omid Nikrah
 
PPTX
Python Programming Essentials - M29 - Python Interpreter and Files
P3 InfoTech Solutions Pvt. Ltd.
 
PPTX
Modern web app with REACT
AndryRajohnson
 
PPTX
Facebook appsincloud
Kirsten Hunter
 
PDF
‘Hello, world!’ application how to dockerize golang application
Katy Slemon
 
PPTX
Maven 3 New Features
Stefan Scheidt
 
Google Glass Mirror API Setup
Diana Michelle
 
Django simplified : by weever mbakaya
Mbakaya Kwatukha
 
Introduction of laravel framework.
Omid Nikrah
 
Python Programming Essentials - M29 - Python Interpreter and Files
P3 InfoTech Solutions Pvt. Ltd.
 
Modern web app with REACT
AndryRajohnson
 
Facebook appsincloud
Kirsten Hunter
 
‘Hello, world!’ application how to dockerize golang application
Katy Slemon
 
Maven 3 New Features
Stefan Scheidt
 

What's hot (20)

PPTX
Python/Flask Presentation
Parag Mujumdar
 
PPTX
Flask
Mamta Kumari
 
PDF
Phalcon / Zephir Introduction at PHPConfTW2013
Rack Lin
 
PDF
The Ring programming language version 1.10 book - Part 5 of 212
Mahmoud Samir Fayed
 
PPTX
The Power of HTML5 Offline: Mobile and More!
FITC
 
PPTX
Google Apps
Regina Hildebrand Poggio
 
PDF
Annotation processing
Felipe Theodoro
 
PPT
Tanvir Afzal: Selenium
SQABD
 
PPT
Selenium
tanvir afzal
 
PPTX
What have you learned about technologies
rf00532657
 
PDF
Plone and docker
Alin Voinea
 
PDF
Athena by OLX
Pedro Proença
 
PDF
Php phalcon - Another approach to develop website - Techcamp Saigon 2014
Minh Quang Trần
 
PDF
One-Click Deployment with Jenkins
Mayflower GmbH
 
ODP
How I built web services in CakePHP
David Yell
 
KEY
Philip Arthur Moore: Best Practices — On Breaking and Fixing WordPress Themes
Philip Arthur Moore
 
PDF
Laravel 5.4
Nisha Patel
 
PDF
Grunt Talk Given at Ottawa JS
Fabien Doiron
 
ODP
PHP Berkshire October 2015
David Yell
 
PPTX
Expose web service
Son Nguyen
 
Python/Flask Presentation
Parag Mujumdar
 
Phalcon / Zephir Introduction at PHPConfTW2013
Rack Lin
 
The Ring programming language version 1.10 book - Part 5 of 212
Mahmoud Samir Fayed
 
The Power of HTML5 Offline: Mobile and More!
FITC
 
Annotation processing
Felipe Theodoro
 
Tanvir Afzal: Selenium
SQABD
 
Selenium
tanvir afzal
 
What have you learned about technologies
rf00532657
 
Plone and docker
Alin Voinea
 
Athena by OLX
Pedro Proença
 
Php phalcon - Another approach to develop website - Techcamp Saigon 2014
Minh Quang Trần
 
One-Click Deployment with Jenkins
Mayflower GmbH
 
How I built web services in CakePHP
David Yell
 
Philip Arthur Moore: Best Practices — On Breaking and Fixing WordPress Themes
Philip Arthur Moore
 
Laravel 5.4
Nisha Patel
 
Grunt Talk Given at Ottawa JS
Fabien Doiron
 
PHP Berkshire October 2015
David Yell
 
Expose web service
Son Nguyen
 
Ad

Viewers also liked (11)

PDF
Java application-development
Deepika Chaudhary
 
DOCX
CV_Tarun Jha_Final
Tarun Jha
 
PDF
J2 Se 5.0 Name And Version Change
white paper
 
DOCX
Hemant Ajwani_10725706
Hemant Ajwani
 
PDF
CV of Jafsher
Jafsher Rahman
 
DOC
Manoj CV
Manoj sah
 
DOCX
JDK,JRE,JVM
Cognizant
 
DOCX
Poorna Hadoop
Poornachandrarao Kommana
 
DOC
Rushabh_Doshi_1_
Rushabh Doshi
 
DOC
Shrilesh kathe 2017
Shrilesh Kathe
 
Java application-development
Deepika Chaudhary
 
CV_Tarun Jha_Final
Tarun Jha
 
J2 Se 5.0 Name And Version Change
white paper
 
Hemant Ajwani_10725706
Hemant Ajwani
 
CV of Jafsher
Jafsher Rahman
 
Manoj CV
Manoj sah
 
JDK,JRE,JVM
Cognizant
 
Rushabh_Doshi_1_
Rushabh Doshi
 
Shrilesh kathe 2017
Shrilesh Kathe
 
Ad

Similar to PHP on Google App Engine (20)

PDF
Google app engine development with java and php
Samuel Okoroafor
 
PPTX
Google App Engine for PHP
Eric Johnson
 
PDF
Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...
Naga Rohit
 
PPT
Google app engine
shreyashsrs66
 
PDF
appengine ja night #25 Google App Engine for PHP (English)
Ryo Yamasaki
 
PDF
GAE for PHP - 10 Min to Learn
Chen Yi-Huan
 
PPTX
Дмитрий Тарасов: Google App Engine & PHP SDK
Oleg Poludnenko
 
PDF
What is Google App Engine?
weschwee
 
PDF
Deploy a PHP App on Google App Engine
Michele Orselli
 
PPT
Google App Engine - Overview #1
Kay Kim
 
PPT
APP engine regarding Google app engine presentation
soundharya59
 
PPT
App_Engine_PPT.ppt
ArunPrakash330
 
PDF
Google App Engine: For PHP Developers
Abu Ashraf Masnun
 
PPT
App_Engine_PPT.ppt
Pikachu925105
 
PPT
App_Engine_PPT..........................
HassamShahid2
 
PDF
Google app-engine-cloudcamplagos2011
Opevel
 
PPT
GDG DevFest 2013 - PHP Web Apps on Google Cloud
Bhavik Shah
 
PPTX
Deploying applications to Cloud with Google App Engine
Alexander Zamkovyi
 
PPTX
Google app engine
Renjith318
 
Google app engine development with java and php
Samuel Okoroafor
 
Google App Engine for PHP
Eric Johnson
 
Introduction to Google App Engine - Naga Rohit S [ IIT Guwahati ] - Google De...
Naga Rohit
 
Google app engine
shreyashsrs66
 
appengine ja night #25 Google App Engine for PHP (English)
Ryo Yamasaki
 
GAE for PHP - 10 Min to Learn
Chen Yi-Huan
 
Дмитрий Тарасов: Google App Engine & PHP SDK
Oleg Poludnenko
 
What is Google App Engine?
weschwee
 
Deploy a PHP App on Google App Engine
Michele Orselli
 
Google App Engine - Overview #1
Kay Kim
 
APP engine regarding Google app engine presentation
soundharya59
 
App_Engine_PPT.ppt
ArunPrakash330
 
Google App Engine: For PHP Developers
Abu Ashraf Masnun
 
App_Engine_PPT.ppt
Pikachu925105
 
App_Engine_PPT..........................
HassamShahid2
 
Google app-engine-cloudcamplagos2011
Opevel
 
GDG DevFest 2013 - PHP Web Apps on Google Cloud
Bhavik Shah
 
Deploying applications to Cloud with Google App Engine
Alexander Zamkovyi
 
Google app engine
Renjith318
 

Recently uploaded (20)

PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
Software Development Methodologies in 2025
KodekX
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
Doc9.....................................
SofiaCollazos
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Software Development Company | KodekX
KodekX
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 

PHP on Google App Engine

  • 1. PHP on Google App Engine Even after several years of public requests for opening App Engine ports for PHP programmers Google hasnt done much for it. But as well as Ruby is working on App Engine with Java, so is PHP possible using Caucho's Quercus Java implementation. Combining AppEngine and Quercus is little tricky at the moment. Information is spread all over the net and often is not using the latest packages. Thats why you may find next easy steps welcome. Components needed Java Development Kit (1.6) Google Application Engine Software Development Kit (1.4.0) Quercus & Resin Java-PHP5 bridge by Caucho (4.0) Downloads 1. Download JDK6 if you dont have it. Apple has its own fork of JDK for MacOS X and version 6 is already on basic operating system installation. For earlier versions you get the most recent help from Google. 2. Download custom PHP on Google App Engine installation package. Unzip to some place on your computer. Package size is 47.4Mb. You can get all components on package separately, but if you want easy way, I recommend downloading custom installation package for hassle free deployment. In case you want to make your own setup, its all here: Download AppEngine. Choose Java version instead of Python version. Download Quercus. Get the latest war or source. See some instruction from this blog to make them work together. Configure & Deploy With JDK6 you need to follow their install instructions. Most probably you will have JDK already installed on your computer. Then follow these steps: 1. Create your application on Google: http://appengine.google.com/. Take the name of the application for the next steps. 2. Get PHP on Google App Engine and upzip if you didnt already 3. Open ./war/appengine-web.xml file from unzipped directory and edit 3rd line: <application>my-application-id</application> to contain your application id. 4. Open console and go to the unzipped directory called "blankapp": cd /path/to/blankapp/ 5. Run the deployment code for mac/linux:
  • 2. sh ./appengine-java-sdk-1.4.0/bin/appcfg.sh --enable_jar_splitting update ./war or run the deployment code for windows: ./appengine-java-sdk-1.4.0/bin/appcfg.cmd --enable_jar_splitting update ./war 6. Give your Google account username and password. 7. Point your browser to your application root: http://my-application-id.appspot.com And thats it! See working example from: http://blankapp.appspot.com and notice the content of phpinfo() as an evidence of successful operation. Of course now you want to create the greatest PHP application on planet using scaleable, robust and secure Google clouds. Please note that there are some major and lots of minor restriction on Google platform you cannot do. You probably need to test & test & test to know all the small quirks, but hey, that is programmer's life! Happy learning and coding!