This image is built on alpine linux that includes apache 2.4.34 web server and php 7.2.8 (xdebug enabled) with SSL support. Tested with Docker version 18.06.0-ce on linux.
How to run: docker run -d --name my_apache_with_php -p 80:80 -p 443:443 -v /var/www/localhost/htdocs:/var/www/localhost/htdocs turkeryildirim/apache
You could get docker file and configs that are used in container from https://github.com/turkeryildirim/docker-apache
After your container becomes up & running state, you could access apache web server on port 80 and 443. e.g. http://localhost/ and https://localhost/
Xdebug is set to listen on port 9001 and checks for PHPSTORM idekey by default so be sure that you make correct setup for your favorite IDE.
Activated apache modules: mpm_prefork authn_file authn_core authz_user authz_core access_compat auth_basic reqtimeout filter deflate mime log env expires headers setenvif slotmem unixd autoindex dir rewrite negotiation proxy_module proxy_fcgi ssl
Activated PHP modules php7-openssl php7-fpm php7-mbstring php7-xmlrpc php7-xmlreader php7-session php7-gd php7-gettext php7-json php7-xml php7-xmlreader php7-curl php7-xdebug php7-zip php7-mcrypt php7-sockets php7-tidy php7-dom php7-soap php7-yaml php7-simplexml php7-calendar php7-memcached php7-redis php7-mongodb php7-pgsql php7-sqlite3 php7-mysqlnd php7-mysqli php7-pdo php7-pdo_pgsql php7-pdo_sqlite php7-pdo_mysql php7-imagick php7-oauth php7-tokenizer php7-fileinfo
Content type
Image
Digest
Size
85.4 MB
Last updated
about 8 years ago
docker pull turkeryildirim/apache