summaryrefslogtreecommitdiffstats
path: root/adei
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-03-01 20:00:06 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-03-01 20:00:06 +0100
commit61f4b8e1e02032fe8fba01487d6bb05ae6e5e243 (patch)
tree35ffa5d8fffb280787fe9105055571b8e3268b0a /adei
parent7dea13aae8187fb0d078938b10d0093e80e328ff (diff)
downloadadei-61f4b8e1e02032fe8fba01487d6bb05ae6e5e243.tar.gz
adei-61f4b8e1e02032fe8fba01487d6bb05ae6e5e243.tar.bz2
adei-61f4b8e1e02032fe8fba01487d6bb05ae6e5e243.tar.xz
adei-61f4b8e1e02032fe8fba01487d6bb05ae6e5e243.zip
Modify apache configuration to also print errors to stderr
Diffstat (limited to 'adei')
-rwxr-xr-xadei/scripts/configure.sh3
1 files changed, 3 insertions, 0 deletions
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