in reply to Reaped: problem in cgi

First check your apache's configuration if the cgi-bin is enabled in your system, and the directory it points (ScriptAlias). Put your application there and chmod it to at least 755. In apache2 systems you can check the virtual domain's configuration in /etc/apache2/sites-enabled/ (in my Ubuntu system, check yours).