How to enable Cgi-bin for any folder?
Create a .htaccess file and place the same in the folder you want to enable Cgi-bin to.
Place the following in the .htaccess file
Options +ExecCGI
AddHandler CGI-script CGI
AddHandler cgi-script plpico -w /etc/httpd/conf/site#/enable-cgiOptions +ExecCGI