I was writing a C++ CGI-BIN program, but couldn't get it to work in Linux Apache web server. It just seemed to display the c++ program as binary garbage in the Firefox browser, it didn't execute it like a CGI-BIN is supposed to. I put it in the /CGI-BIN/ directory and then it just didn't recognise it at all it seemed?
The cgi-bin program has all execute permissions, I log on as root in Linux when I use Firefox and try to view the output of the cgi-bin program. The cgi-bin program returns all output through Apache correctly, but does not recognize the stdin command line args from a form-post.