I will assume you are using Apache 1.3.x.
The first thing to check is to make sure that your directory options have ExecCGI enabled.
It's going to look something like this:
Options Indexes FollowSymLinks ExecCGI
The second thing to check is to make sure that .cgi is recognized as a valid CGI application:
AddHandler cgi-script .cgi .pl
Search for the "AddHandler cgi-script .cgi" line and uncomment it.
Restart Apache and it should load right up.
Adam "Tauvix" Debus
Network Administrator, ReachONE Internet