Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-07

FastCGI and FpWeb

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luiz Americo Pereira Camara

I've created some CGI applications with fpWeb with success.

I tried to create a FastCGI application (a simple hello world) but when a request is done the program start, Application.Initialize and Application.Run is called. TCustomWebApplication.HandleRequest (I've monitored OnGetModule) is not called. WebModule is not created. The application consumes all cpu.

Using fpc 2.4.0, windows xp, apache 2.2.15, mod_fcgid 2.3.5

Any hints on what going wrong?

It was there any fix in fastcgi/fpweb after 2.4.0?

my apache fcgi specific configuration:

ScriptAlias /fcgi-bin "D:/work/fcgi-bin"
<Directory "D:/work/fcgi-bin">
SetHandler fcgid-script
AllowOverride All
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>

Luiz

Michael Van Canneyt
to Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote 13 lines
I've created some CGI applications with fpWeb with success. I tried to create a FastCGI application (a simple hello world) but when a request is done the program start, Application.Initialize and Application.Run is called. TCustomWebApplication.HandleRequest (I've monitored OnGetModule) is not called. WebModule is not created. The application consumes all cpu. Using fpc 2.4.0, windows xp, apache 2.2.15, mod_fcgid 2.3.5 Any hints on what going wrong? It was there any fix in fastcgi/fpweb after 2.4.0?

Many, but they are all in trunk, I don't know if any fixes have been merged.

Maybe you can try to copy the fastcgi units over from trunk, and use those to compile your application.

Michael.

Luiz Americo Pereira Camara
to Michael Van Canneyt
Michael Van Canneyt wrote 24 lines
On Sat, 3 Jul 2010, Luiz Americo Pereira Camara wrote: > I've created some CGI applications with fpWeb with success. > > I tried to create a FastCGI application (a simple hello world) but > when a request is done the program start, Application.Initialize and > Application.Run is called. TCustomWebApplication.HandleRequest (I've > monitored OnGetModule) is not called. WebModule is not created. > The application consumes all cpu. > > Using fpc 2.4.0, windows xp, apache 2.2.15, mod_fcgid 2.3.5 > > Any hints on what going wrong? > > It was there any fix in fastcgi/fpweb after 2.4.0? Many, but they are all in trunk, I don't know if any fixes have been merged. Maybe you can try to copy the fastcgi units over from trunk, and use those to compile your application.

Compiled fastcgi plus fclweb from trunk. Unfortunately it also does not worked (Attached patch to compile with fpc240).

Does anybody has experience using fpWeb with FastCGI?

Luiz

Show quoted text 7 lines
Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal