Apache2 Server and CGI lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- salvadorcg · 2019-12-21 11:55 ello. OS: linux (XUbuntu) I'm running an Apacge2 server. Some Web Pages calls a CGI, done with Lazarus. When the CGI runs it is possible to read a TextFile, but I cannot find the way to write any file or execute another program. I've tested for files: 1) AssignFile; rewrite; writeln; CloseFile 2) TFileStream; TMemoryStream; And to call another program to run: tprocess an the rest of possibilities shown in 'Executing External Programs' from free pascal web page. But nothing works... When I run the program directly (not as CGI called by Apache2) everything works fine...  Maybe it's because of pipes beavior (Does Apache2 call with pipes?). Please, could anyone help me ??  Thanks ---------------------------------------------------------------------- MarkMLl · 2019-12-21 12:04 Please don't post duplicates until you're certain nobody's seen the original. Already commented at https://forum.lazarus.freepascal.org/index.php/to pic,47856.msg343645.html#msg343645 MarkMLl