我一直在使用Google App Engine PHP SDK在本地處理PHP網站,並且在我的計算機上一切正常。然後,我部署該網站並說它成功上傳,但是,當我查看託管網站時,該網頁是空白的。當我檢查應用程序儀表板中的日誌時,我收到一些警告和錯誤:Google App Engine PHP包含部署網站上的錯誤
PHP Warning: include(): apc failed to locate includes/functions.php - bailing in /base/data/home/apps/s~raven3mil/1.373024475561310665/login.php on line 2
PHP Warning: include(includes/functions.php): failed to open stream: No such file or directory in /base/data/home/apps/s~raven3mil/1.373024475561310665/login.php on line 2
PHP Warning: include(): Failed opening 'includes/functions.php' for inclusion (include_path='.;/base/data/home/apps/s~raven3mil/1.373024475561310665/;/base/data/home/runtimes/php/sdk') in /base/data/home/apps/s~raven3mil/1.373024475561310665/login.php on line 2
PHP Warning: require_once(includes/session.php): failed to open stream: No such file or directory in /base/data/home/apps/s~raven3mil/1.373024475561310665/login.php on line 3
PHP Fatal error: require_once(): Failed opening required 'includes/session.php' (include_path='.;/base/data/home/apps/s~raven3mil/1.373024475561310665/;/base/data/home/runtimes/php/sdk') in /base/data/home/apps/s~raven3mil/1.373024475561310665/login.php on line 3
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
有沒有人有任何關於此事的見解?我不知道該從哪裏出發......謝謝!
UPDATE:
的app.yaml
application: raven3mil
version: 1
runtime: php
api_version: 1
threadsafe: yes
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /includes
static_dir: includes
- url: /fullcalendar-1.6.2/fullcalendar
static_dir: fullcalendar-1.6.2/fullcalendar
- url: /ckeditor
static_dir: ckeditor
# Serve php scripts.
- url: /(.+\.php)
script: \1
- url: /.*
script: login.php
error_handlers:
- file: errors/404.php
名稱相匹配,一切都運行良好的本地應用程序。
你的app.yaml文件是什麼樣的? – IanGSY
和什麼是app_id? –
從上面的日誌輸出它看起來像他的應用程序ID是raven3mil – IanGSY