Now you need to setup a "cgi-bin" directory to store your programs. For security reasons, this directory needs to be made at the top of your home directory, NOT in your "www" directory. These steps will create this directory in your home directory (on the same level as "www") and setup the proper permissions for it:
You can now put your CGI programs in the "cgi-bin" directory. For Perl and other non-compiled CGI programs, you need to set the permissions on them with the following command:
of course, replace your_cgi_program with the name of the CGI program you put in that directory.
If you have a compiled CGI program, such as one written in C or C++, the above command will work, but to be even more security conscious, use this instead:
Now you can create a URL to your new CGI program. In the example, I will use "ssivy" as the user's account name and "counter.cgi" as the name of the CGI program. Substitute your account name and CGI program appropriately.
NOTE: Your CGI program MUST end with .cgi no matter what language it was written in.
CGI Programming on the World Wide Web, published by O'Reilly & Associates, Inc.
Programming Perl, 2nd Edition, published by O'Reilly & Associates, Inc.
