I wasn't able to see the files using the links you gave but if you have the cgi-bin setup correctly, you should just have to set the permissions for that directory. This is done at the system level and not in the apache config files. In some distros of linux apache runs as user = apache and group = apache while in others they are both set to "nobody". Your system is not letting your server have access to this directory or file so it gives the error. To fix this you need to set permissions for this directory by saying who can read the file or directory, who can write to it and who can execute it. If you type ls -l at the command line, you will see a listing of whatever directory you are in. On the far left it tells you who can do what to the file a "-" means the bit is not set, an "r" means read, a "w" means write and an "x" means execute. It should have 10 spaces filed with one of those letters or a dash. The first space is either a "-" or "d". if it's a "d" this means it's a directory. It could also be an "s" but we won't go into that right now. The other 9 are for user, group and other with 3 spaces each. Now in the middle of the screen you will see the owner and group. If you created the file as root you will see root in 2 columns. user/owner root and group root. Then the last column is the dir or file name.
You can do 2 things. The first is to change the user/owner and group of all the directories and files or you can change the permissions of the directories and files. In the first case, you would use chown like this:
chown -R apache:apache /var/
The -R will cause cgi-bin and everything below it to change the user:group to apache.
The second and most popular way is to run chmod to just change permissions. The syntax is as follows:
chmod [ugoa] (user, group, other, all) [+-=] (add or remove permission) [filename]
For example:
chmod a+rwx /var/
would give everybody read, write and execute permission in that dir. Chmod can also take a number. This would be the same as the example above:
chmod 777 /var/
Lets say I want to give everybody read and execute permision but only want the owner to have write permission. The number would be 755. Here is how you come up with this number. Read has a value of 4, write = 2 and exec = 1. Imagine a table like this:
|user|group|other|
read=4 | X | X | X |
write=2 | X | | |
exec=1 | X | X | X |
Tatal | 7 | 5 | 5 |
If you have a GUI file manager, you can pretty much forget what I said
