Configuring for cgi

Alles, was den Apache betrifft, kann hier besprochen werden.

Configuring for cgi

Postby dwlamb » 20. August 2010 22:29

I am attempting to set-up a development server for CGI applications written in C++. Apache is working okay in terms of finding the cgi-bin but rather than run the script, it serves the cgi file being called as a download.

The cgi scripts are compiled and known to be working error-free. I've looked through any documentation I can find. Much of it is based on Perl and CGI rather than C++ and CGI. What am I missing to get this to function as it should?
Posts: 3
Joined: 20. August 2010 22:17

Re: Configuring for cgi

Postby glitzi85 » 23. August 2010 08:07

Does your script send the correct HTTP-Headers? If CGI is working in general you can check with this script (if you are on a linux box):
Code: Select all
echo "Content-type: text/html\n"

echo "Hello World"

If this script is displayed correct, the problem is your c++ program, otherwise it might be a configuration problem.

User avatar
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Return to Apache

Who is online

Users browsing this forum: No registered users and 4 guests