Cgi is the common gateway interface, used for interactive webpages.
Questions tagged [cgi]
279 questions
2
votes
1 answer
Inconsistent "unable to open database file" error from a CGI program using SQLite
I've been running a task program for a psychology experiment on my virtual private server with lighttpd 1.4.28 and Ubuntu 12.04. The experiment is a CGI program written in Perl using a Perl module I wrote, presenting a web interface over Mechanical…

Kodiologist
- 121
- 8
2
votes
2 answers
How do I prevent Apache2 from trying to execute a file as a script?
So basically, I followed this guide about iptraf monitoring and rrdtool to the letter. I put it in /usr/lib/cgi-bin/ as usual for cgi scripts. Then, when I visit it from a browser, the images it makes appears to be broken. I set the permissions to…

Aloha
- 286
- 4
- 15
2
votes
2 answers
php servers without apache/nginx/cgi stack
In many languages, you build web frameworks from the ground up (i.e. from unix sockets) and layer on abstractions. If I want to build a web framework from scratch in OCaml or C, I first build a socket server that listens on port 80.
It just came to…

eatonphil
- 183
- 3
- 12
2
votes
0 answers
Perl doesn't work without warnings in CGI
For some reason I can't get a perl script to run in the cgi-bin folder. I haven't made these files and we've uploaded them to another server and they work fine.
However I've used the following test.pl file which works fine through bash (as root) and…

Liam Sorsby
- 129
- 2
- 5
2
votes
4 answers
How to display cgi-bin errors instead of 500 in Apache?
I'm interested in getting errors from cgi-bin scripts inside the browser like the PHP errors.
The cgi script can be Perl, Python, Ruby, binary or something else. I'm not interested about a specific solution - I'm looking for something that should…

sorin
- 8,016
- 24
- 79
- 103
2
votes
1 answer
tomcat server not running after uncommenting servlet tags in web.xml
I am running tomcatserver and i need to execute a perl script. I searched online and found out that i need to uncomment in conf/web.xml
cgi
…

venkatvg
- 21
- 2
2
votes
1 answer
CGI permissions with NGINX & FastCGI
I'm running GitWeb (which is essentially a CGI script) on a server which also runs GitLab. My aim is to provide reaad-only access to GitLab repositories without registering people.
I've pointed GitWeb to my repositories folder which have permissions…

bayindirh
- 654
- 1
- 5
- 15
2
votes
3 answers
How to diagnose erratic disk behavior?
I have a web site with users lighttpd and CGI scripts.
After upgrading to Fedora 11 (ext4) the disc access became erratic.
The timing of python -c 'import cgi' varies between 0.1 to almost 10 seconds:
How can I diagnose the problem? (Tools,…

Miki Tebeka
- 158
- 5
2
votes
2 answers
How to execute (some) CGI commands as root
I want to put a simple CGI script in my APACHE server.
I'd like to write it possibly in C (but also in PERL, if I want).
The problem is that it must contain some lines that can be executed only by root (iptables for example), while webuser is the…

JustTrying
- 239
- 2
- 5
- 11
2
votes
1 answer
Lighttpd send Nagios command-line output instead of web interface
I recently installed Nagios on an EC2 instance running AmazonLinux (which is basically SuSe, to my understanding). I'm using lighttpd and mod_cgi to serve the web interface.
When I navigate to a page, instead of getting the actual content, I get…

Chris
- 133
- 9
2
votes
3 answers
Setting the server to look for index.php file by default
I am a web developer and I've requested our Sys-Admin to setup a server for my team that will be used as a development environment.
The PHP is running as a CGI. When i try to open http://myaddress/ I receive 403 Forbidden. When I try to open…

Дамян Станчев
- 123
- 4
2
votes
1 answer
Unable to SSI include some CGI scripts
I have a page site.shtml on an Apache server in which I am trying to include a few CGI scripts, like so:
…

ssube
- 164
- 1
- 1
- 10
2
votes
1 answer
How to serve php requests through a single persistent php-cgi instance?
How to set up PHP Version 5.2.17 on Apache/2 to serve php requests through a single persistent php-cgi instance?

LLub
- 153
- 1
- 11
2
votes
3 answers
Munin graphing by CGI
I have Munin working just fine, but any time I try to do cgi graphing - it just stops graphing... no errors in the log, nothing. I've followed the instructions here: http://munin-monitoring.org/wiki/CgiHowto - and it should be working - here's my…

Vaughn Hawk
- 21
- 1
- 2
2
votes
0 answers
Force Apache to kill its children after lost connection ("stop button" pressed)
How can I make Apache kill the CGI's that it has spawned, after the client (browser) has closed the connection?
I got a couple of CGI's that perform long-running operations and send output every 15 seconds. As soon as the browser closes the…

Willem
- 2,872
- 4
- 28
- 35