This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can't get thttpd CGI working on DM816x EVM

Hi,

I have a DM816x EVM and I am trying to get a CGI program running on it.  I am using a CGI program I compiled from code I downloaded at www.boutell.com/cgic.  The code has a GCI library for C and a sample application (cgictest.cgi) to put the library through its paces.  I successfully compiled the Boutell code with CCS 5.1 and put it on my EVM in the /srv/www/cgi-bin directory.

When I try to point my web browser to the cgictest.cgi program on the EVM I get the message:

500 Internal Error

There was an unusual problem serving the requested URL 'cgi-bin/cgitest.cgi'.

What am I doing wrong here?

I would like to use thttpd to serve web pages which would be used to set up our network appliance.

Paul Randall

  • I also tried writing a "Hello World CGI program" in Perl, which I got from CGI101.com.

    I put it into the {HOME}/targetfs/srv/www/cgi-bin/ folder and did a "chmod 755 first.cgi" to make it executable.

    I get the same error I was getting when I tried the cgic example I tried above.

    Why can't I get my CGI programs to run????????

    My first.cgi Perl CGI program:

    #!/usr/bin/perl -wT
    print "Content-type: text/html\n\n";
    print "Hello, world!\n";

    Paul

  • So, just to test it out, I installed thttpd for Ubuntu using the Synaptic Package Manager.

    Initially, I was able to serve HTML pages with it, but I got the same error when trying to run a CGI program that I did when trying to run the CGI program on the 816X EVM.

    Then, I edited the /etc/thttpd/thttpd.conf file and I changed the configuration from chroot to nochroot.  Once I made this change, I was able to run the CGI programs I had created.

    However, when I made the same change on the 816X EVM, I still get the error message.

    Can someone please help me?

    Paul