29.8. Running CGI Programs
CGI stands for Common Gateway Interface and is a standard method for web servers to run external programs, pass them details of a browser's request, and read back any content that the program generates. CGI programs are one of the simplest ways of adding dynamic pages to your web server, and are relatively easy to set up and develop. Server-side includes (covered in Section 29.9 “Setting Up Server-Side Includes”) are even simpler, but very limited in what they can do.
A CGI program can be written in any language as long as it follows certain rules. The most common language is Perl, but C, Python, PHP, or any other language that can access environment variables and produce output can be used. You can even write shell ...
Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.