can't start local development server -- what am I doing wrong?

97 views
Skip to first unread message

Anon Sixty

unread,
Nov 17, 2016, 5:14:42 PM11/17/16
to Google App Engine
I'm new to GAE, and just completed the GAE online PHP helloworld tutorial, but now I have a problem with the quickstart tutorial for local development:
https://cloud.google.com/appengine/docs/php/quickstart#prerequisites

My problem is that I cannot start the local development server from Windows 8.1 command prompt.
I've tried typing both "dev_appserver.py" and "dev_appserver.py ." as indicated in the tutorial,
but each time I try, I get a prompt from Windows asking "how do you want to get this type of file (.py)?" 
Other than the prompt, there is no error message after I press enter.
Afterwards, I cannot access http://localhost:8080/ , so it appears the server is not running or not loading the "helloworld" project correctly.
I've also tried using the Google Cloud SDK Shell instead of the command prompt, with the same result.

I did install the Cloud SDK (including the Python bundle) and also added the SDK program path to my PATH variable.

What am I doing wrong?


Nick (Cloud Platform Support)

unread,
Nov 18, 2016, 3:40:19 PM11/18/16
to Google App Engine
Hey Anon,

This forum is meant for more general, high-level discussion of design patterns, the platform and services, and so specific technical issue requests like this should more properly belong over at Stack Overflow. We monitor this forum and our tags on Stack Overflow, and there are probably a greater volume of users there anyways, so in future, be sure to use Stack.

For now, though, I can say that I've never seen such a message. Maybe you could try googling the exact text content of the error message? I tried to search the internet and found only this post, so perhaps what you wrote isn't the same as the error.

Cheers,

Nick
Cloud Platform Community Support

Anon Sixty

unread,
Nov 18, 2016, 4:34:44 PM11/18/16
to Google App Engine
I discovered that the Cloud SDK did not seem to install the python bundle correctly on my Windows PC. 
I had to do two extra things to continue the tutorial: 
1) install Python 2.7.12 
2) use the "--php_executable_path=" flag after "dev_appserver.py ." to specify the path to php-cgi.exe
After that, the local development server would run correctly.

Anon Sixty

unread,
Nov 18, 2016, 4:37:37 PM11/18/16
to Google App Engine
And also "php-cgi.exe" had to be installed from the App Engine SDK (GoogleAppEngine-1.9.40.msi) and was apparently not found in my Cloud SDK (GoogleCloudSDKInstaller.exe)

Nick (Cloud Platform Support)

unread,
Nov 21, 2016, 1:03:29 PM11/21/16
to Google App Engine
Hey Anon,

Thanks for letting us know what happened! 

Feel free to open a Stack Overflow question any time you experience a specific issue in the future. We monitor that forum as do many other helpful users. Google Groups can be used, on the other hand, to discuss general development questions, design patterns, the platform and services, etc.


Cheers,

Nick
Cloud Platform Community Support

Reply all
Reply to author
Forward
0 new messages