title: Alpine variants of PHP and Apache/httpd in Docker
body: <p>I am experimenting with Docker and want to move from a local MAMP stack to Docker. Of course I stumbled upon the official <code>php:7.0</code> image but I want to use Apache as well so it seems as if <code>php:7.0-apache</code> is the way to go. However I saw that there is an image called <code>php:7.0-alpine</code> which is much slimmer while there are two versions for Apache as well namely <code>httpd:2.4</code> and <code>httpd:2.4-alpine</code>.</p>
  
  <p>Is there any suggested combination to use both Apache and PHP (either separated or combined) while still having small image sizes? Furthermore I would like to know where I can review the available modules in the images since I want to use MariaDB and mod_rewrite as well which could possibly have more dependencies which have been omitted to keep the size small.</p>
  
  <hr>
  
  <h3>Information on implementing the desired infrastructure with nginx</h3>
  
  <p>I came across <a href="http://www.newmediacampaigns.com/blog/docker-for-php-developers" rel="noreferrer">this very detailed and awesome tutorial</a> on how to split up nginx and PHP as well as MySQL into different containers but attach PHP to nginx using FCGI. This implies that I can use all the different alpine-based images of the tools and link them using FCGI. Unfortunately I have never heard of or worked with FCGI but I guess some more research will yield information on how to implement this infrastructure using Apache.</p>