Please check the following to make your CGI script to work:- 1) Check the permissions on the files. Make sure you have given permession "755" to your scripts otherwise you will get errors. 2) Make sure that you do not upload cgi file in binary mode, instead use ASCII mode. 3) Upload the scripts into your cgi-bin directory (for security reasons).