Questions tagged [cgi]

1) The Common Gateway Interface is a standard defining how web server software can delegate web page generation to a stand-alone application or executable file. 2) Computer Generated Imagery

This tag is mostly used for the Common Gateway Interface (CGI), which is a standard (see RFC 3875: CGI Version 1.1) that defines how web server software can delegate the generation of web pages to a stand-alone application, an executable file. Such applications are known as CGI scripts; they can be written in any programming language, although scripting languages are often used.

Less commonly on Stack Overflow, CGI may also be used to tag questions regarding Computer Generated Imagery.

See also

5098 questions
761
votes
12 answers

What is Common Gateway Interface (CGI)?

CGI is a Common Gateway Interface. As the name says, it is a "common" gateway interface for everything. It is so trivial and naive from the name. I feel that I understood this and I felt this every time I encountered this word. But frankly, I…
claws
  • 47,010
  • 55
  • 140
  • 185
151
votes
5 answers

How Python web frameworks, WSGI and CGI fit together

I have a Bluehost account where I can run Python scripts as CGI. I guess it's the simplest CGI, because to run I have to define the following in .htaccess: Options +ExecCGI AddType text/html py AddHandler cgi-script .py Now, whenever I look up web…
Eli Bendersky
  • 231,995
  • 78
  • 333
  • 394
134
votes
4 answers

What are WSGI and CGI in plain English?

Every time I read either WSGI or CGI I cringe. I've tried reading on it before but nothing really has stuck. What is it really in plain English? Does it just pipe requests to a terminal and redirect the output?
Blankman
  • 236,778
  • 296
  • 715
  • 1,125
119
votes
12 answers

Problem in running .net framework 4.0 website on iis 7.0

Hey I got problem in running .NET framework 4.0 website on IIS7.0. the error I got is like: HTTP Error 404.2 - Not Found "The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server". Module…
prashant patel
  • 1,225
  • 2
  • 8
  • 7
102
votes
8 answers

How can I troubleshoot my Perl CGI script?

I have a Perl script that isn't working and I don't know how to start narrowing down the problem. What can I do? Note: I'm adding the question because I really want to add my very lengthy answer to Stackoverflow. I keep externally linking to it in…
brian d foy
  • 121,466
  • 31
  • 192
  • 551
75
votes
4 answers

Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?

I'm just wondering what the differences and advantages are for the different CGI's out there. Which one would be best for python scripts, and how would I tell the script what to use?
Parker
  • 7,943
  • 7
  • 60
  • 91
65
votes
8 answers

How to get rid of non-ascii characters in ruby

I have a Ruby CGI (not rails) that picks photos and captions from a web form. My users are very keen on using smart quotes and ligatures, they are pasting from other sources. My web app does not deal well with these non-ASCII characters, is there a…
Andre Garzia
63
votes
14 answers

Is it faster to access data from files or a database server?

If I have a static database consisting of folders and files, would access and manipulation be faster than SQL server type databases, considering this would be used in a CGI script? When working with files and folders, what are the tricks to better…
Jeremy Gwa
  • 2,065
  • 7
  • 23
  • 31
47
votes
4 answers

mod_wsgi, mod_python, or just cgi?

I've been playing around with my own webserver (Apache+Ubuntu) and python. From what I've seen there are 3(?) main ways of doing this: Apache configured to handle .py as cgi Apache configured to use mod_python that is now outdated(?) Apache…
Wayne Werner
  • 41,650
  • 21
  • 173
  • 260
46
votes
6 answers

What is difference between PHP cli and PHP cgi?

I just found two executable files, php-cgi.exe and php.exe in the bin folder of the WAMP server on my laptop. I am learning PHP and could not figure out the difference. What is difference between them?
user1208865
  • 517
  • 2
  • 5
  • 7
46
votes
8 answers

How do I configure Apache 2 to run Perl CGI scripts?

I would like to configure Apache 2 running on Kubuntu to execute Perl CGI scripts. I've tried some steps that I came across by googling, but nothing seems to work. What is the right way of achieving this?
None
36
votes
3 answers

What is HTTPD exactly?

I mean is "httpd" only used by Apache for the download of the software or is it used by other websites as well? Also is it necessary to have httpd to run "cgi" or not? And why does Apache use httpd to download the http server instead of having it…
user5763804
32
votes
1 answer

Special Characters in Content-Disposition filename

My question is a duplicate of How to encode the filename parameter of Content-Disposition header in HTTP? But since that question was asked a long time ago and there is still no satisfying answer (in my opinion), I would like to ask again. I develop…
juergen d
  • 186,950
  • 30
  • 261
  • 325
26
votes
6 answers

Deploying Go web applications with Apache

I can not find a mod_go for deploying Go web applications. Is there any other way to run web applications in Go with an Apache web server (or even IIS)? Update: Now after doing Go full time for nearly a year; doing this (Go with Apache) is…
Kaveh Shahbazian
  • 11,680
  • 11
  • 71
  • 133
25
votes
9 answers

Pros and Cons of different approaches to web programming in Python

I'd like to do some server-side scripting using Python. But I'm kind of lost with the number of ways to do that. It starts with the do-it-yourself CGI approach and it seems to end with some pretty robust frameworks that would basically do all the…
Tomas Sedovic
  • 34,313
  • 9
  • 36
  • 30
1
2 3
99 100