Aha, i see. it seems to me that there would be another way.
Secondly, I prepare a simple test cgi application, whenever executing the application on the console, it doesnt produce any output. To open the app with the firefox I get the same 500 Internal Server error. Tested with the Ubuntu 10.04, Lazarus SVN 25572, FPC 2.4.0.
One last thing is spidersample is executed without any error.
Thanks.