[Lazarus] Web Module not works on Linux

Michael Van Canneyt michael at freepascal.org
Sat Nov 20 21:07:42 CET 2010



On Sat, 20 Nov 2010, Joost van der Sluis wrote:

> On Fri, 2010-11-19 at 23:31 +0100, michael.vancanneyt at wisa.be wrote:
>>
>> On Fri, 19 Nov 2010, silvioprog wrote:
>>
>>> Hi guys,
>>>
>>> Attached I send a project to reproduce the error. To reproduce the error,
>>> adds in "cgitest.lpr" the directive:
>>>
>>> {$DEFINE SOLVES_ERROR}
>>>
>>> On Ubuntu-10.10 I receive this error:
>>>
>>> -------
>>> Internal Server Error
>>>
>>> The server encountered an internal error or misconfiguration and was unable
>>> to complete your request.
>>>
>>> Please contact the server administrator, webmaster at localhost and inform them
>>> of the time the error occurred, and anything you might have done that may
>>> have caused the error.
>>>
>>> More information about this error may be available in the server error log.
>>> Apache/2.2.16 (Ubuntu) Server at localhost Port 80
>>> -------
>>>
>>> In Windows (7) works normally.
>>>
>>> How can I fix this?
>>>
>>> PS. I'll need to use the unit Interfaces.
>>
>> Well, you can not use it in a CGI application.
>> Interfaces is for GUI support. A CGI by definition has no GUI.
>>
>> It makes no sense to use it. Why would you need that ?
>
> For example to use the streaming mechanisms (lfm, resources)?

You can perfectly use them without the interfaces unit. 
I do it all the time.

> Compile for the widgetset 'nogui', it's made exactly for this purpose.

I don't know who ever thought of that widgetset, but I 
suspect his brain was taking a short holiday at the time.
It serves no purpose whatsoever.

Michael.




More information about the Lazarus mailing list