Installing Arrow Trader
Installation is easy as 1-2-3.
1. Uploading
After you've downloaded the correct package of Arrow Trader,
create a directory called at in your cgi-bin directory,
and upload the package to it.
2. Unpacking
With your favorite SSH client, make your way to the directory in which you've uploaded Arrow Trader
using the SSH commands written below, and unpack it.
To unpack, type gunzip at2_bsd.tar.gz followed by enter.
Then type tar -xvpf at2_bsd.tar followed by enter.
* This is an example for the FreeBSD package.
** See screenshot at bottom of this site for example.
3. Installing
Now the package is unpacked, run the installer by typing ./installer.cgi
followed by enter.
The installer will ask you for a password. You can use any password you like,
but don't make it longer than 150 characters please.
!! do not load installer.cgi in your browser.
!! delete installer.cgi once you're done with the installation.
*** See screenshot at bottom of this site for example.
That's it!
Now go to http://www.yourdomain.com/cgi-bin/at/admin.cgi and log in!
Be sure to have cookies enabled, otherwise you can't log in.
screenshot of step 2: (click for large version)
screenshot of step 3: (click for large version)
| Basic Bash Commands |
(for ssh client) |
| - pwd |
Display the full path to the the directory you are in |
| - ls |
Display the contents in the directory that you are in |
| - cd ../ |
Go one directory level up. (from /usr/www/domain/htdocs/ to /usr/www/domain/ for example) |
| - cd mydirectory |
Go to another directory ("mydirectory" in this case) |
If you need more help installing Arrow Trader, please ask on the support forum.
Quick Tutorial:
Writing links
To use Arrow Trader, send all outgoing hits to out.cgi
The following syntax options are ready to use:
&l=mylinkname : when a link is clicked with a linkname, this linkname is stored, and can be viewed in your admin.
&s=75 : this means you're skimming traffic; the surfer has a chance of 25% to visit a trade.
&c=1 : this means click pattern #1 is enabled for this link. Read the Click Patterns section in the Admin for more info.
&u=http://www.myurl.com : This is the url you send the surfer to if he doesn't go a trade.
the &u=... part must be at the end of your link!
The & sign in URls is a standard delimiter. To make sure Arrow Trader can handle & signs in the URL you're sending to,
you must place the URL at the end.
Some examples;
<a href=cgi-bin/at/out.cgi?s=55&c=2&l=gallery&u=http://www.somesite.com/galleries/1.html
<a href=cgi-bin/at/out.cgi?l=skimmed&s=0&u=http://www.somesite.com
Incoming hits
Place the following code in your index.shtml file
<!--#include virtual="/cgi-bin/at/in.cgi" -->
for php mainpages use
<?php virtual ("/cgi-bin/at/in.cgi"); ?>
Make sure your file ends with .shtml, so it supports SSI.
To see if SSI (server side includes) is enabled, open your main site,
and check if something like the following lines are on top
<script>document.cookie="atref=noref$$; path=/; expires=Fri, 20-Jun-03 08:40:46 GMT"</script>
<script>document.cookie="atexc=0,1,2,3,4,5,6,$$; path=/; expires=Fri, 20-Jun-03 08:40:46 GMT"</script>
If you still see the #include virtual= .. line, ask your host to enable SSI.
Permissions Table
Whenever the script isn't counting hits, storing trades, or giving internal server error 500 errors,
make sure the permissions of the files are correct before asking on the forum.
In 99% of the cases, wrong permissions are the cause of the problem.
By default, the installer tries to set the right permissions.
| File or Directory |
Permissions |
| D: /cgi-bin/at |
755 |
| F: /cgi-bin/at/*.cgi |
755 |
| D: /cgi-bin/at/data |
755 |
| F: /cgi-bin/at/data/*.dat |
666 |
| D: /cgi-bin/at/data/backup |
755 |
| D: /cgi-bin/at/data/trades |
755 |
| F: /cgi-bin/at/data/trades/*.dat |
666 |
| D: /cgi-bin/at/log |
777 |
| D: /cgi-bin/at/log/in |
777 |
| D: /cgi-bin/at/log/out |
777 |
| D: /cgi-bin/at/log/proxy |
777 |
| D: /cgi-bin/at/sub |
755 |
| F: /cgi-bin/at/sub/*.cgi |
755 |
* In most cases the script will work with /log/* at 666 as well.
|