World writable: 777 (rwxrwxrwx) -- this is not necessary on our servers and will only work on files that are placed outside of the cgi-bin directory.
Do NOT set permissions on any file that resides within your cgi-bin directory to 777 (rwxrwxrwx) -- use 755 (rwxr-xr-x) instead -- even if the program's documentation calls for the 777 permission.
http://www.hostgator.com/cgitroubleshoot.shtml