Well I've been assigned this task, and I haven't a clue where to start. I'm running Ubuntu, and so far I've only managed to get apache2 working.
Now it would be very grateful if anyone could guide me. Thanks
You'll want to configure apache to execute CGI scripts.
I've posted a very similar question over on webmasters.stackexchange and received a great answer that should get you going: https://webmasters.stackexchange.com/questions/11019/adding-custom-handlers