[Lazarus] fpWeb Apache2 Windows

Leonardo Rame l.rame at griensu.com
Mon May 24 04:13:08 CEST 2010


Hi Michael, thanks for replying.

I created a basic example called 'cgiproject1' consisting of only an TFPWebModule's OnRequest method like this, with no action:

procedure TFPWebModule1.DataModuleRequest(Sender: TObject; ARequest: TRequest;
AResponse: TResponse; var Handled: Boolean);
begin
    AResponse.Content := 'Hello';
  Handled := True;
end;

Without environment vars, the result is this:

exception at 000000010003B5DC:
No REQUEST_METHOD passed from server.

If I set the environment var REQUEST_METHOD using "set REQUEST_METHOD=POST", or "GET", the result is this:

An unhandled exception occurred at $000000010001FC05 :
EWriteError : Stream write error
$000000010001FC05
$0000000100034C77
$0000000100037D54
$0000000100033DCA
$00000001000015DE  main,  line 13 of giproject1.lpr

It doesn't matter if I set QUERY_STRING and PATH_INFO, the result is the same.

Leonardo.

----- Mensaje original -----
Fecha:    Sun, 23 May 2010 11:12:51 +0200 (CEST)
De:       "Michael Van Canneyt" <michael at freepascal.org>
Para:     "Lazarus mailing list" <lazarus at lists.lazarus.freepascal.org>
Asunto:   Re: [Lazarus] fpWeb Apache2 Windows

 On Sat, 22 May 2010, Leonardo Rame wrote:  > Hi, I'm trying to do some tests of fpWeb on Windows Seven 64bits using Apache2 (32bits). The first test I did was compiling the HelloWorld sample from c:lazaruscomponentsfpweb demohelloworldcgi and trying to execute it, but it doesn't work (500 Internal server error). > > This is what my Apache's logs in error.log file: > > [Sat May 22 17:12:34 2010] [notice] Child 996: Child process is running > [Sat May 22 17:12:34 2010] [notice] Child 996: Acquired the start mutex. > [Sat May 22 17:12:34 2010] [notice] Child 996: Starting 64 worker threads. > [Sat May 22 17:12:34 2010] [notice] Child 996: Starting thread to listen on port 8080. > [Sat May 22 17:21:37 2010] [error] [client 127.0.0.1] malformed header from script. Bad header=  $0000000100015385: helloworld.exe > > Any hint?  Can you execute the module in a minimal test environment (not apache) ? (you need at least REQUEST_METHOD QUERY_STRING and PATH_INFO environment variables)  I have a test-cgi application ready, but still need to put it in Subversion. (it sets up a minimal CGI environment, and then executes the CGI application - easier to debug)  Michael.  -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20100523/a6b3a665/attachment-0004.html>


More information about the Lazarus mailing list