How to enable cgi-scripts to run from any directory?
By default, CGI scripts are being ran from the
/var/www/vhosts/example.com/httpdocs/cgi-bin/ folder only.
To allow CGI scripts to be processed from any folder:
Uncomment the cgi-script AddHandler directive in the main Apache configuration file,
AddHandler cgi-script .cgi
# service httpd restart