Skip to contentSkip to conversation

thttpd and CGI on MPC 850

DISCUSSION Srini Amble 3 participants 3 messages Apr 2, 2003 – Apr 3, 2003

lore
Share & tools
lore
#0 lore raw

Pardon me for posting this message to this mailing list ( it does not quite belong here)

I have "thttpd" (version 2.23beta1) running on my MPC850 board. When I submit a "FORM" which in turn invokes a CGI program (written in C) the console output freezes and I get the error "An error occurred while loading
http://192.168.0.128/cgi-bin/example.cgi" on the browser window. The board is alive because I can ping the board. I can execute the CGI program on the shell without any problem. I would appreciate any wisdom from the community at large which will help me in debugging this problem.

BTW, Identical set of "thttpd", CGI program, and HTML pages works fine on an x86 RH 7.3 host.

Thanks in advance
--
Srini Amble

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 11 lines · Srini Amble

Pardon me for posting this message to this mailing list ( it does not quite belong here)

I have "thttpd" (version 2.23beta1) running on my MPC850 board. When I submit a "FORM" which in turn invokes a CGI program (written in C) the console output freezes and I get the error "An error occurred while loading
http://192.168.0.128/cgi-bin/example.cgi" on the browser window. The board is alive because I can ping the board. I can execute the CGI program on the shell without any problem. I would appreciate any wisdom from the community at large which will help me in debugging this problem.

Quoted 2 lines

BTW, Identical set of "thttpd", CGI program, and HTML pages works fine on an x86 RH 7.3 host.

thttpd's error handing is far from useful. Do what I have had to do in the past. Go into the thttpd source code and add verbose debugging.. Usually the problem comes down to missing libraries or something minor like that.

--Mark

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 8 lines · Mark Hatle
Quoted 7 lines · Srini Amble

Pardon me for posting this message to this mailing list ( it does not quite belong here)

I have "thttpd" (version 2.23beta1) running on my MPC850 board. When I submit a "FORM" which in turn invokes a CGI program (written in C) the console output freezes and I get the error "An error occurred while loading http://192.168.0.128/cgi-bin/example.cgi" on the browser window.

Just a wilg guess: did you check file permissions?

HTH,

-Scop.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/