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
Latest posts by Rajesh Kumar (see all)
- How to Choose Wireless Access Points for Office - December 13, 2024
- Online Real Estate Courses: Navigating the Shift to Digital Education - December 13, 2024
- From Concept to Implementation: IoT Services Redefining Modern Solutions - December 13, 2024