Sign inSign up

sector04/php5.6

By sector04

•Updated over 6 years ago

Imagen con php5.6 y apache2 instalados

Image
0

10K+

sector04/php5.6 repository overview

⁠Dockerfile utilizado:

FROM debian:jessie

RUN apt-get update && apt-get install -y apache2
libapache2-mod-php5
php5
php5-mysql
php5-curl
php5-gd
php5-imagick
php5-mcrypt
php5-xmlrpc
php5-xsl
&& apt-get clean
&& a2enmod rewrite

ENV APACHE_LOCK_DIR /var/lock/apache2 ENV APACHE_RUN_DIR /var/run/apache2 ENV APACHE_PID_FILE ${APACHE_RUN_DIR}/apache2.pid ENV APACHE_LOG_DIR /var/log/apache2 ENV APACHE_RUN_USER www-data ENV APACHE_RUN_GROUP www-data EXPOSE 80

COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf

COPY apache2-foreground /usr/local/bin/ RUN chmod +x /usr/local/bin/apache2-foreground

CMD ["apache2-foreground"]

⁠Archivo 000-default.conf

<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined DirectoryIndex index.html DirectoryIndex index.php <Directory /var/www/html> # enable the .htaccess rewrites Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all require all granted

⁠Archivo apache2-foreground

#!/bin/bash set -e

#Note: we don't just use "apache2ctl" here because it itself is just a shell-s$ #(also, when run as "apache2ctl ", it does not use "exec", which $

: "${APACHE_CONFDIR:=/etc/apache2}" : "${APACHE_ENVVARS:=$APACHE_CONFDIR/envvars}" if test -f "$APACHE_ENVVARS"; then . "$APACHE_ENVVARS" fi

#Apache gets grumpy about PID files pre-existing : "${APACHE_PID_FILE:=${APACHE_RUN_DIR:=/var/run/apache2}/apache2.pid}" rm -f "$APACHE_PID_FILE"

exec apache2 -DFOREGROUND "$@"

Tag summary

Content type

Image

Digest

Size

167.7 MB

Last updated

over 6 years ago

docker pull sector04/php5.6