Sign inSign up

ttoure/apachephpdebian

By ttoure

Updated over 3 years ago

Config Apache and Php on Debian 11

Image
0

70

ttoure/apachephpdebian repository overview

Config Apache and php on debian bullseye

Dockerfile for this image :

FROM debian:latest

RUN apt-get update -y
RUN apt-get install apache2 -y
RUN apt-get clean
RUN a2enmod rewrite
RUN a2enmod deflate
RUN a2enmod headers
RUN echo "ServerTokens Prod" >> /etc/apache2/apache2.conf
RUN echo "ServerSignature Off" >> /etc/apache2/apache2.conf
RUN apt-get install -y php php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath php-intl php-bz2 php-ldap php-json
RUN sed -i -e 's/session.cookie_httponly =/session.cookie_httponly = on/g' /etc/php/7.4/apache2/php.ini
RUN sed -i -e 's/max_execution_time = 30/max_execution_time = 600/g' /etc/php/7.4/apache2/php.ini

EXPOSE 80

CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND"]

This is an image

Tag summary

Content type

Image

Digest

sha256:dab81e33b

Size

115 MB

Last updated

over 3 years ago

docker pull ttoure/apachephpdebian:v1