Add the below line under the virtual host of the domain.
ScriptAlias /cgi-bin/ /home/example/public_html/cgi-bin/
httpd -t
If syntax is ok,
restart apache graceful.
Done
ScriptAlias /cgi-bin/ /home/example/public_html/cgi-bin/
httpd -t
If syntax is ok,
restart apache graceful.
Done