Most servers owners do not allow there clients to run cgi. We can disable the cgi by using following code in server main Apache configuration file.
Login in to shell as root user and open httpd.conf file and following line.
Options -ExecCGI
Save file and restart the Apache web server.