in reply to windows7 shell permissions, i think

as bulk88 says the problem is in your apache config

[Sat Jan 04 14:24:04 2014] [error] [client 127.0.0.1] Options ExecCGI +is off in this directory: C:/Apache2.2/htdocs/test.cgi

This is in your apache config

# Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI M +ultiViews # . . . Options Indexes FollowSymLinks +Includes

Read the fine comments in the apache config. Either turn on ExecCGI in your htdocs directory, or move your cgi scripts to the cgi-bin directory