[Lazarus] fpWeb FCGI Setup

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Fri May 27 12:54:54 CEST 2011



On Fri, 27 May 2011, silvioprog wrote:

>>
>> 4. Start apache
>> 5. Start the test.exe application from a cmd window
>> 6. Navigate to http://127.0.0.1:8080/myfcgi/index from my browser to see:
>> Test
>>
>> Note, your response generation only sends back the text "Test" instead of a
>> proper web page. It should be at least something like
>>
>>  Handled := True;
>>  AResponse.Content := '<html><body>Test</body></html>';
>
> Oh, same error again. :S

The above configuration is quite complicated,  you are mixing several things. 
It can be done much more simple. All you need is the FastCgiExternalServer
directive.

  <IfModule mod_fastcgi.c>
  # The following assumes that the C:/xampp/htdocs/ directory is DocumentRoot.
  <Directory "C:/xampp/htdocs/fcgi">
       Options +ExecCGI
       Order allow,deny
       Allow from all
   </Directory>
   FastCgiExternalServer "C:/xampp/htdocs/fcgi/mytest" -host 127.0.0.1:2015 -idle-timeout 30 -flush
  </ifmodule>

And then the URL
   http://127.0.0.1:8080/fcgi/mytest

should work.

Michael.


More information about the Lazarus mailing list