However, I now am unable to execute my script.
Did you "chmod 755 script.cgi" ..?
I have a file /cgi-bin/script
Actually, you're not really required to put your cgi scripts in
specifically a "cgi-bin" directory. You can execute them in any
/web directory for a virtual site. Since you didn't include a file
extension I'll take a stab here and say that the script won't
execute because it doesn't have a file extension. For all web page
based stuff I usually give a cgi script the ".cgi" extension. ".pl"
stuff I use for shell scripts, but that's my own personal preference.
This file was placed on the machine by telnetting in. Ownership is now
httpd.