How can one "use fpweb/fcl-web" with LINUX?Missing? What do you have under components/fpweb then?
Does ANYONE know a way to install the components ( fpweb ) under LINUX
since the package ( lpk ) file is missing?
Thanks for ANY helpö.
ls -al /home/pascaldev/lazarus/components/fpweb/weblaz.lpk
-rw-r--r-- 1 pascaldev pascaldev 3867 Feb 18 15:16 /home/pascaldev/lazarus/components/fpweb/weblaz.lpk
<Directory "C:/FastCGI">
Options All
AllowOverride All
Require all granted
</Directory>
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule mod_fcgid.c>
<Directory "C:/FastCGI">
SetHandler fcgid-script
Order allow,deny
Allow from all
</Directory>
ScriptAlias /myfcgid "C:/FastCGI/helloworld.exe"
ScriptAlias /fcgilist "C:/FastCGI/listrecords.exe"
</IfModule>
"so this version might not work with Apache 2.4.1 - does anyone know of a verison that does or have I missed something?"
"The bit I struggled with was that the demos have the listening "port" set to 2015 in the application source (the lpr file) - once you comment this out it seems to work fine with this setup - both applications are launched the first time they are called from the browser and remain in memory for each subsequent request."The port is only used for the mod_fastcgi FastCgiExternalServer mode (and the new Apache 2.3.X+ mod_proxy_fcgi module) . All other modes do not need that line because they are not using a port to listen on.
procedure TMyAction.Get;
begin
for I := 1 to ParamCount do
WriteLn('Param ' + inttostr(I) + ': ' + ParamStr(I));
WriteLn( 'myREMOTE_ADDR: ' + GetEnvironmentVariable('myREMOTE_ADDR') );
WriteLn( 'BROOK_CLT_ENV_HTTP_USER_AGENT: ' + GetEnvironmentVariable(BROOK_CLT_ENV_HTTP_USER_AGENT) );
WriteLn( 'BROOK_SRV_ENV_REMOTE_ADDR: ' + GetEnvironmentVariable(BROOK_SRV_ENV_REMOTE_ADDR) );
WriteLn( 'BROOK_SRV_ENV_X_FORWARDED_FOR: ' + GetEnvironmentVariable(BROOK_SRV_ENV_X_FORWARDED_FOR) );
end;
By the way, if you were to start developing a new web application today... And wanted to use lazarus/fpc... As a matter of fact, you could tell me if the way is still to create fastcgi application, or is there some other way. It's just because I'm new even in this web area, sorryI'm not much of a webdev either, but if you want to create a REST API and want to use fpc, you can use Horse ( https://github.com/HashLoad/horse ).