|
|
|
Linux Apache CGI Scripts
CGI scripts are little programs that can be executed from web browser of from shell. Apache recognizes all files in a CGI-BIN directory as being eligible for execution rather than processing as normal documents. This applies regardless of the file name, so scripts in a CGI-BIN directory don't need to be named "*.cgi" or "*.pl" or whatever. In other words, all files in a CGI-BIN directory are scripts, as far as Apache is concerned. How do I execute my CGI scripts? You should upload your CGI scripts to cgi-bin folder that is located under htdocs. Files that are located in cgi-bin folder are recognized by web-server as CGI programs and run from the shell. To make CGI scripts run at your account you should do the following:
Examples of CGI scripts Perl scripts: PHP scripts: |