[Lazarus] Web Module not works on Linux
Joost van der Sluis
joost at cnoc.nl
Sat Nov 20 22:28:47 CET 2010
On Sat, 2010-11-20 at 21:07 +0100, Michael Van Canneyt wrote:
>
> 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.
I've looked into it again, why this was done. And it is for example
impossible to use an .lrs file without the lResources unit. Now this is
not needed anymore so this might have solved the problem.
> > 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.
Well, without the .lrs files I still have one problem when I omit
lResources from the project. I always get an exception 'resource not
found' for every datamodule, webmodule or webpage in an application. But
thereafter it works. I discovered that this is in debug-mode only. The
exception is catched in a try-except block.
Joost.
More information about the Lazarus
mailing list