Log in

View Full Version : What to edit CGI in?



jlizarraga
03-13-2009, 08:09 PM
Hi all,

If I take an already existing .cgi file and save it with no changes in either Wordpad or Dreamweaver, the server produces a "500 Internal Server Error".

What should I use to edit a .cgi file?

Thanks!

Twey
03-13-2009, 08:11 PM
The extension .cgi does not imply any specific content. It could even be a binary, in which case the obvious answer is that you don't.

jlizarraga
03-13-2009, 10:21 PM
Hmm. In this case I think it was a Perl text file.

Twey
03-13-2009, 10:58 PM
Then it should be fine. Make sure the permissions of the file are correct (for most cases you'll want 755; if the contents are sensitive, try 711).