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