尝试在 Google App Engine 上运行 WordPress。
安装后我错过了“php-cgi 的路径”在哪里?
我可以在 macport/software/php54-cgi 下找到一些 php54-cgi,但是将路径设置为此会产生权限错误。
此外,安装错过了关于安装 python sdk 以运行 dev_appserver.py 的任何内容。
问题是你甚至可以在 mac 上运行 hello world 吗?如果可以,如何启动 dev_appserver.py?
https://developers.google.com/appengine/docs/php/gettingstarted/helloworld
Error message:
dev_appserver.py --php_executable_path=/opt/local/var/macports/software/php54-cgi /Users/name/GAE/PHPTest
WARNING 2013-05-21 22:31:10,600 api_server.py:329] Could not initialize images API; you are likely missing the Python "PIL" module.
WARNING 2013-05-21 22:31:10,606 simple_search_stub.py:962] Could not read search indexes from /var/folders/6w/2nmsznqj3d7310_lp70p34s00000gn/T/appengine.helloworld/search_indexes
INFO 2013-05-21 22:31:10,609 api_server.py:153] Starting API server at: http://localhost:49390
INFO 2013-05-21 22:31:10,614 dispatcher.py:164] Starting server "default" running at: http://localhost:8080
INFO 2013-05-21 22:31:10,619 admin_server.py:117] Starting admin server at: http://localhost:8000
Exception in thread Thread-6:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/server.py", line 1232, in _loop_adjusting_instances
self._adjust_instances()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/server.py", line 1209, in _adjust_instances
self._add_instance(permit_warmup=True)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/server.py", line 1087, in _add_instance
expect_ready_request=perform_warmup)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 195, in new_instance
self._check_environment(php_executable_path)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 138, in _check_environment
env={})
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/safe_subprocess.py", line 61, in start_process
stdin=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
感谢和问候