Results 1 to 2 of 2
Thread: Why doesn't my CGI work?
09-02-2004, 01:46 AM #1DetailHostGuest
Why doesn't my CGI work?
Make sure when you upload the CGI file DO NOT upload in binary mode, instead use ASCII mode. Uploading in binary will cause the server not to recognize the scripts as executables. Most FTP clients will upload .pl or .cgi files in binary mode by default so you will need to change this. You will need to upload the scripts into your cgi-bin directory for security reasons, however they will execute from anywhere within your account.
The last step is to set the file permissions. This is otherwise known as chmoding and can be done from most FTP clients. Make sure you CHMOD your scripts to "755" otherwise you will get errors.
09-02-2004, 05:42 AM #2
- Join Date
- Aug 2004
Also you may need to run dos2unix or unix2dos on the scripts depending what you used to make the and what is on your server.