In this How-to I will explain how to install and configure:

Cherokee Web Server

Zoneminder video camera security and surveillance solution

ffmpeg support with mpeg-4 codec (xvid)

php and other relevant packages

I have divided this guide in 2 parts: Cherokee + php and Zoneminder installation.
 
So, let's begin!