diff options
Diffstat (limited to 'Services/php')
-rw-r--r-- | Services/php/Dockerfile | 8 | ||||
-rw-r--r-- | Services/php/read | 2 | ||||
-rw-r--r-- | Services/php/run.sh | 1 |
3 files changed, 8 insertions, 3 deletions
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 |