The recommended location for Perl scripts is the /cgi-bin directory of the virtual server. Perl scripts must be uploaded in ASCII format and must have execution permissions. Execution permission means that in a UNIX-like file system, the file attributes include the x
(execute) right.
You can read more about file permissions in UNIX file systems in Anto Veldre’s article Tigu Lahkamas.
Typical permissions for a CGI script would look like:
-rwxr-xr-x 1 virt**** virt**** 63408 Jul 9 15:02 filename.cgi*
This means the owner has read (r), write (w), and execute (x) permissions. The group and others have read (r) and execute (x) permissions.
In numeric form, these permissions are represented as 0755.
The function to set file permissions (CHMOD) is available in all common FTP clients.