[google-appengine] Re: Google App Engine Flexible Environment tmp folder is not writable

2018-02-02 Thread Dhandapani Sattanathan
Yes Shaharia Azam, It is working fine now.

Thanks for your valuable reply. It solved the problem.

On Friday, February 2, 2018 at 5:03:57 PM UTC+5:30, Shaharia Azam wrote:
>
> So it's working good now?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7a136f61-6529-45c3-9925-dc9fa030d11c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google App Engine Flexible Environment tmp folder is not writable

2018-02-01 Thread Dhandapani Sattanathan
Thanks, Kenworth & Shaharia Azam for your reply.


I tried with sys_get_temp_dir() function in GAE Flexible Environment, 

I changed like index.php and Cache.php in Mpdf. Now /tmp writable in GAE FE.

index.php





I did modification in mpdf Cache.php

public function __construct($basePath, $cleanupInterval = 3600)
 {
 $basePath=getenv('MPDF_TEMP_PATH');
 if (!is_writable($basePath)
 && is_writable(dirname($basePath))
 && !file_exists($basePath)) {
 mkdir($basePath, 0777, true);
 }


 if (!is_writable($basePath)) {
 throw new \Mpdf\MpdfException(sprintf('Temporary files directory "%s" is 
not writable', $basePath));
 }


 $this->basePath = $basePath;
 $this->cleanupInterval = $cleanupInterval;
 }




On Friday, February 2, 2018 at 5:15:28 AM UTC+5:30, Shaharia Azam wrote:
>
> Did you try changing the temporary path with "/tmp"? This "/tmp" should be 
> writable or use php sys_get_temp_dir() function in your GAE flexible 
> environment so you will get a temporary directory file location that is 
> writable.
>
>
>
> On Thursday, February 1, 2018 at 12:09:10 PM UTC+6, Dhandapani Sattanathan 
> wrote:
>>
>> Hi,
>>
>> I m using more than 1 years Google App engine Flexible Environment. 
>>
>> My Application used mpdf API using PHP.The latest version of mpdf changed 
>> dynamically create temp folder for font creation and image.
>>
>> In my Development server This one working fine.
>>
>> But When I use Google App Engine Flexible environment, I got this error "PHP 
>> message: PHP Fatal error: Uncaught Mpdf\MpdfException: Temporary files 
>> directory "/app/web/mpdf/vendor/mpdf/mpdf/src/Config/../../tmp" is not 
>> writable in /app/web/mpdf/vendor/mpdf/mpdf/src/Cache.php:23"
>>
>> This is not mpdf issue. I dont know How to give write permission for this 
>> tmp folder in Google App engine Flexible Environment.
>>
>> You can see my sample here 
>> <https://docs.google.com/spreadsheets/d/1jSui9qTvjb6EUkfpOvxEc46c_7rbeAsHhr054jF2_Tg/edit#gid=0>with
>>  
>> detailed log.
>>
>> Plz help me how to solve this?
>>
>> Is it possible can use the latest mpdf in GAE FE?
>>
>> Thanks,
>> SN
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/83d57d65-4c29-46ef-8e0e-d933de0e8484%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google App Engine Flexible Environment tmp folder is not writable

2018-01-31 Thread Dhandapani Sattanathan
Hi,

I m using more than 1 years Google App engine Flexible Environment. 

My Application used mpdf API using PHP.The latest version of mpdf changed 
dynamically create temp folder for font creation and image.

In my Development server This one working fine.

But When I use Google App Engine Flexible environment, I got this error "PHP 
message: PHP Fatal error: Uncaught Mpdf\MpdfException: Temporary files 
directory "/app/web/mpdf/vendor/mpdf/mpdf/src/Config/../../tmp" is not 
writable in /app/web/mpdf/vendor/mpdf/mpdf/src/Cache.php:23"

This is not mpdf issue. I dont know How to give write permission for this 
tmp folder in Google App engine Flexible Environment.

You can see my sample here 
with
 
detailed log.

Plz help me how to solve this?

Is it possible can use the latest mpdf in GAE FE?

Thanks,
SN

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/baa09545-2557-4d43-b9f0-5ba105744ab8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Codeigniter V 3.6.1 build failed in google app engine flexible environment

2017-12-22 Thread Dhandapani Sattanathan
Thanks George,

Before upgrade PHP 7.2, to use the latest version of PHP in GAE using like 
this.GAE Flexible environment Codeigniter worked fine.

"require": {
 "php": "7.1.*"
 },

Now it using PHP 7.2 by default.

To use a particular web framework, just add it to composer.json:

{
"require": {
"codeigniter/codeigniter": " ^3.1.6"
}
}
I got issues. So I tried like this composer.json, I updated version php 
>=7.2.0

{
"description": "The CodeIgniter framework",
"name": "codeigniter/framework",
"type": "project",
"homepage": "https://codeigniter.com;,
"license": "MIT",
"support": {
"forum": "http://forum.codeigniter.com/;,
"wiki": "https://github.com/bcit-ci/CodeIgniter/wiki;,
"slack": "https://codeigniterchat.slack.com;,
"source": "https://github.com/bcit-ci/CodeIgniter;
},
"require": {
"php": ">=7.2.0"
},
"suggest": {
"paragonie/random_compat": "Provides better randomness in PHP 5.x"
},
"require-dev": {
"mikey179/vfsStream": "1.1.*",
"phpunit/phpunit": "4.* || 5.*"
}
}

Now CodeIgniter builds successfully in GAE flexible environment.

On Thursday, December 21, 2017 at 10:08:08 PM UTC+5:30, George (Cloud 
Platform Support) wrote:
>
> Hello Dhandapani,
>
> To use a particular web framework, just add it to composer.json:
>
> {
> "require": {
> "symfony/symfony": " ^3.0"
> }
> }
>
> In your case, this statement should refer to Codeigniter, not Symfony. 
>
> There are quite a few references to Symfony in the error messages 
> displayed during building. Did you attempt to install that framework? 
>
> Is there any particular reason why you choose PHP 7.1 in your 
> composer.json file? 
>
> "require": {
>  "php": "7.1.*"
>  },
>
> If you don't specify any version in composer.json, 7.2 gets installed. By 
> default, the PHP runtime uses PHP 7.2, but you should explicitly declare 
> your PHP version in the composer.json file to prevent your application from 
> being automatically upgraded when a new version of PHP becomes available. 
>
> You may benefit from more related detail, if you read the "Using PHP 
> Libraries" documentation page 
> 
> . 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dcbb50e7-e503-40ad-8e95-6c8036ca6f26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Codeigniter V 3.6.1 build failed in google app engine flexible environment

2017-12-21 Thread Dhandapani Sattanathan


Hi,


I could not deploy CI(Codeignter framework) in app engine flexible 
environment.This one deployed and build successfully past 1 years. Don't know 
what newly changed in google app engine flexible with CI framework.


Download the latest version CI 3.6.1 in this url - 
https://github.com/bcit-ci/CodeIgniter/releases


composer.json


{
 "description": "The CodeIgniter framework",
 "name": "codeigniter/framework",
 "type": "project",
 "homepage": "https://codeigniter.com;,
 "license": "MIT",
 "support": {
 "forum": "http://forum.codeigniter.com/;,
 "wiki": "https://github.com/bcit-ci/CodeIgniter/wiki;,
 "irc": "irc://irc.freenode.net/codeigniter",
 "source": "https://github.com/bcit-ci/CodeIgniter;
 },
 "require": {
 "php": "7.1.*"
 },
 "suggest": {
 "paragonie/random_compat": "Provides better randomness in PHP 5.x"
 },
 "require-dev": {
 "mikey179/vfsStream": "1.1.*",
 "phpunit/phpunit": "4.* || 5.*"
 }
}


app.yaml

runtime: php 
env: flex 

runtime_config: 
   document_root: . 

manual_scaling: 
   instances: 1 

handlers:

- url: .*
  script: index.php

I got this error log after build failed

starting build "52af3cdc-055e-478b-8f2a-19e8ddbfce55" FETCHSOURCE Fetching 
storage object: 
gs://staging.sample.appspot.com/us.gcr.io/sample/appengine/ci.20171221t152021:latest#1513849896698778
 
Copying 
gs://staging.sample.appspot.com/us.gcr.io/sample/appengine/ci.20171221t152021:latest#1513849896698778...
 
/ [0 files][ 0.0 B/ 2.1 MiB] / [1 files][ 2.1 MiB/ 2.1 MiB] Operation 
completed over 1 objects/2.1 MiB. BUILD Starting 
Step #0 Step #0: Pulling image: 
gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:88d42e0b05a9c68586389a534be3f7756c65a2fb7a7051eaf3eeb8455fe6e4a4
 

Step #0: 
sha256:88d42e0b05a9c68586389a534be3f7756c65a2fb7a7051eaf3eeb8455fe6e4a4: 
Pulling from gcp-runtimes/php/gen-dockerfile 
Step #0: Digest: 
sha256:88d42e0b05a9c68586389a534be3f7756c65a2fb7a7051eaf3eeb8455fe6e4a4 
Step #0: Status: Downloaded newer image for 
gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:88d42e0b05a9c68586389a534be3f7756c65a2fb7a7051eaf3eeb8455fe6e4a4
 

Step #0: + php /builder/create_dockerfile.php create --php72-image 
gcr.io/google-appengine/php72@sha256:1d7320a8535e8de3c61860039d803e3c001bfde03cea35f0b23de1ca5e3f25e7
 
--php71-image 
gcr.io/google-appengine/php71@sha256:018752b8603f06916979b57a2d216f6ad3dd5a9ff344df583e5197edfe41dfd1
 
--php70-image 
gcr.io/google-appengine/php70@sha256:cf9060fb09d4488c720ec87ffac4d101ae24d70bf01e9d6a80cc10274e5b23ce
 
--php56-image 
gcr.io/google-appengine/php56@sha256:bc540bab322d3a1de6059b7a4e981f4a80fe619ac09da391615896255b80ff55
 

Step #0: Step #0: Warning: array_key_exists() expects parameter 2 to be 
array, null given in /builder/src/Builder/GenFilesCommand.php on line 216 
Step #0: Step #0: Warning: array_key_exists() expects parameter 2 to be 
array, null given in /builder/src/Builder/GenFilesCommand.php on line 159 
Step #0: Step #0: Fatal error: Uncaught Error: Unsupported operand types in 
/builder/src/Builder/GenFilesCommand.php:261 
Step #0: Stack trace: 
Step #0: #0 /builder/src/Builder/GenFilesCommand.php(148): 
Google\Cloud\Runtimes\Builder\GenFilesCommand->createDockerfile('gcr.io/google-a...')
 

Step #0: #1 /builder/vendor/symfony/console/Command/Command.php(252): 
Google\Cloud\Runtimes\Builder\GenFilesCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput),
 
Object(Symfony\Component\Console\Output\ConsoleOutput)) 
Step #0: #2 /builder/vendor/symfony/console/Application.php(936): 
Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput),
 
Object(Symfony\Component\Console\Output\ConsoleOutput)) 
Step #0: #3 /builder/vendor/symfony/console/Application.php(240): 
Symfony\Component\Console\Application->doRunCommand(Object(Google\Cloud\Runtimes\Builder\GenFilesCommand),
 
Object(Symfony\Component\Console\Input\ArgvInput), 
Object(Symfony\Component\Console\Output\ConsoleOutput)) 
Step #0: #4 /builder/vendor/symfony/console/Application.php(148): 
Symfony\Component\Conso in /builder/src/Builder/GenFilesCommand.php on line 
261 
Step #0: [21-Dec-2017 09:51:47 UTC] PHP Warning: array_key_exists() expects 
parameter 2 to be array, null given in 
/builder/src/Builder/GenFilesCommand.php on line 216 Step #0: [21-Dec-2017 
09:51:47 UTC] PHP Warning: array_key_exists() expects parameter 2 to be 
array, null given in /builder/src/Builder/GenFilesCommand.php on line 159 
Step #0: [21-Dec-2017 09:51:47 UTC] PHP Fatal error: Uncaught Error: 
Unsupported operand types in /builder/src/Builder/GenFilesCommand.php:261 
Step #0: Stack trace: Step #0: #0 
/builder/src/Builder/GenFilesCommand.php(148): 
Google\Cloud\Runtimes\Builder\GenFilesCommand->createDockerfile('gcr.io/google-a...')
 
Step #0: #1 /builder/vendor/symfony/console/Command/Command.php(252): 
Google\Cloud\Runtimes\Builder\GenFilesCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput),
 
Object(Symfony\Component\Console\Output\ConsoleOutput)) 
Step #0: 

Re: [google-appengine] Codeigniter session using database not working in Google App Engine Flexible Environment

2017-05-05 Thread Dhandapani Sattanathan
Thanks, Takashi,

I tried with CI 3.1.4 with sessions. I changed base URL for GAE. Previous 
versions can work without changing BASE URL.

I added  mysqli.default_socket= '/cloudsql/CONNECTION_NAME', As per reply.

*In the view I got issues, I fixed, Now working fine CI SESSIONS IN FE.*

*thanks for all Support. If I get any other issues Will contact you*


On Thursday, May 4, 2017 at 11:03:51 AM UTC+5:30, Dhandapani Sattanathan 
wrote:
>
> Hi Takashi,
>
> I enabled Cloud SQL API & added beta_settings in my app.yaml.
>
> I m using mysqli. I didn't used mysqli.default_socket= 
> '/cloudsql/CONNECTION_NAME in php.ini.
>
> Also, I used CodeIgniter 3.0.0. I 'll try with CodeIgniter 3.1.4 with 
> session & mysqli.default_socket in php.ini and Let you know the status.
>
> Thanks for immediate reply 
>
> -SN
>
> On Thursday, May 4, 2017 at 1:52:46 AM UTC+5:30, Takashi Matsuo (Google) 
> wrote:
>>
>>
>> Hi Dhandapani,
>>
>> Just a quick note, I downloaded CodeIgniter 3.1.4 and the session with 
>> the database backed by CloudSQL v2 works.
>>
>> Potential pitfalls are:
>>
>>- You have to enable Cloud SQL API 
>>
>> <https://console.cloud.google.com/apis/api/sqladmin.googleapis.com/overview>
>>- You have to add beta_settings in your app.yaml
>>```
>>beta_settings:
>>  cloud_sql_instances: "CONNECTION_NAME"
>>```
>>- If you're using mysqli, put the default socket in php.ini
>>```
>>mysqli.default_socket= '/cloudsql/CONNECTION_NAME'
>>```
>>
>> Hope it helps!
>>
>> On Wed, May 3, 2017 at 10:32 AM Takashi Matsuo <tma...@google.com> wrote:
>>
>>>
>>> Hi Dhandapani,
>>>
>>> Are you able to connect to the database in other part of your app?
>>> Are there any suspicious logs?
>>>
>>> On Wed, May 3, 2017 at 7:59 AM Justin Beckwith <beck...@google.com> 
>>> wrote:
>>>
>>>> + a few folks
>>>>
>>>> On Wed, May 3, 2017 at 2:51 AM, Dhandapani Sattanathan <
>>>> dhandapani@ssomens.com> wrote:
>>>>
>>>>> I m migration my CRM application developed in CodeIgniter Framework 
>>>>> from GAE SE to Google App Engine flexible environment.
>>>>>
>>>>> UserService not available in GAE FE.So I used Integrating Google 
>>>>> Sign-In into your web app 
>>>>> <https://developers.google.com/identity/sign-in/web/sign-in>.
>>>>>
>>>>> I need session so I used the below.I am using CI_VERSION', '3.0.0
>>>>>
>>>>>
>>>>> application/config/config.php
>>>>> $config['sess_driver'] = 'database';
>>>>> $config['sess_cookie_name'] = 'ci_session';
>>>>> $config['sess_expiration'] = 7200;
>>>>> $config['sess_save_path'] = 'ci_sessions';
>>>>> $config['sess_match_ip'] = TRUE;
>>>>> $config['sess_time_to_update'] = 300;
>>>>> $config['sess_regenerate_destroy'] = FALSE;
>>>>>
>>>>> Using the below query I created the ci_sessions table in second 
>>>>> generation cloud SQL.
>>>>>
>>>>>
>>>>> CREATE TABLE IF NOT EXISTS `ci_sessions` (
>>>>> `id` varchar(40) NOT NULL,
>>>>> `ip_address` varchar(45) NOT NULL,
>>>>> `timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
>>>>> `data` blob NOT NULL,
>>>>> PRIMARY KEY (id),
>>>>> KEY `ci_sessions_timestamp` (`timestamp`)
>>>>> );
>>>>>
>>>>>
>>>>> I can get session userstamp in ctrl_Index.php
>>>>>
>>>>>
>>>>> application/controllers/Ctrl_Index.php
>>>>> >>>> defined('BASEPATH') OR exit('No direct script access allowed');
>>>>>
>>>>> class Ctrl_Index extends CI_Controller {
>>>>>
>>>>> public function index()
>>>>> {
>>>>> $userstamp=base64_decode($_GET['UserStamp']);
>>>>> $this->session->set_userdata('UserStamp', $userstamp);
>>>>> echo $this->session->userdata('UserStamp'); // here session id came.
>>>>> $this->load->view('Vw_Menu'); // Redirect to vw_menu page.
>>>>>
>>>>> }
>>>>> }
>>>>>
>>>>> ?>
>>>>>
>>>>>
>>>>> applica

[google-appengine] Re: Cron job failed in Google App Engine Flexible environment

2017-05-05 Thread Dhandapani Sattanathan
Thanks, Jun, Attila-Mihaly Balazs,

*Cron jobs working fine. I added this in crontest.php file *$_SERVER[
'HTTP_X_APPENGINE_CRON'] =true;.

Then I added this socket mysqli.default_socket= '/cloudsql/CONNECTION_NAME' 
in php.ini.


*After that Cron job working fine using core PHP projects.*
On Wednesday, May 3, 2017 at 9:23:52 PM UTC+5:30, Jun (Cloud Platform 
Support) wrote:
>
> Hi Dhandapani,
>
> For now, I suggest that you try the suggestion by Attila-Mihaly given the 
> 404 error you're seeing. 
>
> If it does not resolve the issue, then it is recommended that you open an 
> issue at the Issue Tracker 
> <https://cloud.google.com/support/docs/issue-trackers> report with your 
> project-id, and the config files 
> <https://docs.google.com/spreadsheets/d/1XxyZBWussxx5zaGZLKbfTpevmNUw_alIGn0XfYK5iCQ/edit#gid=0>
>  
> since Google Groups is meant for general product discussions and not for 
> technical support.
>
> - Jun
>
>
> On Wednesday, May 3, 2017 at 5:35:18 AM UTC-4, Dhandapani Sattanathan 
> wrote:
>>
>> I m migrating my PHP application from Google App engine Standard 
>> Environment to Flexible environment 
>> <https://cloud.google.com/appengine/docs/flexible/php/migrating>.
>>
>> My application working fine with database and send grid. But Cron jobs 
>> are failed.
>>
>> I could not find what I missed to run a Cron job. You can see my 
>> application in [1] 
>> <https://docs.google.com/spreadsheets/d/1XxyZBWussxx5zaGZLKbfTpevmNUw_alIGn0XfYK5iCQ/edit#gid=0>.
>>  
>> I got HTTP/1/1 404 issues only. Below I gave the log
>>
>>
>> 18:57:00.000172.18.0.3 - - [02/May/2017:13:27:00 +] "GET 
>> /web/crontest.php HTTP/1.1" 404 162 "-" "AppEngine-Google; (+
>> http://code.google.com/appengine)" { textPayload: "172.18.0.3 - - 
>> [02/May/2017:13:27:00 +] "GET /web/crontest.php HTTP/1.1" 404 162 "-" 
>> "AppEngine-Google; (+http://code.google.com/appengine)" " insertId: 
>> "epwcgng8mcw86z" resource: {…} timestamp: "2017-05-02T13:27:00Z" labels: 
>> {…} logName: "projects/project-id/logs/appengine.googleapis.com%2Fstdout" 
>> }
>>
>> Please help me to fix this.
>>
>> Thanks in advance.
>>
>> Regards,
>>
>> SN
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/485042a1-28af-40a6-b5ee-25069456ab53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Codeigniter session using database not working in Google App Engine Flexible Environment

2017-05-03 Thread Dhandapani Sattanathan
Hi Takashi,

I enabled Cloud SQL API & added beta_settings in my app.yaml.

I m using mysqli. I didn't used mysqli.default_socket= 
'/cloudsql/CONNECTION_NAME in php.ini.

Also, I used CodeIgniter 3.0.0. I 'll try with CodeIgniter 3.1.4 with 
session & mysqli.default_socket in php.ini and Let you know the status.

Thanks for immediate reply 

-SN

On Thursday, May 4, 2017 at 1:52:46 AM UTC+5:30, Takashi Matsuo (Google) 
wrote:
>
>
> Hi Dhandapani,
>
> Just a quick note, I downloaded CodeIgniter 3.1.4 and the session with the 
> database backed by CloudSQL v2 works.
>
> Potential pitfalls are:
>
>- You have to enable Cloud SQL API 
>
> <https://console.cloud.google.com/apis/api/sqladmin.googleapis.com/overview>
>- You have to add beta_settings in your app.yaml
>```
>beta_settings:
>  cloud_sql_instances: "CONNECTION_NAME"
>```
>- If you're using mysqli, put the default socket in php.ini
>```
>mysqli.default_socket= '/cloudsql/CONNECTION_NAME'
>```
>
> Hope it helps!
>
> On Wed, May 3, 2017 at 10:32 AM Takashi Matsuo <tma...@google.com 
> > wrote:
>
>>
>> Hi Dhandapani,
>>
>> Are you able to connect to the database in other part of your app?
>> Are there any suspicious logs?
>>
>> On Wed, May 3, 2017 at 7:59 AM Justin Beckwith <beck...@google.com 
>> > wrote:
>>
>>> + a few folks
>>>
>>> On Wed, May 3, 2017 at 2:51 AM, Dhandapani Sattanathan <
>>> dhandapani@ssomens.com > wrote:
>>>
>>>> I m migration my CRM application developed in CodeIgniter Framework 
>>>> from GAE SE to Google App Engine flexible environment.
>>>>
>>>> UserService not available in GAE FE.So I used Integrating Google 
>>>> Sign-In into your web app 
>>>> <https://developers.google.com/identity/sign-in/web/sign-in>.
>>>>
>>>> I need session so I used the below.I am using CI_VERSION', '3.0.0
>>>>
>>>>
>>>> application/config/config.php
>>>> $config['sess_driver'] = 'database';
>>>> $config['sess_cookie_name'] = 'ci_session';
>>>> $config['sess_expiration'] = 7200;
>>>> $config['sess_save_path'] = 'ci_sessions';
>>>> $config['sess_match_ip'] = TRUE;
>>>> $config['sess_time_to_update'] = 300;
>>>> $config['sess_regenerate_destroy'] = FALSE;
>>>>
>>>> Using the below query I created the ci_sessions table in second 
>>>> generation cloud SQL.
>>>>
>>>>
>>>> CREATE TABLE IF NOT EXISTS `ci_sessions` (
>>>> `id` varchar(40) NOT NULL,
>>>> `ip_address` varchar(45) NOT NULL,
>>>> `timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
>>>> `data` blob NOT NULL,
>>>> PRIMARY KEY (id),
>>>> KEY `ci_sessions_timestamp` (`timestamp`)
>>>> );
>>>>
>>>>
>>>> I can get session userstamp in ctrl_Index.php
>>>>
>>>>
>>>> application/controllers/Ctrl_Index.php
>>>> >>> defined('BASEPATH') OR exit('No direct script access allowed');
>>>>
>>>> class Ctrl_Index extends CI_Controller {
>>>>
>>>> public function index()
>>>> {
>>>> $userstamp=base64_decode($_GET['UserStamp']);
>>>> $this->session->set_userdata('UserStamp', $userstamp);
>>>> echo $this->session->userdata('UserStamp'); // here session id came.
>>>> $this->load->view('Vw_Menu'); // Redirect to vw_menu page.
>>>>
>>>> }
>>>> }
>>>>
>>>> ?>
>>>>
>>>>
>>>> application/views/Vw_Menu.php
>>>> >>> ?>
>>>> 
>>>> 
>>>> https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js&quot</a>;
>>>> >
>>>> 
>>>> $(document).ready(function(){
>>>> var CONFIG_ENTRY_controller_url="<?php echo base_url(); ?>" + 
>>>> '/index.php/Ctrl_Menu/' ;
>>>> $.ajax({
>>>> type: "POST",
>>>> url':CONFIG_ENTRY_controller_url+"getSessionUserstamp",
>>>> success: function(data){
>>>> $(".preloader").hide();
>>>> var userstamp=(data);
>>>> alert(userstamp)
>>>>
>>>> });
>>>>
>>>> });
>>>> 
>>>> CI SESSION IN GAE FE
>>>> 
>>>> 
&

Re: [google-appengine] Codeigniter session using database not working in Google App Engine Flexible Environment

2017-05-03 Thread Dhandapani Sattanathan
Hi Takashi,

Yes without the session, I can connect to the database. All forms 
working.There are no suspicious logs.

On Wednesday, May 3, 2017 at 11:02:58 PM UTC+5:30, Takashi Matsuo (Google) 
wrote:
>
>
> Hi Dhandapani,
>
> Are you able to connect to the database in other part of your app?
> Are there any suspicious logs?
>
> On Wed, May 3, 2017 at 7:59 AM Justin Beckwith <beck...@google.com 
> > wrote:
>
>> + a few folks
>>
>> On Wed, May 3, 2017 at 2:51 AM, Dhandapani Sattanathan <
>> dhandapani@ssomens.com > wrote:
>>
>>> I m migration my CRM application developed in CodeIgniter Framework from 
>>> GAE SE to Google App Engine flexible environment.
>>>
>>> UserService not available in GAE FE.So I used Integrating Google 
>>> Sign-In into your web app 
>>> <https://developers.google.com/identity/sign-in/web/sign-in>.
>>>
>>> I need session so I used the below.I am using CI_VERSION', '3.0.0
>>>
>>>
>>> application/config/config.php
>>> $config['sess_driver'] = 'database';
>>> $config['sess_cookie_name'] = 'ci_session';
>>> $config['sess_expiration'] = 7200;
>>> $config['sess_save_path'] = 'ci_sessions';
>>> $config['sess_match_ip'] = TRUE;
>>> $config['sess_time_to_update'] = 300;
>>> $config['sess_regenerate_destroy'] = FALSE;
>>>
>>> Using the below query I created the ci_sessions table in second 
>>> generation cloud SQL.
>>>
>>>
>>> CREATE TABLE IF NOT EXISTS `ci_sessions` (
>>> `id` varchar(40) NOT NULL,
>>> `ip_address` varchar(45) NOT NULL,
>>> `timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
>>> `data` blob NOT NULL,
>>> PRIMARY KEY (id),
>>> KEY `ci_sessions_timestamp` (`timestamp`)
>>> );
>>>
>>>
>>> I can get session userstamp in ctrl_Index.php
>>>
>>>
>>> application/controllers/Ctrl_Index.php
>>> >> defined('BASEPATH') OR exit('No direct script access allowed');
>>>
>>> class Ctrl_Index extends CI_Controller {
>>>
>>> public function index()
>>> {
>>> $userstamp=base64_decode($_GET['UserStamp']);
>>> $this->session->set_userdata('UserStamp', $userstamp);
>>> echo $this->session->userdata('UserStamp'); // here session id came.
>>> $this->load->view('Vw_Menu'); // Redirect to vw_menu page.
>>>
>>> }
>>> }
>>>
>>> ?>
>>>
>>>
>>> application/views/Vw_Menu.php
>>> >> ?>
>>> 
>>> 
>>> https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js&quot</a>;
>>> >
>>> 
>>> $(document).ready(function(){
>>> var CONFIG_ENTRY_controller_url="<?php echo base_url(); ?>" + 
>>> '/index.php/Ctrl_Menu/' ;
>>> $.ajax({
>>> type: "POST",
>>> url':CONFIG_ENTRY_controller_url+"getSessionUserstamp",
>>> success: function(data){
>>> $(".preloader").hide();
>>> var userstamp=(data);
>>> alert(userstamp)
>>>
>>> });
>>>
>>> });
>>> 
>>> CI SESSION IN GAE FE
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>> 
>>>
>>>
>>> From Ctrl_index.php redirect to vw_menu.php session got empty.Also 
>>> ci_sessions tables ip_address saved as empty.
>>>
>>>
>>> My sample script can see here [1] 
>>> <https://docs.google.com/spreadsheets/d/1hZ2ZUlz3LSm7sxJP6LCRtKBVHkgzQ6J2Nj3xwvsipXc/edit#gid=0>,
>>>  
>>> Download Codeigniter here [2] 
>>> <https://github.com/bcit-ci/CodeIgniter/releases/tag/3.0.0> replace my 
>>> sample script.
>>>
>>>
>>> Will ci-sessions using database work in GAE FE?.Is there any other 
>>> alternative to using ci-session in GAE FE?
>>>
>>>
>>> Maybe I missed configuring in GAE FE to work ci_session?
>>>
>>>
>>> Please help me.
>>>
>>>
>>> Thanks in advance
>>>
>>>
>>> SN
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-appengi...@googlegroups.com .
>>> To post to this group, send email to google-a...@googlegroups.com 
>>> .
>>> Visit this group at https://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/5220d656-7264-4d89-9841-075f6e1576fc%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/google-appengine/5220d656-7264-4d89-9841-075f6e1576fc%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>>
>> Justin Beckwith | Google Cloud Platform | @justinbeckwith 
>> <http://twitter.com/JustinBeckwith> | http://jbeckwith.com
>>
> -- 
> -- Takashi
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6c370c74-bf66-44d0-88cf-18faa63b0499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Codeigniter session using database not working in Google App Engine Flexible Environment

2017-05-03 Thread Dhandapani Sattanathan


I m migration my CRM application developed in CodeIgniter Framework from 
GAE SE to Google App Engine flexible environment.

UserService not available in GAE FE.So I used Integrating Google Sign-In 
into your web app 
.

I need session so I used the below.I am using CI_VERSION', '3.0.0


application/config/config.php
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = TRUE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

Using the below query I created the ci_sessions table in second generation 
cloud SQL.


CREATE TABLE IF NOT EXISTS `ci_sessions` (
`id` varchar(40) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
`data` blob NOT NULL,
PRIMARY KEY (id),
KEY `ci_sessions_timestamp` (`timestamp`)
);


I can get session userstamp in ctrl_Index.php


application/controllers/Ctrl_Index.php
session->set_userdata('UserStamp', $userstamp);
echo $this->session->userdata('UserStamp'); // here session id came.
$this->load->view('Vw_Menu'); // Redirect to vw_menu page.

}
}

?>


application/views/Vw_Menu.php



https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js";>

$(document).ready(function(){
var CONFIG_ENTRY_controller_url="" + 
'/index.php/Ctrl_Menu/' ;
$.ajax({
type: "POST",
url':CONFIG_ENTRY_controller_url+"getSessionUserstamp",
success: function(data){
$(".preloader").hide();
var userstamp=(data);
alert(userstamp)

});

});

CI SESSION IN GAE FE









>From Ctrl_index.php redirect to vw_menu.php session got empty.Also 
ci_sessions tables ip_address saved as empty.


My sample script can see here [1] 
,
 
Download Codeigniter here [2] 
 replace my 
sample script.


Will ci-sessions using database work in GAE FE?.Is there any other 
alternative to using ci-session in GAE FE?


Maybe I missed configuring in GAE FE to work ci_session?


Please help me.


Thanks in advance


SN

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5220d656-7264-4d89-9841-075f6e1576fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Cron job failed in Google App Engine Flexible environment

2017-05-03 Thread Dhandapani Sattanathan


I m migrating my PHP application from Google App engine Standard 
Environment to Flexible environment 
.

My application working fine with database and send grid. But Cron jobs are 
failed.

I could not find what I missed to run a Cron job. You can see my 
application in [1] 
.
 
I got HTTP/1/1 404 issues only. Below I gave the log


18:57:00.000172.18.0.3 - - [02/May/2017:13:27:00 +] "GET 
/web/crontest.php HTTP/1.1" 404 162 "-" "AppEngine-Google; 
(+http://code.google.com/appengine)" { textPayload: "172.18.0.3 - - 
[02/May/2017:13:27:00 +] "GET /web/crontest.php HTTP/1.1" 404 162 "-" "
AppEngine-Google; (+http://code.google.com/appengine)" " insertId: 
"epwcgng8mcw86z" resource: {…} timestamp: "2017-05-02T13:27:00Z" labels: 
{…} logName: "projects/project-id/logs/appengine.googleapis.com%2Fstdout" }

Please help me to fix this.

Thanks in advance.

Regards,

SN

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/93bc3dbe-d1d9-4950-ac16-eeb3b7a3263b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Deploying PHP Google AppEngine FE using dockerfile got ERROR: (gcloud.app.deploy) Error Response: [2] Build failed

2017-02-16 Thread Dhandapani Sattanathan


Dear Nick, Takashi

Thanks Nick for your support so long.

A great thanks to Takashi for his post, while we were suffering to install 
PHP V7 in FE for the past 2 months.

We finally deployed the PHP 7 FE successfully, at last only after the reply 
of Takashi on latest documentation launch for PHP 7 FE runtime support and 
the Base image(PHP 7) Dockerfile provided by Google in GitHub link.

It would all have been very easy for us not to waste 2 months time, had 
Google released this official PHP 7 runtime support in the Flexible 
environment. Lack of all this earlier lead to us for this delay. Of course, 
we understand on the term ‘ALPHA’ launch of the FE.

Thanks,
Dhandapani

On Friday, February 10, 2017 at 11:48:44 PM UTC+5:30, Takashi Matsuo 
(Google) wrote:
>
>
> Hi Dhandapani,
>
> FWIW, we've built and been maintaining a Docker image for running PHP 
> application on Google App Engine Flexible Environment.
> The image is hosted at https://github.com/googlecloudplatform/php-docker
>
> The Cloud SDK uses this image under the cover when you specify env:flex 
> and runtime:php in your app.yaml.
> For more details, please refer to our documentation (just published 
> yesterday)
> https://cloud.google.com/appengine/docs/flexible/php/
>
> The PHP support on App Engine Flexible Environment is still Alpha, we're 
> working on the Beta launch.
>
> Thanks,
>
> On Fri, Feb 3, 2017 at 9:15 AM 'Nick (Cloud Platform Support)' via Google 
> App Engine <google-a...@googlegroups.com > wrote:
>
>> Hey Dhandapani,
>>
>> It appears that there have been some lost messages in the progress of 
>> this thread that I'd like to bring back to the foreground:
>>
>> *1. If you deploy the application successfully, and you have instances 
>> corresponding to them visible in the Console, then you can rest assured 
>> that the problem is not in deployment but in serving. *
>>
>> You'll need to debug the problem on the instance using a combination of 
>> various possible kinds of investigation:
>>
>> * Checking the logs in the Cloud Console (be sure to check all log types, 
>> not just stdout, stderr, syslog, but also request_log -- all log types 
>> should be checked)
>>
>> * Checking the instance's serial console output for possible errors (in 
>> the Console, click on the VM instance to view its details, then ctrl+f 
>> "serial" and you'll see a link to the serial console output)
>>
>> * SSH into the instance and then user docker to get inside the app 
>> container:
>>
>> sudo docker exec -it gaeapp /bin/bash
>>
>>
>> * Once you're inside the app container, you can check /var/log for any 
>> logs that might not report to the Console (this shouldn't generally 
>> happen), you can check which ports are open, whether the language runtime 
>> process is running properly, etc.  
>>
>> *2. If the application fails to deploy, you should test whether you can 
>> build and run the docker container on your own machine (not using gcloud, 
>> but purely using docker)*
>>
>> * From the application directory where Dockerfile is, build the 
>> Dockerfile into an image:
>>
>> sudo docker built -t myapp .
>>
>>
>> * Then run the image you built ("myapp") and link its port 8080 to 8080 
>> on your machine:
>>
>> sudo docker run -p 127.0.0.1:8080:8080 --name myapp -t myapp
>>
>>
>> Then you can direct requests to the app by running a simple request to 
>> 127.0.0.1:8080. Be sure to run docker stop on the container when you're 
>> done testing.
>>
>> You can look in the container itself while it's running using the same 
>> syntax you used in production:
>>
>> sudo docker exec -it gaeapp /bin/bash
>>
>>
>>
>> Let me know how these steps go, and what you find. I'll be happy to 
>> assist further.
>>
>>
>> Cheers,
>>
>> Nick
>> Cloud Platform Community Support
>>
>>
>> On Friday, February 3, 2017 at 12:21:27 AM UTC-5, Dhandapani Sattanathan 
>> wrote:
>>>
>>> Hey Nick,
>>>
>>>
>>> Plz reply
>>>
>>> On Tuesday, January 31, 2017 at 10:23:18 AM UTC+5:30, Dhandapani 
>>> Sattanathan wrote:
>>>
>>> Hey Nick,
>>>
>>> Thanks for your great support.
>>>
>>> Here is my local copy [4] 
>>> <https://docs.google.com/spreadsheets/d/1oBk8jAOX7o_sm89LsZYH-Y73TD0CtxK2cw2XKTH8KFA/edit#gid=471230783>
>>>  
>>> using dockerfile, it’s working fine in local.
>>>
>>> I updated all files whic

[google-appengine] Re: GAE Application disabled is not enabling

2016-11-28 Thread Dhandapani Sattanathan
Hi Google,

I fixed the issue, Bcz of FE version. I got this issue, I deleted the 
FLEXIBLE ENV version in my GAE application.

Thanks.

On Monday, November 28, 2016 at 10:36:03 AM UTC+5:30, Dhandapani 
Sattanathan wrote:
>
> Hi Google,
>
>
> One of my production GAE Application was running successfully past 3 years.
>
> I disabled the GAE application for my back end work. After 2 hours I try 
> to enable GAE application. 
>
> But GAE application doesn't enable. Please help me to solve this. It's 
> an emergency for us.
>
> Plz Refer the below image
>
>
> <https://lh3.googleusercontent.com/-GuiTh9_KJyM/WDu6LvXJipI/EYs/Y_4eKC7nPoIlBybkCNtPtGl7MPaAEOkjQCLcB/s1600/GAE_ISSUE.png>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dd03a23d-a4a9-473f-a7d5-1290c2d23bb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] GAE Application disabled is not enabling

2016-11-27 Thread Dhandapani Sattanathan
Hi Google,


One of my production GAE Application was running successfully past 3 years.

I disabled the GAE application for my back end work. After 2 hours I try to 
enable GAE application. 

But GAE application doesn't enable. Please help me to solve this. It's 
an emergency for us.

Plz Refer the below image



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1a5acaa1-32e5-464a-bd36-c808f2002653%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to edit and deploy APP Engine source code Using Google Cloud Shell’s new code editor?

2016-11-04 Thread Dhandapani Sattanathan
Thanks Nicholas for immediate reply to my question.

Yes,My second question what you understood was correct. Now I can download 
the existing deployed application.I 'll use GitHub Or Bitbucket to share 
others.


On Friday, November 4, 2016 at 2:41:16 AM UTC+5:30, Nicholas (Google Cloud 
Support) wrote:
>
> Welcome Dhandapani!
>
> Happy to hear you are programming and deploying to App Engine using 
> exclusively web tools like Cloud Shell <https://cloud.google.com/shell/>. 
>  If I understand your description correctly, you are starting an instance 
> of Cloud Shell, editing code from there either via the command line or the 
> experimental Web Editor 
> <https://cloud.google.com/shell/docs/features#web_editor> based on Orion 
> and then finally testing via the Web Preview or deploying directly to App 
> Engine.
>
> At this time, the file system accessed by Cloud Shell is specific the 
> logged in user and cannot be accessed by another user as stated here 
> <https://cloud.google.com/shell/docs/features#persistent_disk_storage>. 
>  This is why you cannot see the file system of your colleagues and they 
> cannot see yours.  To share code with other users, I would strongly 
> recommend using git repository.  Cloud Source Repositories 
> <https://cloud.google.com/source-repositories/docs/> allows you to host 
> private Git repositories so that should serve your purpose.  If you prefer 
> third-party tools, I'd recommend BitBucket or Github.  Either way, Cloud 
> Shell instances come with git installed so that should be helpful.
>
> If I understand your second question correctly, it seems you'd like to 
> download the source code for a currently deployed application.  If this is 
> the case, you can use *appcfg.py -A YOUR_APP_ID -V [YOUR_APP_VERSION] 
> download_app [OUTPUT_DIRECTORY] 
> <https://cloud.google.com/appengine/docs/php/tools/downloading-source-code>* 
> to do so.  If I've misunderstood your question, please elaborate what you 
> mean by *edit an existing project script using Cloud Shell*.
>
> I hope the above is helpful and answers your questions.
>
> On Wednesday, November 2, 2016 at 7:48:51 AM UTC-4, Dhandapani Sattanathan 
> wrote:
>>
>> I deployed my PHP app using Google App Engine Launcher to GCP app engine.
>>
>> I connected Google Cloud Shell’s of my existing GAE. I couldn’t cd to the 
>> existing source code folder.
>>
>> But new folder, file I can create and edit the source code.
>>
>> 1.Why another member of GCP couldn’t see my folder and file? How to give 
>> permission to another member to a folder?
>>
>> 2. Is it possible to see the existing project script in GAE can edit 
>> using cloud shell?
>>
>> Plz, help me.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/cab7e702-3aa5-4d2e-a0fb-e060a632429b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to edit and deploy APP Engine source code Using Google Cloud Shell’s new code editor?

2016-11-02 Thread Dhandapani Sattanathan
I deployed my PHP app using Google App Engine Launcher to GCP app engine.

I connected Google Cloud Shell’s of my existing GAE. I couldn’t cd to the 
existing source code folder.

But new folder, file I can create and edit the source code.

1.Why another member of GCP couldn’t see my folder and file? How to give 
permission to another member to a folder?

2. Is it possible to see the existing project script in GAE can edit using 
cloud shell?

Plz, help me.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/eb901f17-a5f9-4d48-abd0-97f057601b1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Running PHP app in Google App Engine Flexible Environment gcloud app deploy failed, But local working fine

2016-10-13 Thread Dhandapani Sattanathan

GAE Team,

I m  getting  While deploying PHP App in GAE Flexible Environment

ERROR: (gcloud.app.deploy) Error Response: [13] Timed out when starting VMs.
  It's possible that the application code is unhealthy.  (0/2 ready, 2 
still deploying).

Plz help me to solve this.

On Wednesday, October 5, 2016 at 10:42:08 AM UTC+5:30, Dhandapani 
Sattanathan wrote:
>
> Plz help me to solve this. 
>
> Thanks in Advance
>
> On Wednesday, September 28, 2016 at 5:32:48 PM UTC+5:30, Dhandapani 
> Sattanathan wrote:
>>
>> I want to install PHP 7 IN GAE. 
>>
>>
>> https://github.com/GoogleCloudPlatform/php-docker/tree/master/php-nginx#change-the-php-version
>>  
>>
>> using this above link i changed. Is this correct? Or Any other way to 
>> install PHP 7 IN GAE ?
>>
>> Plz help me to solve this!.
>>
>> Thanks in advance
>>
>>
>> On Wednesday, September 28, 2016 at 3:28:54 PM UTC+5:30, Dhandapani 
>> Sattanathan wrote:
>>>
>>> I want to use Google App engine FE to run PHP app.
>>>
>>> I tried the sample hello world as per the  below link
>>>
>>> https://cloud.google.com/php/getting-started/hello-world
>>>
>>>
>>> 1. I tried the following steps in my local
>>>
>>>
>>>
>>> 1.Created a project in Cloud Platform Console.
>>>
>>> 2.Under App Engine location, selected a United States location.
>>>
>>> 3. Gave project name as ‘ TEST-FE.
>>>
>>> 4. Installed Google Cloud SDK 
>>>
>>>
>>> Using Google Cloud SDK  , Steps i did.
>>>
>>>
>>>
>>> Welcome to the Google Cloud SDK! Run "gcloud -h" to get the list of 
>>> available commands.
>>>
>>> C:\Program Files (x86)\Google\Cloud SDK>cd /..
>>>
>>>
>>> C:\>git clone https://
>>> github.com/GoogleCloudPlatform/getting-started-php.git
>>>
>>>
>>> 09/27/2016  05:22 PM  appengine-custom-runtimes-samples
>>>
>>> 09/28/2016  10:30 AM  getting-started-php
>>>
>>>
>>> C:\>cd getting-started-php
>>>
>>>
>>> C:\getting-started-php>dir
>>>
>>> Directory of C:\getting-started-php
>>>
>>>
>>> 09/28/2016  10:30 AM  .
>>>
>>> 09/28/2016  10:30 AM  ..
>>>
>>> 09/28/2016  10:30 AM   474 .coveralls.yml
>>>
>>> 09/28/2016  10:30 AM   137 .gitignore
>>>
>>> 09/28/2016  10:30 AM 1,343 .travis.yml
>>>
>>> 09/28/2016  10:30 AM  1-hello-world
>>>
>>> 09/28/2016  10:30 AM  2-structured-data
>>>
>>> 09/28/2016  10:30 AM  3-cloud-storage
>>>
>>> 09/28/2016  10:30 AM  4-auth
>>>
>>> 09/28/2016  10:30 AM  5-logging
>>>
>>> 09/28/2016  10:30 AM  6-pubsub
>>>
>>> 09/28/2016  10:30 AM 1,661 CONTRIBUTING.md
>>>
>>> 09/28/2016  10:30 AM11,558 LICENSE
>>>
>>> 09/28/2016  10:30 AM  optional-compute-engine
>>>
>>> 09/28/2016  10:30 AM  optional-container-engine
>>>
>>> 09/28/2016  10:30 AM 2,527 README.md
>>>
>>> 09/28/2016  10:30 AM  testing
>>>
>>> 09/28/2016  10:30 AM 1,676 TRAVIS.md
>>>
>>> 09/28/2016  10:30 AM  _tuts
>>>
>>>7 File(s) 19,376 bytes
>>>
>>>   12 Dir(s)  816,290,033,664 bytes free
>>>
>>> C:\getting-started-php>cd 1-hello-world
>>>
>>> C:\getting-started-php\1-hello-world>composer install
>>>
>>> Loading composer repositories with package information
>>>
>>> Installing dependencies (including require-dev) from lock file
>>>
>>>   - Installing symfony/routing (v3.0.2)
>>>
>>> Downloading: 100%
>>>
>>>   - Installing symfony/http-foundation (v3.0.2)
>>>
>>> Downloading: 100%
>>>
>>>   - Installing symfony/event-dispatcher (v3.0.2)
>>>
>>> Downloading: 100%
>>>
>>>   - Installing psr/log (1.0.0)
>>>
>>> Downloading: 100%
>>>
>>>   - Installing symfony/debug (v3.0.2)
>>>
>>> Downloading: 100%
>>&

[google-appengine] Re: Running PHP app in Google App Engine Flexible Environment gcloud app deploy failed, But local working fine

2016-10-04 Thread Dhandapani Sattanathan
Plz help me to solve this. 

Thanks in Advance

On Wednesday, September 28, 2016 at 5:32:48 PM UTC+5:30, Dhandapani 
Sattanathan wrote:
>
> I want to install PHP 7 IN GAE. 
>
>
> https://github.com/GoogleCloudPlatform/php-docker/tree/master/php-nginx#change-the-php-version
>  
>
> using this above link i changed. Is this correct? Or Any other way to 
> install PHP 7 IN GAE ?
>
> Plz help me to solve this!.
>
> Thanks in advance
>
>
> On Wednesday, September 28, 2016 at 3:28:54 PM UTC+5:30, Dhandapani 
> Sattanathan wrote:
>>
>> I want to use Google App engine FE to run PHP app.
>>
>> I tried the sample hello world as per the  below link
>>
>> https://cloud.google.com/php/getting-started/hello-world
>>
>>
>> 1. I tried the following steps in my local
>>
>>
>>
>> 1.Created a project in Cloud Platform Console.
>>
>> 2.Under App Engine location, selected a United States location.
>>
>> 3. Gave project name as ‘ TEST-FE.
>>
>> 4. Installed Google Cloud SDK 
>>
>>
>> Using Google Cloud SDK  , Steps i did.
>>
>>
>>
>> Welcome to the Google Cloud SDK! Run "gcloud -h" to get the list of 
>> available commands.
>>
>> C:\Program Files (x86)\Google\Cloud SDK>cd /..
>>
>>
>> C:\>git clone https://
>> github.com/GoogleCloudPlatform/getting-started-php.git
>>
>>
>> 09/27/2016  05:22 PM  appengine-custom-runtimes-samples
>>
>> 09/28/2016  10:30 AM  getting-started-php
>>
>>
>> C:\>cd getting-started-php
>>
>>
>> C:\getting-started-php>dir
>>
>> Directory of C:\getting-started-php
>>
>>
>> 09/28/2016  10:30 AM  .
>>
>> 09/28/2016  10:30 AM  ..
>>
>> 09/28/2016  10:30 AM   474 .coveralls.yml
>>
>> 09/28/2016  10:30 AM   137 .gitignore
>>
>> 09/28/2016  10:30 AM 1,343 .travis.yml
>>
>> 09/28/2016  10:30 AM  1-hello-world
>>
>> 09/28/2016  10:30 AM  2-structured-data
>>
>> 09/28/2016  10:30 AM  3-cloud-storage
>>
>> 09/28/2016  10:30 AM  4-auth
>>
>> 09/28/2016  10:30 AM  5-logging
>>
>> 09/28/2016  10:30 AM  6-pubsub
>>
>> 09/28/2016  10:30 AM 1,661 CONTRIBUTING.md
>>
>> 09/28/2016  10:30 AM11,558 LICENSE
>>
>> 09/28/2016  10:30 AM  optional-compute-engine
>>
>> 09/28/2016  10:30 AM  optional-container-engine
>>
>> 09/28/2016  10:30 AM 2,527 README.md
>>
>> 09/28/2016  10:30 AM  testing
>>
>> 09/28/2016  10:30 AM 1,676 TRAVIS.md
>>
>> 09/28/2016  10:30 AM  _tuts
>>
>>7 File(s) 19,376 bytes
>>
>>   12 Dir(s)  816,290,033,664 bytes free
>>
>> C:\getting-started-php>cd 1-hello-world
>>
>> C:\getting-started-php\1-hello-world>composer install
>>
>> Loading composer repositories with package information
>>
>> Installing dependencies (including require-dev) from lock file
>>
>>   - Installing symfony/routing (v3.0.2)
>>
>> Downloading: 100%
>>
>>   - Installing symfony/http-foundation (v3.0.2)
>>
>> Downloading: 100%
>>
>>   - Installing symfony/event-dispatcher (v3.0.2)
>>
>> Downloading: 100%
>>
>>   - Installing psr/log (1.0.0)
>>
>> Downloading: 100%
>>
>>   - Installing symfony/debug (v3.0.2)
>>
>> Downloading: 100%
>>
>>
>>
>>
>>   - Installing symfony/http-kernel (v3.0.2)
>>
>> Downloading: 100%
>>   - Installing pimple/pimple (v1.1.1)
>>
>> Downloading: 100%
>>
>>   - Installing silex/silex (v1.3.5)
>>
>> Downloading: 100%
>>
>>   - Installing symfony/polyfill-mbstring (v1.1.0)
>>
>> Downloading: 100%
>>
>>   - Installing symfony/dom-crawler (v3.0.2)
>>
>> Downloading: 100%
>>
>>   - Installing symfony/css-selector (v2.8.2)
>>
>> Downloading: 100%
>>
>>   - Installing symfony/browser-kit (v3.0.2)
>>
>> Downloading: 100%
>>
>>   - Installing psr/http-message (1.0)
>>
>> Downloading: 100%
>>
>>   - Installing guzzlehttp/psr7 (1.2.2)
>>
>> Downloading: 100%
>>
>>   - Installing gu

[google-appengine] Re: Running PHP app in Google App Engine Flexible Environment gcloud app deploy failed, But local working fine

2016-09-28 Thread Dhandapani Sattanathan
I want to install PHP 7 IN GAE. 

https://github.com/GoogleCloudPlatform/php-docker/tree/master/php-nginx#change-the-php-version
 


using this above link i changed. Is this correct? Or Any other way to 
install PHP 7 IN GAE ?

Plz help me to solve this!.

Thanks in advance


On Wednesday, September 28, 2016 at 3:28:54 PM UTC+5:30, Dhandapani 
Sattanathan wrote:
>
> I want to use Google App engine FE to run PHP app.
>
> I tried the sample hello world as per the  below link
>
> https://cloud.google.com/php/getting-started/hello-world
>
>
> 1. I tried the following steps in my local
>
>
>
> 1.Created a project in Cloud Platform Console.
>
> 2.Under App Engine location, selected a United States location.
>
> 3. Gave project name as ‘ TEST-FE.
>
> 4. Installed Google Cloud SDK 
>
>
> Using Google Cloud SDK  , Steps i did.
>
>
>
> Welcome to the Google Cloud SDK! Run "gcloud -h" to get the list of 
> available commands.
>
> C:\Program Files (x86)\Google\Cloud SDK>cd /..
>
>
> C:\>git clone https://
> github.com/GoogleCloudPlatform/getting-started-php.git
>
>
> 09/27/2016  05:22 PM  appengine-custom-runtimes-samples
>
> 09/28/2016  10:30 AM  getting-started-php
>
>
> C:\>cd getting-started-php
>
>
> C:\getting-started-php>dir
>
> Directory of C:\getting-started-php
>
>
> 09/28/2016  10:30 AM  .
>
> 09/28/2016  10:30 AM  ..
>
> 09/28/2016  10:30 AM   474 .coveralls.yml
>
> 09/28/2016  10:30 AM   137 .gitignore
>
> 09/28/2016  10:30 AM 1,343 .travis.yml
>
> 09/28/2016  10:30 AM  1-hello-world
>
> 09/28/2016  10:30 AM  2-structured-data
>
> 09/28/2016  10:30 AM  3-cloud-storage
>
> 09/28/2016  10:30 AM  4-auth
>
> 09/28/2016  10:30 AM  5-logging
>
> 09/28/2016  10:30 AM  6-pubsub
>
> 09/28/2016  10:30 AM 1,661 CONTRIBUTING.md
>
> 09/28/2016  10:30 AM11,558 LICENSE
>
> 09/28/2016  10:30 AM  optional-compute-engine
>
> 09/28/2016  10:30 AM  optional-container-engine
>
> 09/28/2016  10:30 AM 2,527 README.md
>
> 09/28/2016  10:30 AM  testing
>
> 09/28/2016  10:30 AM 1,676 TRAVIS.md
>
> 09/28/2016  10:30 AM  _tuts
>
>7 File(s) 19,376 bytes
>
>   12 Dir(s)  816,290,033,664 bytes free
>
> C:\getting-started-php>cd 1-hello-world
>
> C:\getting-started-php\1-hello-world>composer install
>
> Loading composer repositories with package information
>
> Installing dependencies (including require-dev) from lock file
>
>   - Installing symfony/routing (v3.0.2)
>
> Downloading: 100%
>
>   - Installing symfony/http-foundation (v3.0.2)
>
> Downloading: 100%
>
>   - Installing symfony/event-dispatcher (v3.0.2)
>
> Downloading: 100%
>
>   - Installing psr/log (1.0.0)
>
> Downloading: 100%
>
>   - Installing symfony/debug (v3.0.2)
>
> Downloading: 100%
>
>
>
>
>   - Installing symfony/http-kernel (v3.0.2)
>
> Downloading: 100%
>   - Installing pimple/pimple (v1.1.1)
>
> Downloading: 100%
>
>   - Installing silex/silex (v1.3.5)
>
> Downloading: 100%
>
>   - Installing symfony/polyfill-mbstring (v1.1.0)
>
> Downloading: 100%
>
>   - Installing symfony/dom-crawler (v3.0.2)
>
> Downloading: 100%
>
>   - Installing symfony/css-selector (v2.8.2)
>
> Downloading: 100%
>
>   - Installing symfony/browser-kit (v3.0.2)
>
> Downloading: 100%
>
>   - Installing psr/http-message (1.0)
>
> Downloading: 100%
>
>   - Installing guzzlehttp/psr7 (1.2.2)
>
> Downloading: 100%
>
>   - Installing guzzlehttp/promises (1.0.3)
>
> Downloading: 100%
>
>   - Installing guzzlehttp/guzzle (6.1.1)
>
> Downloading: 100%
>
>   - Installing fabpot/goutte (v3.1.2)
>
> Downloading: 100%
>
>   - Installing behat/mink (v1.7.0)
>
> Downloading: 100%
>
>   - Installing behat/mink-browserkit-driver (v1.3.1)
>
> Downloading: 100%
>
>   - Installing behat/mink-goutte-driver (v1.2.0)
>
> Downloading: 100%
>
>   - Installing phpdocumentor/reflection-docblock (2.0.4)
>
> Downloading: 100%
>
>   - Installing phpunit/php-token-stream (1.4.8)
>
> Downloading: Failed
>
> Downloading: 100%
>
>   - Installing symfony/yaml (v3.0.2)
>
> Downloading: 100%
>
>
>   - Installing sebastian/version (1.0.6)
>

[google-appengine] Re: How to use GAE SDK in GCE development Server

2016-07-18 Thread Dhandapani Sattanathan
Thanks Adam, 

I will try as per your reply!

On Saturday, July 9, 2016 at 1:02:52 AM UTC+5:30, Adam (Cloud Platform 
Support) wrote:
>
> I'd first like to address a couple of points from your previous reply:
>
> 1) You're still installing the GAE SDK under a single user's home 
> directory '/home/gaedev/google_appengine/'. This doesn't solve your 
> original problem, and making everyone log into the same 'gaedev' account is 
> not a good idea. You want to install this somewhere system-wide where it 
> will be available to all users such as '/opt/google_appengine', and give 
> everyone their own user account.
>
> 2) The expectation of a default web browser opening when launching the 
> development server is confusing. The development server doesn't launch a 
> browser, and this wouldn't normally be possible since you're starting the 
> server remotely via SSH. I would guess that you may have previously used 
> the App Engine launcher which does open a browser for you.
>
> I'd recommend reviewing the documentation for the PHP Development Server 
> <https://cloud.google.com/appengine/docs/php/tools/using-local-server>, 
> and at least the overview for each section of the Google Compute Engine 
> <https://cloud.google.com/compute/docs/> doc since these are the two 
> primary tools you're concerned with.
>
> In general, to install the SDK on the remote machine and make it 
> accessible to all users:
>
> adminuser@gaedev-box:~$ wget -O gae.zip https://
> storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.38.zip
> adminuser@gaedev-box:~$ sudo mkdir /opt
> adminuser@gaedev-box:~$ cd /opt
> adminuser@gaedev-box:~$ sudo unzip ~/gae.zip 
> adminuser@gaedev-box:~$ sudo echo "export PATH=$PATH:/opt/google_appengine" 
> > /etc/profile.d/gaepath.sh
>
> Now, you can SSH in as a regular user and launch the development server:
> normaluser@gaedev-box:~$ dev_appserver.py testapp
> ...
> Starting module "default" running at: http://localhost:8080
>
> The development server needs the path to php-cgi though, and each user 
> will need to bind to their own port. It's best to make an alias, which each 
> user can put in their .bashrc or other shell startup script:
>
> alias dev_appserver='dev_appserver.py --port=8081 --admin_port=8001 
> --php_executable_path=/usr/bin/php-cgi'
>
> At this point you still have the problem of actually connecting a browser 
> to the development server. I would not recommend exposing the development 
> server via HTTP over the public internet for security reasons. The 
> development server does not support HTTPS. I'd only recommend doing this on 
> a machine inside your own LAN, or by setting up Cloud VPN 
> <https://cloud.google.com/compute/docs/vpn/overview> to securely connect 
> the instance.
>
> An alternative, but more resource-costly solution is to set up a desktop 
> environment 
> <https://medium.com/google-cloud/linux-gui-on-the-google-cloud-platform-800719ab27c5#.r641isia4>
>  
> for each user that they can access via VNC or other remote desktop solution.
>
> On Friday, July 8, 2016 at 1:29:11 PM UTC-4, Dhandapani Sattanathan wrote:
>>
>> Dear Nick,
>>
>>Glad and thanks for your detailed reply.  Well,  we are not 
>> new to GAE/GCP. We are working in GAE for the past 4 years or so,  to 
>> develop and deliver complex solutions for our clients running in GAE PHP..
>>
>>Its high time we take some primitive measures to centralise 
>> all our DEVELOPMENTS and thus use remote server(instead of individual SDK w 
>> different versions). We also want to connect to github for versioning and 
>> also install jenkins in GCE server for continuous integrations.
>>
>>So,  as a first step all our 10+ developers want to use the 
>> same SDK running i n GCE instance to avoid to install each SDK in  each of 
>> the developer's workstation. So, with that in mind, what is the best way to 
>> achieve it? For now ,we want it make it simple and of course secured.
>>
>>So what is the best way to use?
>>
>>1. Using Window manager
>>
>>2. Or GCE firewalls?
>>
>>Plz give a bit of more light(in detail on how to 
>> use/configure it, how many ports required,  as we are 10+ developers in a 
>> team) on this for us to move on. And I am sure,  it'll be definitely be 
>> useful for others seeing or trying to achieve , who sees this thread in 
>> future. Its really a pain  for us to configure wo proper guidance on  all 
>> these, as we are not network administrators.
>>
>>Really appreciate ur este

[google-appengine] Re: How to use GAE SDK in GCE development Server

2016-07-08 Thread Dhandapani Sattanathan


Dear Nick,

   Glad and thanks for your detailed reply.  Well,  we are not new 
to GAE/GCP. We are working in GAE for the past 4 years or so,  to develop 
and deliver complex solutions for our clients running in GAE PHP..

   Its high time we take some primitive measures to centralise all 
our DEVELOPMENTS and thus use remote server(instead of individual SDK w 
different versions). We also want to connect to github for versioning and 
also install jenkins in GCE server for continuous integrations.

   So,  as a first step all our 10+ developers want to use the same 
SDK running i n GCE instance to avoid to install each SDK in  each of the 
developer's workstation. So, with that in mind, what is the best way to 
achieve it? For now ,we want it make it simple and of course secured.

   So what is the best way to use?

   1. Using Window manager

   2. Or GCE firewalls?

   Plz give a bit of more light(in detail on how to use/configure 
it, how many ports required,  as we are 10+ developers in a team) on this 
for us to move on. And I am sure,  it'll be definitely be useful for others 
seeing or trying to achieve , who sees this thread in future. Its really a 
pain  for us to configure wo proper guidance on  all these, as we are not 
network administrators.

   Really appreciate ur esteemed help. Thnks fr ur support and 
kudos to Google support team.

   Thanks in advance,

 SN
   

On Friday, July 8, 2016 at 3:20:05 AM UTC+5:30, Nick (Cloud Platform 
Support) wrote:
>
> Hey Dhandapani,
>
> The commands you showed only start the Development server running, which 
> emulates the production environment your app will run in. It runs your app 
> as an HTTP server on the local machine (in this case, a Compute Engine 
> (GCE) instance). You can use a browser on the instance (if you get a window 
> manager running on the instance and connect via VNC 
> <https://en.wikipedia.org/wiki/Virtual_Network_Computing> or RDP 
> <https://en.wikipedia.org/wiki/Remote_Desktop_Protocol>), or you can 
> expose port 8000 on the GCE machine, using GCE Firewalls 
> <https://cloud.google.com/solutions/connecting-securely>, and run the 
> dev_appserver.py command with --host 0.0.0.0 --port 8000 to allow 
> connections from remote machines to the devserver process. If you use the 
> Firewall to ensure that only your developers' computers can connect their 
> browsers to the instance on that port, you'll be able to start the 
> devserver and test. 
>
> The problem of course with just using one machine is that only one of you 
> can start and stop the devserver on that specific port at a time. You could 
> have each your own port, but it starts to look like this is very 
> over-engineered. The simplest solution, if you want to avoid the complexity 
> above, is having each developer be responsible for keeping track of the 
> version of the SDK they use to develop with. 
>
> I hope this helps clarify things. Let me know if you have any questions as 
> it seems you're new to the platform and we're here to help users no matter 
> what stage of experience they're at. We're happy to assist!
>
> Sincerely,
>
> Nick
> Cloud Platform Community Support
>
> On Tuesday, July 5, 2016 at 7:18:56 AM UTC-4, Dhandapani Sattanathan wrote:
>>
>> Thanks Adam,
>>
>> I added the following line to each user's startup script
>>
>> export PATH="$PATH:/path/to/google_appengine/"
>>
>> Using SSH connection i opened the terminal.
>> user@lamp-bafs:~$  mkdir gaedev
>>
>>
>>
>> user@lamp-bafs:~$ cd gaedev
>>
>> user@lamp-bafs:~$ wget -O gae.zip https:
>> //storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.38.zip
>>
>> user@lamp-bafs:~$ unzip gae.zip
>>
>>
>> user@lamp-bafs:~$ echo $PATH
>>
>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/php
>>
>> user@lamp-bafs:~$ export PATH="$PATH:/home/gaedev/google_appengine/"
>>
>> user@lamp-bafs:~$ echo $PATH
>>
>>
>> user@lamp-bafs:~$ echo $PATH
>>
>> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/bin/php:
>> /home/gaedev/google_appengine
>>
>> user@lamp-bafs:~$ cp -r google_appengine/new_project_template testapp
>>
>> user@lamp-bafs:~$python google_appengine/dev_appserver.py testapp
>>
>> INFO 2016-06-22 05:00:00,836 sdk_update_checker.py:229] Checking for 
>> updates to the SDK.WARNING 2016-06-22 05:00:02,159 simple_search_stub.py:
>> 1146] Could not read search indexes from /tmp/appengine.new-project-
>> template.user/search_indexesINFO 2016-06-22 05:00:02,170 api_server.py:
>&

[google-appengine] Re: How to use GAE SDK in GCE development Server

2016-07-05 Thread Dhandapani Sattanathan


Thanks Adam,

I added the following line to each user's startup script

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

Using SSH connection i opened the terminal.
user@lamp-bafs:~$  mkdir gaedev



user@lamp-bafs:~$ cd gaedev

user@lamp-bafs:~$ wget -O gae.zip https:
//storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.38.zip

user@lamp-bafs:~$ unzip gae.zip


user@lamp-bafs:~$ echo $PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/php

user@lamp-bafs:~$ export PATH="$PATH:/home/gaedev/google_appengine/"

user@lamp-bafs:~$ echo $PATH


user@lamp-bafs:~$ echo $PATH

/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/bin/php:/home/
gaedev/google_appengine

user@lamp-bafs:~$ cp -r google_appengine/new_project_template testapp

user@lamp-bafs:~$python google_appengine/dev_appserver.py testapp

INFO 2016-06-22 05:00:00,836 sdk_update_checker.py:229] Checking for 
updates to the SDK.WARNING 2016-06-22 05:00:02,159 simple_search_stub.py:
1146] Could not read search indexes from /tmp/appengine.new-project-template
.user/search_indexesINFO 2016-06-22 05:00:02,170 api_server.py:205] Starting 
API server at: http://localhost:37210INFO 2016-06-22 05:00:02,177 
dispatcher.py:197] Starting module "default" running at: 
http://localhost:8080INFO 2016-06-22 05:00:02,179 admin_server.py:116] 
Starting admin server at: http://localhost:8000

After this I do not see the default browser opening. 

Could you plz help us how to use remote appengine SDK(installed in this GCE 
instance).All developers want to use one common SDk from this remote 
machine?
On Saturday, July 2, 2016 at 10:33:37 PM UTC+5:30, Adam (Cloud Platform 
Support) wrote:
>
> Assuming your remote GCE instance is Linux, you can just install the SDK 
> on the GCE instance as you would normally following the instructions for 
> 'installing 
> on Linux' 
> <https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_PHP>. 
> I usually install under /opt eg. /opt/google_appengine.
>
> To ensure the SDK is in each user's PATH, add the following line to each 
> user's startup script (eg. .bash_profile):
>
> export PATH="$PATH:/path/to/google_appengine/"
>
> On Friday, July 1, 2016 at 3:12:53 AM UTC-4, Dhandapani Sattanathan wrote:
>>
>> Hello,
>>
>>
>>1. 
>>
>>We are a team of 10 developers and want to develop PHP on GAE using 
>>the same SDK version from a remote server.
>>2. 
>>
>>So, we want to install the GAE PHP SDK on the remote GCE instance 
>>once.
>>3. 
>>
>>Subsequently, all developers will use that remote PHP SDK installed 
>>in that GCE instance.
>>
>> This is to avoid installing or working in different versions of GAE SDK 
>> in our individual local machines. We don't want to install in each of our 
>> local machines, whenever there is a new Release of GAE SDK. We just want to 
>> update once in GCE instances, with the new GAE SDK in one centralized 
>> place, to ensure all developers develop the code using the same version of 
>> GAE SDK. We also don't want to waste time to install SDK in each machine to 
>> ensure consistency in development environments.
>>
>> In this context, can you please enlighten us to centralize our GAE SDK in 
>> GCE development server
>>
>> Thanks very much in advance,
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/71cbcf45-7ea9-4899-8a5f-66613960774f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to use GAE SDK in GCE development Server

2016-07-01 Thread Dhandapani Sattanathan
Hello,


   1. 
   
   We are a team of 10 developers and want to develop PHP on GAE using the 
   same SDK version from a remote server.
   2. 
   
   So, we want to install the GAE PHP SDK on the remote GCE instance once.
   3. 
   
   Subsequently, all developers will use that remote PHP SDK installed in 
   that GCE instance.
   
This is to avoid installing or working in different versions of GAE SDK in 
our individual local machines. We don't want to install in each of our 
local machines, whenever there is a new Release of GAE SDK. We just want to 
update once in GCE instances, with the new GAE SDK in one centralized 
place, to ensure all developers develop the code using the same version of 
GAE SDK. We also don't want to waste time to install SDK in each machine to 
ensure consistency in development environments.

In this context, can you please enlighten us to centralize our GAE SDK in 
GCE development server

Thanks very much in advance,

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7f2a12f8-9708-45e0-b149-70156281bb2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Disable self-cc on email send

2015-06-27 Thread Dhandapani Sattanathan
hi,  any update  to disable the automatic cc'ing to yourself??

Thanks in Advance

Regards
SN

On Monday, September 8, 2008 at 7:49:24 AM UTC+5:30, John Scillieri wrote:

 Is there any way to disable the automatic cc'ing to yourself when 
 sending email from GAE as an admin? 

 This is going to fill the application's inbox with emails that I'll 
 end up deleting anyway. Any suggestions? 

 Thanks, 
 John 


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c948a59b-8338-41ed-af49-7f63f73729ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.