[uClinux-dev] still haserl problems with boa on uCLinux

Michael Schnell mschnell at lumino.de
Mon Jun 9 10:16:37 EDT 2008


Hi Experts,

I'd like to do the configuration script with haserl.

I got haserl itself running perfectly in the uCLinux distribution. 

It parses the input script when same is used as an application (chmod 777 has; ./has) and outputs exactly what I think it should.

But when executing the file via the browser and boa I get:

"500 Server error".

This means boa does try to execute the file. (if e.g. executable is not set on the file I get " forbidden" instead).



If I do this and do

./has > ss

To move the output of haserl into a file and create another script file

sss:
#!/bin/msh
echo /home/httpd/cgi_bin/ss


Now when browsing to /cgi_bin/sss, I get the correct web page via boa, thus using a script as cgi-program with boa does work.

But when browsing to /cgi_bin/has, which should do exactly the same, I still get "500 Server error" .




Now I tried to enable the log and error scripts for boa in "menuconfig"

This does work: I do get decent entries in the log script and after killing the boa process I do see appropriate entries in the error script, too.

But when I access "has" via boa (with scripts enabled) the complete system hangs. I still do get "500 Server error" but afterwards everything is dead. (other than with boa logs disabled).



I attach the content of the haserl script file and the output of haserl at the end of the message.

When using the same versions of boa and haserl and a very similar script file (dropping the shell= specification) this runs perfectly nice.

Any idea what to do to debug this  ?

Thanks a lot

-Michael



=================================================
/home/httpd/cgi-bin> ls -l
-rwxr--r--    1 1000     100         19820 Nov 29 16:00 cgi_demo
-rwxrwxrwx    1 root     root          371 Nov 29 16:16 has
/home/httpd/cgi-bin> cat has
=================================================

=================================================
#!/bin/haserl --shell=/bin/msh
Content-type: text/html

<HTML>
<HEAD>
<TITLE>A test web page</TITLE>
</HEAD>
<BODY>
<H1>Test Page</H1>
<P>
If you are seeing this page,  then your web server is working,  and now
you need to create some nice pages to replace this one.
<P>
If everything has built correctly then the Demo should be here.
<% echo 1234 %>
</BODY>
</HTML>
=================================================


=================================================
/home/httpd/cgi-bin> ./has
Content-type: text/html

<HTML>
<HEAD>
<TITLE>A test web page</TITLE>
</HEAD>
<BODY>
<H1>Test Page</H1>
<P>
If you are seeing this page,  then your web server is working,  and now
you need to create some nice pages to replace this one.
<P>
If everything has built correctly then the Demo should be here.
1234

</BODY>
</HTML>
/home/httpd/cgi-bin>
=================================================




More information about the uClinux-dev mailing list