Google PHP SDK

114 views
Skip to first unread message

mohamed hassan

unread,
Jun 16, 2015, 9:13:04 AM6/16/15
to gce-dis...@googlegroups.com
Hello ,

Please i want to know how can i install Google PHP SDK on online Google Compute Engine . Please provide me in details how can i do that .
 
Thanks .

Kamran (Google Cloud Support)

unread,
Jun 16, 2015, 10:16:45 AM6/16/15
to gce-dis...@googlegroups.com, mohamedh...@gmail.com

Hi Mohamed, 

What is the operating system of your GCE VM instance? 

In order to install Google App Engine SDK for PHP, please visit the link [1], click on "Google App Engine SDK for PHP" button and follow the instructions to install and configure the SDK for your operating system of the GCE instance.

Sincerely,

Kamran (Google Cloud Support)

unread,
Jun 16, 2015, 12:08:11 PM6/16/15
to gce-dis...@googlegroups.com, mohamedh...@gmail.com

I'll list the steps that you can take to install Google App Engine SDK for PHP on a CentOS 6.x Linux machine:

1. Download and unzip the App Engine PHP SDK

$ unzip google_appengine_1.9.22.zip


2. Add the google_appengine directory to your PATH (modify the /path/to/google_appengine to where google_appengine is unzipped)

$ export PATH=$PATH:/path/to/google_appengine/


3. Install Python 2.7.10

$ sudo yum install gcc
$ sudo yum install sqlite-devel
$ tar xzf Python-2.7.10.tgz
$ cd Python-2.7.10
$ ./configure
$ sudo make install
$ cd -

Check the Python Version
# python2.7 -V
Python 2.7.10


4. Install PHP 5.5

$ sudo yum install mysql mysql-devel mysql-lib libxml2-devel
$ tar -xvf php-5.5.26.tar.gz
$ cd php-5.5.26
$ ./configure --enable-bcmath --with-mysql --with-pdo-mysql
$ sudo make install
$ cd -

Check the PHP Version
$ php -v
PHP 5.5.26 (cli) 

5. Install MySQL server on your machine:

$ sudo yum install mysql-server
$ sudo /sbin/service mysqld start

When starting the MySQL server, note the password for the MySQL root user; make sure that you remember it.

Sincerely,

Kamran


On Tuesday, June 16, mohamed hassan wrote: 
Salutations Kamran ,

Thanks for your reply . I am using Centos 6.5 Os and i need to know how to install Google php sdk online on my GCE . i tried to do it and i failed .

Thanks .

mohamed hassan

unread,
Jun 16, 2015, 2:05:20 PM6/16/15
to gce-dis...@googlegroups.com, khas...@google.com
Really thanks kamran I really appreciate that . Please last thing can please how can I include that in my code after installing php sdk ? 

Really thanks kamran


On Tuesday, June 16, 2015, Kamran (Google Cloud Support) <khas...@google.com> wrote:

I'll list the steps that you can take to install Google App Engine SDK for PHP on a CentOS 6.x Linux machine:

1. Download and unzip the App Engine PHP SDK

$ unzip google_appengine_1.9.22.zip


2. Add the google_appengine directory to your PATH (modify the /path/to/google_appengine to where google_appengine is unzipped)

$ export PATH=$PATH:/path/to/google_appengine/


3. Install Python 2.7.10

$ sudo yum install gcc
$ sudo yum install sqlite-devel
$ wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
$ tar xzf Python-2.7.10.tgz
$ cd Python-2.7.10
$ ./configure
$ sudo make install
$ cd -

Check the Python Version
# python2.7 -V
Python 2.7.9


4. Install PHP 5.5

$ sudo yum install mysql mysql-devel mysql-lib libxml2-devel
$ tar -xvf php-5.5.26.tar.gz
$ cd php-5.5.26
$ ./configure --enable-bcmath --with-mysql --with-pdo-mysql
$ sudo make install
$ cd -

Check the PHP Version
$ php -v
PHP 5.5.26 (cli) 

5. Install MySQL server on your machine:

$ sudo yum install mysql-server
$ sudo /sbin/service mysqld start

When starting the MySQL server, note the password for the MySQL root user; make sure that you remember it.

Sincerely,

Kamran


On Tuesday, June 16, mohamed hassan wrote: 
Salutations Kamran ,

Thanks for your reply . I am using Centos 6.5 Os and i need to know how to install Google php sdk online on my GCE . i tried to do it and i failed .

Thanks .

--
© 2014 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to a topic in the Google Groups "gce-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gce-discussion/pR8t7waCGpU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gce-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to gce-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/98c2e410-7598-4fcd-983f-38c4bee93e3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kamran (Google Cloud Support)

unread,
Jun 16, 2015, 3:12:56 PM6/16/15
to gce-dis...@googlegroups.com, mohamedh...@gmail.com, khas...@google.com

Hi Mohamed,

I've updated the steps for installing Python. Python 2.7.10 is a bug fix release of the Python 2.7.x series [1]. I also added the step for installing 'sqlite-devel' which is needed for running dev_appserver.py:

3. Install Python 2.7.10

$ sudo yum install gcc
$ sudo yum install sqlite-devel
$ tar xzf Python-2.7.10.tgz
$ cd Python-2.7.10
$ ./configure
$ sudo make install
$ cd -

After the installation completed, you can develop and test your GAE PHP projects. In order to test your GAE development environment, go through the article [2] and create a simple script:

1. Create a directory called helloworld.
2. Inside the directory create two files:

a)  app.yaml with the following contents:

application: helloworld
version
: 1
runtime
: php55
api_version
: 1

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

b)  helloworld.php with the following contents:
<?php
  echo
'Hello, World!';

Then use this command to run your application on development server:
google_appengine/dev_appserver.py --php_executable_path=/usr/local/bin/php-cgi helloworld/
and visit  http://localhost:8080/  in your default web browser or open port 8080 on your GCE firewall to test it from a different computer.
For questions regarding Google App Engine, please post your inquiries on the GAE forum: https://groups.google.com/forum/#!forum/google-appengine 

Sincerely,

Kamran

mohamed hassan

unread,
Jun 16, 2015, 3:53:57 PM6/16/15
to Kamran (Google Cloud Support), gce-dis...@googlegroups.com
Thanks kamran for your reply but I don't know what does local host means here . What if I want to test it online using real domain ?


On Tuesday, June 16, 2015, Kamran (Google Cloud Support) <khas...@google.com> wrote:

Hi Mohamed,

I've updated the steps for installing Python 2.7.10 Python 2.7.10 is a bug fix release of the Python 2.7.x series [1]. I also added the step for installing 'sqlite-devel' which is needed for running dev_appserver.py:
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.

---
You received this message because you are subscribed to a topic in the Google Groups "gce-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gce-discussion/pR8t7waCGpU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gce-discussio...@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.

--
© 2014 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.

---
You received this message because you are subscribed to a topic in the Google Groups "gce-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gce-discussion/pR8t7waCGpU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gce-discussio...@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/60e00851-6683-4fb8-a5df-249da44064dc%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages