Cgi is the common gateway interface, used for interactive webpages.
Questions tagged [cgi]
279 questions
3
votes
3 answers
Can advanced web servers be faster than basic web servers?
A bsic web server such as python SimpleHTTPServer or THTTPD reads static files with least process; thus is quite fast. Normally, adding more features to create an advanced web server (but still lightweight such as nginx) will slow down this…

Googlebot
- 1,047
- 2
- 15
- 30
3
votes
1 answer
Changing server API from CGI to FastCGI
I have a server set up on CentOS and I need to change the API from CGI to FCGI (Someone else set this up initially) for x-cache to work (we need this as we have a TV appearance on monday and are expecting high-load).
The server is a dedicated Dell…

Myles Gray
- 659
- 4
- 12
- 33
3
votes
1 answer
Execute CGI script as specific user with Apache
I want to run a specific (perl) CGI script on my webserver. This works reasonable, but it would work immensely better if the CGI script would be running as the currently authenticated user.
Is there a way to do that, e.g. with a wrapper and…

dtech
- 633
- 2
- 10
- 27
3
votes
3 answers
Are there benefits in using CGI in a large scale Apache2 server or should I just use FASTCGI?
I have a web product done in PHP that theoretically should support a lot of users. Problem is, I just left the apache as it is and found out its just running as CGI. Is this very wrong and I should do it in fastcgi or just leave it as it is?

gianebao
- 133
- 4
3
votes
2 answers
how to spawn php-cgi automatically when it exits?
I am using php-cgi on ubuntu(with nginx), and the command to start it is:
spawn-fcgi -a 127.0.0.1 -p 9100 -f /usr/bin/php-cgi -P /var/run/fastcgi-php.pid
but sometimes the php-cgi process will exit automatically, and I need to start it manually. Is…

Bin Chen
- 165
- 4
3
votes
2 answers
PHP as a CGI binary vs. PHP as an Apache module
What are the benefits of running PHP as a CGI binary compared to running PHP as an Apache module? Are there:
Security benefits?
Stability benefits?
Performance benefits?
I've always installed and used PHP as an Apache module so I'm curious if…

Aaron
- 722
- 2
- 10
- 19
3
votes
4 answers
How to add a pool to FPM (nginx) without reload/restart fpm itself?
Im building an environment (on a ubuntu 10.04.02 machine) to handle a website with many (should support at least 1000) subdomains, each of them served by a different FPM pool, with a different user.
So nothing new; My problem is to create (and…

Strae
- 457
- 1
- 8
- 22
3
votes
1 answer
Apache mod_perl vs. mod_cgi: How do I decide which to use?
What factors should I consider when deciding whether to use Apache's mod_perl or mod_cgi, when configuring an existing web application?

smokris
- 705
- 3
- 13
- 27
3
votes
3 answers
Is there an alternative to cgi/fastcgi
Just curious to know, is there any other alternative to cgi/fastcgi?

kalyan
- 195
- 2
- 7
3
votes
1 answer
Selective setuid root or running an application as root ? (web server/cgi context)
Well we have an in house server manager (like Webmin, only more specific), comprising of a bunch of C CGI programs and CGI Perl scripts, some of which require root privileges (adding system users, managing passwords, dealing with mail queues etc. )…

Mohit Chawla
- 486
- 1
- 4
- 11
2
votes
1 answer
.htaccess RewriteEngine on breaks CGI Application
My .htaccess file is in the root directory of my website, and I narrowed down a problem to the single line of code RewriteEngine on. How do I know it's this piece of code? Because I deleted the entire .htaccess file except for RewriteEngine on as a…
Karl
2
votes
1 answer
Error trying to get munin running as a cgi
I'm just cutting my teeth getting munin running (latest 1.4.1 on centos) . It's working but I want it as a cgi frontend so I'm not generating graphs constantly when I look at them a few times a day (obvious).
I've followed the directions and keep…
Robert Accettura
2
votes
1 answer
Returning HTTP status 204 for GET /generate_204 using uhttpd?
To deal with the Android captive portal detection for my specific setup, I need to return an HTTP status code 204 whenever I get a GET request for /generate_204. I currently use uhttpd as my webserver, so I'm wondering whether this is possible to do…

Markus A.
- 419
- 7
- 18
2
votes
1 answer
Running Web.py as an IIS CGI Script
I recently wrote a web.py-based stand alone web service. Due to unforeseen circumstances, the service has to run through IIS. I've heard that it's possible to run web.py as a CGI in IIS, but I'm having trouble setting it up. I can run Python CGI…

Mike Caron
- 133
- 1
- 3
- 7
2
votes
1 answer
Modify file before sending to cgi handler
I'm making a portable installation of Apache to run Bugzilla. This installation has a portable version of Perl and it's the one I want mod_cgi to use. However, mod_cgi doesn't have any way to configure the intended binary (or binaries per file…

mechalynx
- 197
- 1
- 6