From: Matthias Schoeldgen (uclinux@schoeldgen.de)
Date: Fri Jul 12 2002 - 14:10:08 EDT
Hello Van Duc Uy ! I am using the m68k tree of uClinux under kernel 2.4.17. Van Duc Uy wrote: > > Thanks for you help, > I tried to use user/boa and port it to MIPS platform. now the CGI program > working well but when i browse an HTML file the server report me error on my > browser. How did you do it? My question to you is: Must CGI files be named *.cgi to make them execute ? I successful compiled the boa_indexer and itself it executes fine, but it won't run from boa, nor won't any other CGI. > > An error occured while loading http://192.168.23.210:8080/index.html: > Connection to host 192.168.23.210 is broken > > and at the console i see following message. > > munmap of non-mmaped memory by process 51 (boa): ffffffff I had success with defining HAVE_MMAP 1 in the user/boa/src/defines.h, as uClinux 2.4 has a working mmap call. > This problem was acurred by the system doesn't support mmap(). how can i make > the boa do not use mmap(). If this is really the case, (which i doubt), try undef HAVE_MMAP in the aforementioned 'defines.h' file. > in the boa-0.94.12 i can do that by set #define MAX_FILE_MMAP from 100*1024 > to 0. this is make the boa never do MMAP. but in user/boa from Greg i can not > find and change this. may be the boa is difference version. > > another question for you. > > Attached is my boa.conf. but when i start boa with: boa -c /etc/boa it report > to me look like following: > > iTracer> boa -c /etc/boa > Bad keyword 'ErrorLog' > Error parsing config files, exiting > iTracer> Yes, this is what happended to me, too. i found no other option than to disable the ErrorLog word in the boa.conf. > > after that I have to comment these options in boa.conf , the boa can start. > This is difference from the original boa-0.94.12. why ? > > Best regards, > > On Thursday 11 July 2002 09:49 pm, Ilguiz Latypov wrote: > > This can be related to no-mmu specifics: > > > > a) memory not belonging to the process can be corrupted by the process > > b) vfork usage assumes that the data segment is shared by the parent > > and the child > > c) only _exit() or exec..() are allowed in the end of the child process > > d) the parent will be activated only after the child _exit()s or passes > > control to another program through exec..() > > > > I believe the user/boa module in Greg Ungerer's uClinux distribution > > contains all the necessary fixes. > > > > I myself only tried a different embedded web server from > > http://www.mathopd.org/. I adjusted it to no-mmu case, but succeeded only > > in making it serve the HTTP GET requests. No HTTP POST requests would > > work for me with mathopd on m68k-nommu platform. I attached my > > adjustments. > > > > Ilguiz > > > > On Thu, 11 Jul 2002, Van Duc Uy wrote: > > > now the boa can run seem well with HTML file. but with CGI it encounter > > > problem. when i browse a cgi file I can see the result on the browser. > > > but After executed a CGI program the kernel halt on (dead). > > > -- > Van Duc Uy > Sunyard Linux Embedded System > Mobile : 0918205072 > Email : ducuy@tlnet.com.vn > > ------------------------------------------------------------------------ > Name: boa.conf > boa.conf Type: Plain Text (text/plain) > Encoding: 7bit Hope that helps matthias This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:31 EDT