Typically, a Messenger script file, such as wspd_cgi.sh, resides in the cgi-bin or equivalent directory that contains your Web server's scripts. When you configure your Web server, you can decide which directories can hold executable files. You can also designate whether the executable files require a specific extension (such as .cgi) or can use any extension. See your Web server documentation for details on how to configure a scripts directory and CGI programs.
Most UNIX Web servers map URLs leading with /cgi-bin to a cgi-bin subdirectory. This subdirectory is located either under or parallel to the document root directory. The cgi-bin directory typically contains only executable files. This is an appropriate location to place your Messenger script file.
Many UNIX Web servers allow CGI programs to reside in directories other than cgi-bin. However, some Web servers might require a specific extension. See your Web server documentation for more information.