Follow these steps to upload CGI scripts:
- Connect via FTP using a client like FileZilla
- Set transfer mode to ASCII (not binary) for .pl files
- Navigate to your cgi-bin directory
- Upload the script file
- Set permissions to 755:
- In your FTP client: Right-click > Permissions
- Or via SSH:
chmod 755 script.pl
Important: Always upload Perl scripts in ASCII mode to prevent line ending issues between Windows and Unix systems.