Google App Engine for PHP, Hello World with Access is denied
With the Hello World Tutorial, You may hit the following error messages
1) 'google_appengine' is not recognized as an internal or external command, operable program or batch file.
2) File "D:\Download\googleappengine\google_appengine\google\appengine\tools\devappserver2\safe_subprocess.py", line 61, in start_process stdin=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 711, in __init__errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 948, in _execute_child startupinfo)
WindowsError: [Error 5] Access is denied
This is because the command line that you enter is not correct, please refer to the following instruction
My Path for Google Engine Directory Structure
Python Directory D:\Download\googleappengine\google_appengine\
PHP Directory D:\Download\googleappengine\php\
Hello World Directory D:\Download\googleappengine\helloworld\
Here's the correct Command Line to Start the Google App Server for PHP
Go To Directory: D:\Download\googleappengine and enter following command
google_appengine\dev_appserver.py --php_executable_path=D:\Download\googleappengine\php\php-cgi.exe helloworld/
or you want to specify the webserver port
google_appengine\dev_appserver.py --php_executable_path=D:\Download\googleappengine\php\php-cgi.exe --port=8080 D:\Download\googleappengine\helloworld
To Stop the Server in Windows Environment, just press Ctrl-C to break down the process
No comments:
Post a Comment