Trying to add php-apache7.1 logging.

This commit is contained in:
colin 2025-01-12 18:06:13 -05:00
parent 8015c56158
commit b4c0b2c92c
1 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,4 @@
FROM php:7.1-apache FROM php:7.1-apache
## Install OS dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
libfreetype6-dev \ libfreetype6-dev \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
@ -14,16 +13,17 @@ RUN apt-get update && apt-get install -y \
curl \ curl \
git && \ git && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
## Enable and configure php modules
RUN docker-php-ext-configure intl && \ RUN docker-php-ext-configure intl && \
docker-php-ext-install 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-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include && \
docker-php-ext-install -j$(nproc) gd && \ docker-php-ext-install -j$(nproc) gd && \
docker-php-ext-install mysqli zip pdo_mysql bcmath && \ docker-php-ext-install mysqli zip pdo_mysql bcmath && \
docker-php-ext-install opcache 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 && \ RUN mkdir /var/www/sessions && \
chmod 777 /var/www/sessions chmod 777 /var/www/sessions
RUN a2enmod rewrite RUN a2enmod rewrite