What does it mean when we say an application can run in CGI mode? I was reviewing the features of various CMS systems on cmsmatrix.org and ‘CGI mode support’ was listed as a feature. What are the other ‘modes’ in which a web application can run?
Share
Basically, CGI implies that the webserver will execute an external process, get its result (a generated HTML page, an image, …) and send it back to the client.
This has major drawbacks because it launchs the external process each time it is needed, so this can be a big overhead.
You have also FastCGI that launch the external process once, and reuses it when needed.
But usually, languages are integrated directly in the webserver. For example, Apache has a mod_perl module to execute perl scripts, instead of executing perl scripts via CGI