I'm trying to call a c++ cgi from a form-based web page. It takes an input string and produces runtime data based on the input to draw a graph. My example c++ mycode.C is
I compiled it to mycode.cgi, I can run this cgi from command line, it shows the graph. But when I called this cgi by submitting a form from a web-page. It didn't load the graph, it gave a general server error message. The web log error was:
"AH01215: sh: gnuplot: command not found
AH01215: pclose returned error
End of script output before headers: mycode.cgi"
I'm trying to call a c++ cgi from a form-based web page. It takes an input string and produces runtime data based on the input to draw a graph. My example c++ mycode.C is
I compiled it to mycode.cgi, I can run this cgi from command line, it shows the graph. But when I called this cgi by submitting a form from a web-page. It didn't load the graph, it gave a general server error message. The web log error was:
"AH01215: sh: gnuplot: command not found
AH01215: pclose returned error
End of script output before headers: mycode.cgi"
test.html is
Thanks a lot!