如何从openshift平台获取access.log


How can i get the access.log from the openshift platform

我构建了一个应用程序,并选择了php语言。我看到openshift平台使用Apache服务器。

现在我想检查access.log?我怎么能找到它

thx!

最简单的方法就是从命令行工具运行rhc tail YOUR_APP_NAME

查看远程服务器上的日志:

rhc ssh YOUR_APP_NAME # ssh into your app
cd $OPENSHIFT_LOG_DIR # change to the log directory
tail -f php.log