Trying to add php-apache7.1 logging.
This commit is contained in:
parent
8015c56158
commit
b4c0b2c92c
|
@ -1,5 +1,4 @@
|
|||
FROM php:7.1-apache
|
||||
## Install OS dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libfreetype6-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
|
@ -14,16 +13,17 @@ RUN apt-get update && apt-get install -y \
|
|||
curl \
|
||||
git && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
## Enable and configure php modules
|
||||
RUN docker-php-ext-configure intl && \
|
||||
docker-php-ext-install intl && \
|
||||
docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include && \
|
||||
docker-php-ext-install -j$(nproc) gd && \
|
||||
docker-php-ext-install mysqli zip pdo_mysql bcmath && \
|
||||
docker-php-ext-install opcache
|
||||
|
||||
RUN mkdir -p /var/log/php && \
|
||||
chmod 777 /var/log/php
|
||||
RUN echo "error_log = /var/log/php/php-error.log" >> /usr/local/etc/php/php.ini && \
|
||||
echo "log_errors = On" >> /usr/local/etc/php/php.ini && \
|
||||
echo "error_reporting = E_ALL" >> /usr/local/etc/php/php.ini
|
||||
RUN mkdir /var/www/sessions && \
|
||||
chmod 777 /var/www/sessions
|
||||
|
||||
RUN a2enmod rewrite
|
||||
RUN a2enmod rewrite
|
||||
|
|
Loading…
Reference in New Issue