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?

Recommended Answers

All 2 Replies

Does the file have global execute privileges?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.