in reply to cgi to fast cgi

You also need a web server configured for fast-cgi, and you might have to rename your script to .fcgi or .fpl