[Lazarus] libmysql.dll

Leonardo Rame l.rame at griensu.com
Mon May 24 20:35:37 CEST 2010


On 5/22/2010 13:38, 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?

Make sure you compile for the right Apache version. In your FPC 
directory under /units/... there are 3 subdirectories

.../httpd13
.../httpd20
and
.../httpd22

Delete all but the version you have. For example, if you have Apache 2.2 
then only leave the httpd22 directory there and delete the other two.
This might not be the problem for CGI, but for Apache modules it was 
important when I played with it.

AB





More information about the Lazarus mailing list