If you would like to force Apache to allow CGI script then just follow below simple steps -
1. Create .haccess file under the directory from where you would like to run the script.
2. Add below code -
Options +ExecCGI
AddHandler cgi-script .cgi .pl
AddHandler cgi-script .cgi .pl
3. Save the file.
That's it!