[Lazarus] fpWeb Apache2 Windows

Michael Van Canneyt michael at freepascal.org
Sun May 23 11:12:51 CEST 2010



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:\lazarus\components\fpweb \demo\helloworld\cgi 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.




More information about the Lazarus mailing list