What Are The Problems Faced While Uploading The Cgi Scripts?,When connecting to your website folder through SSH or FTP, you will see a folder called cgi-bin. Place all of your cgi scripts within this folder. The cgi-bin folder is configured on the server to allow proper execution of your scripts. When you upload files to your website, remember to place all of your cgi scripts within the cgi-bin folder. They will not execute properly if they are inside the htdocs folder
Share
jeevitha
CGI scripts allow the communication to be done between the client and the server side and it acts as a gateway between them.
CGI scripts don’t work due to uploading of it in a BINARY mode as this is not the format in which the scripts are uploaded.
ASCII mode is used to upload the CGI scripts rather than BINARY mode as this is the default format that is being used for this purpose only.
The file should have the permission on the scripts that hasn’t been set and the permissions should be changed to make the CGI programs readable on the server and client.
FTP also should have the proper permissions by using the CHMOD that allows the file to be uploaded on the server.