To run CGI scripts with Apache, you need to _.
compile the script with a CGI compiler
make the script executable
change the ownership of the script to Apache
make the script executable and set the httpd_enable_cgi SELinux boolean
httpd_enable_cgi