From 132f1ee6100f818fd1f055f74d525c65b4907a47 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 1 Mar 2018 21:07:42 +0100 Subject: Stream redirection fails in ErrorLog, so we just log to stdout for now --- adei/scripts/configure.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adei/scripts/configure.sh b/adei/scripts/configure.sh index acb6fbb..458c3dc 100755 --- a/adei/scripts/configure.sh +++ b/adei/scripts/configure.sh @@ -10,4 +10,5 @@ sed -i'' -re 's/short_open_tag\s*=.*/short_open_tag = On/' /etc/php5/apache2/php sed -i'' -re 's@session.save_path\s*=.*@session.save_path=/tmp@' /etc/php5/apache2/php.ini # Docker allows to view stdout/stderr streams individually, but OpenShift not. So we skip CustomLog for now -sed -i'' -re 's@^ErrorLog .*@ErrorLog "|/usr/bin/tee -a /var/log/apache2/error_log 1>&2"@' /etc/apache2/httpd.conf +# Redirection fails here. So lets keep logging to stdout for now. +sed -i'' -re 's@^ErrorLog .*@ErrorLog "|/usr/bin/tee -a /var/log/apache2/error_log"@' /etc/apache2/httpd.conf -- cgit v1.2.1