For me it was as simple as enabling the CGI module for apache2:

a2enmod cgi
service apache2 reload

Written by Matt Cooper
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk.