
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 Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals