[Lazarus] fpWeb FCGI Setup

Michael Van Canneyt michael at freepascal.org
Thu May 26 21:02:12 CEST 2011



On Thu, 26 May 2011, silvioprog wrote:

>
> 1. Stop Apache;
> 2. Download the "mod_fastcgi-2.4.6-AP22.dll" and copy to
> "C:\xampp\apache\modules";
> 3. Adds in the "C:\xampp\apache\conf\httpd.conf":
>  LoadModule fastcgi_module "C:/xampp/apache/modules/mod_fastcgi-2.4.6-AP22.dll"
>  <IfModule mod_fastcgi.c>
>   ScriptAlias /myfcgi "C:/xampp/htdocs/fcgi/test.fcgi"
>   <Directory "C:/xampp/htdocs/fcgi">
>     SetHandler fastcgi-script
>     Order allow,deny
>     Allow from all
>   </Directory>
>   FastCgiExternalServer "C:/xampp/htdocs/fcgi/test.fcgi" -host
> 127.0.0.1:2015 -idle-timeout 30 -flush

do not use SetHandler fastcgi-script, do not name the URL .fcgi.

Use a neutral name:

    FastCgiExternalServer "C:/xampp/htdocs/fcgi/test" -host  127.0.0.1:2015 -idle-timeout 30 -flush

I found the error why mod_fcgid does not work, but it will not be easy to fix.

Michael.




More information about the Lazarus mailing list