Blank page on PHP Hello World

444 views
Skip to first unread message

Jefrey Sobreira

unread,
Dec 6, 2013, 8:10:45 PM12/6/13
to google-a...@googlegroups.com
Hi all!

I'm newest in Google App Engine and I'm trying to use the PHP runtime.

Following the Hello World tutorial (https://developers.google.com/appengine/docs/php/gettingstarted/helloworld) I faced a problem when accessing my app runing in localhost:

The path specified with the --php_executable_path flag () does not exist.

So I changed the command line to:

python dev_appserver.py helloworld/ --php_executable_path /usr/bin/php

(i tired as root and also as non-root)

Now that error isn't appearing anymore. But all I see is a blank page...

On the terminal, no errors:

INFO     2013-12-07 01:05:22,645 sdk_update_checker.py:245] Checking for updates to the SDK.
INFO     2013-12-07 01:05:23,219 sdk_update_checker.py:261] Update check failed: HTTP Error 404: Not Found
INFO     2013-12-07 01:05:23,253 api_server.py:138] Starting API server at: http://localhost:48733
INFO     2013-12-07 01:05:23,269 dispatcher.py:171] Starting module "default" running at: http://localhost:8080
INFO     2013-12-07 01:05:23,275 admin_server.py:117] Starting admin server at: http://localhost:8000
INFO     2013-12-07 01:05:31,095 module.py:617] default: "GET / HTTP/1.1" 200 -

Any help will be appreciated.

Mars Lan

unread,
Dec 10, 2013, 2:26:19 PM12/10/13
to google-a...@googlegroups.com
Are you running this on Linux? If so you can view the error messages in syslog using cat /var/log/syslog

Vinny P

unread,
Dec 10, 2013, 11:02:33 PM12/10/13
to google-a...@googlegroups.com
On Fri, Dec 6, 2013 at 7:10 PM, Jefrey Sobreira <jefrey....@gmail.com> wrote:
The path specified with the --php_executable_path flag () does not exist. 
So I changed the command line to:
python dev_appserver.py helloworld/ --php_executable_path /usr/bin/php
(i tired as root and also as non-root)
Now that error isn't appearing anymore. But all I see is a blank page...



Can you run a search for the PHP executable (i.e. run sudo find / -name php-cgi )? I was under the impression that PHP installs under usr/bin/php-cgi.
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Andrew Jessup

unread,
Dec 11, 2013, 7:20:22 PM12/11/13
to google-a...@googlegroups.com
You need to specify the php-cgi binary, not the PHP binary

Radu Popa

unread,
May 3, 2016, 10:28:28 AM5/3/16
to Google App Engine
I had the same problem : I has giving the path to php not tophp-cgi

Thank you for your answers.
Reply all
Reply to author
Forward
0 new messages