Run .cgi outside cgi-bin directory
By default runs CGI scripts in /cgi-bin/ folder only. To allow CGI scripts be processed from any folder, you should and uncomment the cgi-script AddHandler directive in the main apache configuration file /etc/httpd/conf/httpd.conf:
AddHandler cgi-script .cgi
Then restart Apache.http://kb.parallels.com/en/193