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