STEP FOUR: Configuring the commissions.cgi program This step goes over the configuration and options for the commissions.cgi program, which is used by the resellers to view your commissions. It also describes the changes needed to the commissions.html file.
ABOUT THE SCRIPT NAME
Each of the scripts within Affiliate Master are NOT limited to the given file name. In this example, we use commissions.cgi as the name of the script. You name rename this file to anything you desire, except it must end with .cgi or .pl (example: payout.cgi, sales.pl). If you change the name, just ensure you use the new name anywhere commissions.cgi is stated below.
WHERE TO PLACE COMMISSIONS.CGI The best place to setup the commissions.cgi script is in the root directory of your server, as this gives the shortest website URL address (example: http://www.yourserver.com/commissions.cgi). If you are not able to run cgi scripts from your root directory, you will need to install the program in your cgi-bin directory (sometimes called cgibin or just cgi). The website URL would then be: http://www.yourserver.com/cgi-bin/commissions.cgi
Pull up the commissions.cgi file in your favorite text editor. The first key item to review (and this holds true for all the cgi programs) is the very first line of the program. This is the path to Perl5, which we looked up in STEP ONE.
Be sure this path is pointed to Perl5 on your server. The path should look like:
Scroll down to line 11 in the program, to the line that is: This setting is used to define the name of the reseller database file, which stores all the resellers information. You may configure this setting to point to a Virtual Server Path, as discussed in STEP ONE. This will add a little more security if you are able to place the file below the website root directory.
Example: NOTE: This file name should be the same in the placeorder.cgi, commissions.cgi and commissions_admin.cgi files.
CONFIGURING THE COMMISSIONS.HTML This webpage can be customized as desired, just be sure to keep the main form fields and their names intact otherwise the commissions may not work correctly. The only item that must be modified in this file is the path to the commissions.cgi program itself. Load the commissions.html file in a text editor and search for http://www.yourserver.com/cgi-bin/commissions.cgi Change this path to the correct path on your server. |