我在MAC OS中运行dev_appserver.py PHP运行时,根据这里的说明: https://developers.google.com/appengine/docs/php/gettingstarted/helloworld
但是在localhost:8080我一直得到:
Warning: require(index.php): failed to open stream: No such file or directory in /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 103
Fatal error: require(): Failed opening required 'index.php' (include_path='/Users/evelynrios/Documents/JavaScript/JSON:AJAX/BayAreaBikeShare:/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/php/sdk') in /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 103
之前的用户发布了此答案,此处: GoogleAppEngine root:php failure(255)
“我从hakre得到了正确答案:) 问题是我还有一个python版Google-App-engine。为了解决这个问题,我需要为PHP-GAE-SDK指定“dev_appserver”“
但我不知道这意味着什么,也没有进一步的解释。
答案 0 :(得分:1)
问题原来是一个糟糕的目录名称。