![]() |
|
|
Questions about cgi-bin scripts and how you can get yours to work.
Our servers refuse to execute scripts with insecure permissions. If your permissions are set so that other users on the system can write to your scripts or the directory your scripts reside in, they will not be executed because your scripts could of been tampered with. Most CGI packages you download will instruct you to set very relaxed permissions on your scripts and data files, but you should not follow these directions. The most common reason that your CGI script is not executing is that you've set the permissions incorrectly on the script itself, or on the subdirectory that it resides in.
All subdirectories you create inside your cgi-bin directory should be mode 705 (user:read/write/execute group:none other:read/execute).
The reason the author of the script is insisting on the insecure modes is that most hosts run an insecure setup where all scripts are run as the web server user and for the script to function properly it needs those modes.
Second, if you're trying to run a perl sript, make sure you've got the path to perl set correctly. The path to perl on our servers is located in the Paths category. Lastly, make sure your scripts are uploaded in ASCII mode and the modification you made to the script before uploading it were made with an ASCII editor like Notepad. You must explicitly set your FTP client to ASCII mode when you upload scripts, since the default is usually binary. |