From 7b3b27e440b076f7a599555eaf963e719caab080 Mon Sep 17 00:00:00 2001
From: startxfr <clarue@startx.fr>
Date: Sat, 28 Nov 2015 21:04:24 +0100
Subject: start reshape of mysql container

---
 Services/php/Dockerfile | 8 ++++++--
 Services/php/read       | 2 ++
 Services/php/run.sh     | 1 -
 3 files changed, 8 insertions(+), 3 deletions(-)
 create mode 100644 Services/php/read

(limited to 'Services/php')

diff --git a/Services/php/Dockerfile b/Services/php/Dockerfile
index 62b9564..ee02d89 100644
--- a/Services/php/Dockerfile
+++ b/Services/php/Dockerfile
@@ -9,12 +9,16 @@ RUN dnf -y install php php-pecl-mongo php-cli php-pear \
         php-tcpdf-dejavu-sans-fonts php-tidy \
     && dnf clean all  
 ENV LOG_PATH=/data/logs/apache_php  \
-    APP_PATH=/data/apache_php
+    APP_PATH=/data/apache_php \
+    STARTUPLOG=/data/logs/apache_php/startup.log
 COPY httpd.conf $HTTPDCONF
 COPY php.ini /etc/php.d/sx.ini
 COPY run.sh /bin/
 RUN chmod 775 /bin/run.sh && \
-    chmod ug+r $HTTPDCONF
+    chmod ug+r $HTTPDCONF && \
+    mkdir $APP_PATH && \
+    mkdir $LOG_PATH && \
+    touch $STARTUPLOG
 COPY ./ $APP_PATH
 RUN rm -f $APP_PATH/Dockerfile $APP_PATH/httpd.conf $APP_PATH/run.sh && \
     chown -R apache:apache $APP_PATH $LOG_PATH && \
diff --git a/Services/php/read b/Services/php/read
new file mode 100644
index 0000000..3cd6763
--- /dev/null
+++ b/Services/php/read
@@ -0,0 +1,2 @@
+Server version: Apache/2.4.16 (Fedora)
+Server built:   Jul 17 2015 08:02:56
diff --git a/Services/php/run.sh b/Services/php/run.sh
index a59a9af..4d4c580 100644
--- a/Services/php/run.sh
+++ b/Services/php/run.sh
@@ -6,7 +6,6 @@ if [[ "$0" == *"run.sh" && ! $1 = "" ]];then
     eval "$@"; 
 fi
 
-check_environment | tee -a $STARTUPLOG
 check_httpd_environment | tee -a $STARTUPLOG
 display_container_httpd_header | tee -a $STARTUPLOG
 begin_config | tee -a $STARTUPLOG
-- 
cgit v1.2.3