in reply to Running CGI script

You don't show us what error message you got, what webserver you're using and if it's configured correctly. You can help us help you better by telling us these things.