From 61f4b8e1e02032fe8fba01487d6bb05ae6e5e243 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 1 Mar 2018 20:00:06 +0100 Subject: Modify apache configuration to also print errors to stderr --- adei/scripts/configure.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adei/scripts/configure.sh b/adei/scripts/configure.sh index cbc0033..93a5b8b 100755 --- a/adei/scripts/configure.sh +++ b/adei/scripts/configure.sh @@ -8,3 +8,6 @@ sed -i'' -re 's/APACHE_MODULES="(.*)"/APACHE_MODULES="\1 php5 rewrite proxy mod_ sed -i'' -rf /opt/scripts/override.sed /etc/apache2/default-server.conf sed -i'' -re 's/short_open_tag\s*=.*/short_open_tag = On/' /etc/php5/apache2/php.ini 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 TransferLog for now +sed -i'' -re 's@^ErrorLog .*@ErrorLog "|/usr/bin/tee -a /var/log/apache2/error.log /dev/stderr"@' /etc/apache2/httpd.conf -- cgit v1.2.3