0
有沒有一種有效的方法來解決Google雲上PHP應用程序的服務器配置問題?如何解決Google App Engine上的HTTP 404和500錯誤?
我試着用Laravel應用程序嘗試一下,並在GAE上部署時保持404或500 HTTP錯誤。同樣的項目在我的本地服務器上運行良好。
是否有任何有效的方法通過error_logs for 500進行故障排除? 任何關於如何構建yaml文件以防止出現的完整文檔? Google的文檔不完整且過時,仍然指舊運行時。
這裏是我當前的文件:
的app.yaml
runtime: php55
api_version: 1
handlers:
- url: /.*
script: index.php
runtime_config:
document_root: public
# required on some platforms so ".env" is not skipped
skip_files: false
env_variables:
# The values here will override those in ".env". This is useful for
# production-specific configuration. However, feel free to set these
# values in ".env" instead if you prefer.
APP_LOG: errorlog
STORAGE_DIR: /tmp
我感謝你的回答馬特,但日誌是空的。我認爲問題發生之前,它實際上擊中了網絡服務器和PHP。看起來像一個部署問題。 我也注意到Google的解決方案存在許多問題,首先是沒有像樣的PHP7支持。 已經厭倦了它,去了AWS,一切順利。 再次感謝。 – bcaille