Ubuntu 14.04.02 LTS with lighttpd 1.4.33 and php 5.5.9
service lighttpd force-reload
php-pear php5-dev make libpcre3-dev
pecl install uuid
Recommended usage when running the container.
docker run -p 80:80 -v /shared/var/www:/var/www -v /shared/var/cache/lighttpd:/var/cache/lighttpd -v /shared/var/log/lighttpd/:/var/log/lighttpd/ -v /shared/etc/lighttpd:/etc/lighttpd -v /home/edward/alm:/home/edward/alm -d edwardjrp/ubuntu-lighttpd-php5:v2 /run.sh
This will daemonize the container expose port 80 for the main host and mount relevant config folders from a folder (in this case /shared folder on the host). This way configurations for lighttpd and for apps published on /var/www are dynamic and dont need to restart the container. The run.sh script is just a simple bash script which fires up lighttpd as a daemon with its /etc/lighttpd/lighttpd.conf file.
It is important to have the appropriate folder permissions on the shared folders and they must match those used on the container. In this case user and group for the shared folders of lighttpd should be www-data:www-data or the user you configured lighttpd to launch with to avoid permissions issues when running the container.