
Any Server will (mostly) do
- CGI will not work without a server
- Your Server must allow CGI
- Your CGI application must be written in a language supported by your server
- You can use probably your existing web server
- If you need to test on your local computer, you may install WAMP/XAMPP
- Each Server has a particular requirements about running CGI Applications
Prerequisties
Experience in relevant programming language
- Perl
- Php
- Unix Shell
- c/c++
- HTML/CSS
What is CGI
Common Interface Gateway
- How web browsers submit forms and interact with programs on the server
- Used for simple interaction applications
- Can be used with any programming language
- Often called “CGI Scripts”
- Can be written in any language
- Run in the server, not in a web browser
- Must follow server requirements for running applocations
ANY SERVER WILL (MOSTLY) do
- CGI will not work without a web server
- Your Server must allow CGI
- Your CGI application must be written in a language supported by your server
- You can use your existing web server
- If you need to test on your local computer, you may install WAMP/XAMPP
Some Guidelines for Unix/Apapche users
- Permission – 755 ( aka rwxr-xr-x)
- Filename associates
- .cgi, .pl, .php …etc
- .httaccess
- Options+ExecCGI
- AddHandle cgi-scripts .cgi
- SetHander cgi-script
- Access to server log
Some Guidelines for Windows Servers
Many Windows servers do not support perl or PHP
May require ASP or C#
Usually require specific filename extension
.pl for perl
.php for php
.asp or .aspx for ASP
Access to error log
Check with your server web site or support staff
How CGI works
- Browser Communicates with server over HTTP
- Browser sends a request to the server consisting of header and optional body
- Server sends information to the CGI application
- Environment variables
- Body may be sent in the STDIN stream
- Server sends a response consisting of a header and a body
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND