Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-27 Thread Marcos Douglas
Michael, Here is the patch to fix that on Windows: http://bugs.freepascal.org/view.php?id=30073 Regards, Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-26 Thread Marcos Douglas
On Tue, Apr 26, 2016 at 10:55 AM, Marcos Douglas wrote: > On Tue, Apr 26, 2016 at 3:39 AM, Michael Van Canneyt > wrote: >> Well, time is of course an issue, but more importantly, I do not have ISS to >> test with. >> >> I think that PATHINFO needs to be corrected in custcgi.pp: >> >> Procedure T

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-26 Thread Marcos Douglas
On Tue, Apr 26, 2016 at 3:39 AM, Michael Van Canneyt wrote: > Well, time is of course an issue, but more importantly, I do not have ISS to > test with. > > I think that PATHINFO needs to be corrected in custcgi.pp: > > Procedure TCGIRequest.InitFromEnvironment: > > Something like If Pos('IIS', Se

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-26 Thread Marcos Douglas
On Mon, Apr 25, 2016 at 4:51 AM, Michael Schnell wrote: > Not believing that FCGI will work decently with IIS, my colleagues > successfully used a different approach to use their (Delphi) programs via > IIS in the Internet. FCGI works very well on IIS (until now). Regards, Marcos Douglas ___

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-25 Thread Michael Van Canneyt
On Mon, 25 Apr 2016, Marcos Douglas wrote: On Mon, Apr 25, 2016 at 3:57 AM, Michael Van Canneyt wrote: Yes, this is a normal response, it seems ? Well, I was thinking if an Action should have more priority to execute if I call it directly on URL — but I don't know if the 'Module reques

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-25 Thread Michael Schnell
Not believing that FCGI will work decently with IIS, my colleagues successfully used a different approach to use their (Delphi) programs via IIS in the Internet. They did a small ISAPI transfer DLL and did the business logic in a Windows Service They linked the two Delphi programs via RemOBJ.

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-25 Thread Marcos Douglas
On Mon, Apr 25, 2016 at 3:57 AM, Michael Van Canneyt wrote: > You always need to specify 2 paths: > > http://localhost:2015/fcgitest.exe/pdf/act1/ > > Unless you have set a default module and name in the application: > > AllowDefaultModule:=True; > DefaultModuleName:='pdf'; > PreferModuleName:

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-24 Thread Michael Van Canneyt
On Sun, 24 Apr 2016, Marcos Douglas wrote: When you do, please save the contents of PATHINFO to some file, and send it here, so I can examine it and adapt the implementation so it can handle IIS as well. Hi, Doesn't matter if is CGI or FastCGI. Same problem. I did more tests. In my exampl

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-24 Thread Marcos Douglas
On Sun, Apr 24, 2016 at 6:21 PM, Michael Van Canneyt wrote: > > > On Sun, 24 Apr 2016, Marcos Douglas wrote: > >>> http://localhost:2015/fcgitest.exe/pdf/act1 >>> >>> ...but it does not solve the problem. :( >> >> >> My env: Lazarus 1.5 r50201M FPC 2.6.5 i386-win32-win32/win64 >> >> So I took his

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-24 Thread Michael Van Canneyt
On Sun, 24 Apr 2016, Marcos Douglas wrote: http://localhost:2015/fcgitest.exe/pdf/act1 ...but it does not solve the problem. :( My env: Lazarus 1.5 r50201M FPC 2.6.5 i386-win32-win32/win64 So I took his example here \packages\fcl-web\examples\helloworld Compiled it. ISS configured to port

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-24 Thread Marcos Douglas
On Sun, Apr 24, 2016 at 9:26 AM, Marcos Douglas wrote: > On Sun, Apr 24, 2016 at 3:58 AM, Michael Van Canneyt > wrote: >>> Browser: >>> http://localhost:2015/fcgitest/pdf/act1 >>> >>> Error: >>> >>> The application encountered the following error: >>> Error: Could not determine HTTP module for re

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-24 Thread Marcos Douglas
On Sun, Apr 24, 2016 at 3:58 AM, Michael Van Canneyt wrote: >> Browser: >> http://localhost:2015/fcgitest/pdf/act1 >> >> Error: >> >> The application encountered the following error: >> Error: Could not determine HTTP module for request "fcgitest.exe" > > > Why do you put fcgitest in the request ?

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Michael Van Canneyt
On Sun, 24 Apr 2016, Marcos Douglas wrote: On Sun, Apr 24, 2016 at 2:40 AM, Michael Van Canneyt wrote: I've found the problem: The Application.Port cannot be setted. I think this property (Port) is only used in a self-contained server application. Am I right? You are right, OK, thank

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Marcos Douglas
On Sun, Apr 24, 2016 at 2:40 AM, Michael Van Canneyt wrote: > >> I've found the problem: >> The Application.Port cannot be setted. >> >> I think this property (Port) is only used in a self-contained server >> application. Am I right? > > > You are right, OK, thanks. Now I have another problem on

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Michael Van Canneyt
On Sun, 24 Apr 2016, Marcos Douglas wrote: On Sun, Apr 24, 2016 at 1:31 AM, Marcos Douglas wrote: Hi, I'm trying to use FastCGI on IIS without success. https://www.iis.net/configreference/system.webserver/fastcgi My environment is: - FPC 2.6.5 - Lazarus 1.5 - IIS - Windows 10 The CGI prot

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Marcos Douglas
On Sun, Apr 24, 2016 at 1:31 AM, Marcos Douglas wrote: > Hi, > > I'm trying to use FastCGI on IIS without success. > https://www.iis.net/configreference/system.webserver/fastcgi > > My environment is: > - FPC 2.6.5 > - Lazarus 1.5 > - IIS > - Windows 10 > > The CGI protocol works fine, but FastCGI

[fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Marcos Douglas
Hi, I'm trying to use FastCGI on IIS without success. https://www.iis.net/configreference/system.webserver/fastcgi My environment is: - FPC 2.6.5 - Lazarus 1.5 - IIS - Windows 10 The CGI protocol works fine, but FastCGI not. I got an error 500. If I change the fpFCGI to fpcgi — and comment the A