Cgi is the common gateway interface, used for interactive webpages.
Questions tagged [cgi]
279 questions
0
votes
2 answers
Centos 6.3 PERL CGI selinux file read access
I have a CGI script called index.cgi
It is trying to read a log file called 10.128.0.242.2012.sep.20.downloaded.txt under the path /var/log/trafcount/
It appears that it is being blocked by selinux.
The audit log shows something like
type=AVC…

Steed
- 19
- 3
0
votes
2 answers
"Bad File Descriptor" error using Python/CGI in IIS 6.1
Background:
I've attempted (strong emphasis on "attempt") to set up an application via IIS (6.1, Windows Server 2008 R1) that routes all requests through a python script. The end goal was to create a very light-weight API on the server.
Basically,…

zashu
- 143
- 6
0
votes
1 answer
Webserver Nginx + PHP FPM Access Denied error with .cgi scripts
Webserver with Nginx 1.1.19 and PHP 5 FPM work great with serving PHP and showing output of mysql data.
I want to embed nagios in my application and so I needed .cgi scripts for the first time on this server. This didn't work. Then I made a simple…

Jona Koudijs
- 75
- 3
- 10
0
votes
2 answers
Need help running CGI scripts on Mac OS X Apache
I'm trying to run a simple CGI perl script (see below) using Apache on my Macbook running OS X Lion and I'm having difficulty getting it to run even the simplest of scripts. I have turned on web sharing in settings, and I am positive that I have…

Nosrettap
- 103
- 1
- 4
0
votes
1 answer
ExecCGI turned off in this directory
I'm trying to run a python cgi script on my Mac's web server. Everytime I visit the file @ localhost/site.py I get a 403 forbidden error.
I'm looking in my Apache's error log, and it says:
[Mon Jun 11 09:52:42 2012] [error] [client ::1] Options…

jshawl
- 297
- 2
- 13
0
votes
1 answer
Nginx + fastcgi to run PHP script , but it kept telling me "File not found"
Here's part of config in the server block:
I was unable to execute any php script , I placed a file named test.php under /var/html , but when I point to http://localhost/test.php , I got a result:
File not found.,
That's not generated by nginx ,…

daisy
- 747
- 4
- 14
- 30
0
votes
2 answers
CGI script fails to open a socket (CentOS 6.2/Apache2)
I have a webserver running CentOS 6.2 and the latest Apache from repositories. Todey I encountered a problem when running an executable program via CGI on Apache. The program is supposed to connect to some site, download something and then returns…
user81458
0
votes
1 answer
Compiling FastCGIWrap fails on slackware (nginx cgi support)
I'm currently trying to get nginx to work with cgit which uses cgi.
I know nginx doesn't support cgi directly but it appears you can support it indirectly via FastCGIWrap.
The link above is pretty self explanatory but I'm having a problem with…

tftd
- 1,498
- 7
- 25
- 40
0
votes
1 answer
Apache Server CGI Error 500
I am trying to set up a server for the "cgit" web-ui for GIT. I have downloaded the source code from the developer's website and correctly compiled it per the instructions.
My default-server.conf looks like this:
#
# Global configuration that will…

dsljanus
- 27
- 1
- 5
0
votes
1 answer
Modify apache 2 to use different Perl instance
I have 2 installed Perl on the OS, now my cgi script need to run the module on newly installed Perl, I've already set played the PERL5LIB, @INC to include the new instance but it doesn't work.
Any way to modify apache to look/use the new Perl…

lupin
- 1
0
votes
2 answers
Is this script nefarious?
This is sitting in my web site's cgi-bin. Should I be concerned about it?
#!/usr/bin/perl
print <

binaryorganic
- 6,021
- 4
- 18
- 19
0
votes
1 answer
Enable Windows Authentication on website, allow only some users
I am investigating this problem. I have a CGI application that I publish through a website published in IIS7.
EDIT:
I changed the web.config to use url authorization. This is the web.config of a folder called secure and this is the web.config of…

Mauro
- 101
- 1
- 1
- 4
0
votes
1 answer
Munin isn't showing graph history
I'm setting up my new Ubuntu 10.04 server and installed munin to view my machine's stats. It was working for a while, then I changed a couple of things (PHP spawn-fcgi to PHP FPM, reinstalled nginx) and now the graph history doesn't work.
I can see…

mr_schlomo
- 201
- 1
- 4
- 9
0
votes
1 answer
How to switch from CGI/FastCGI Server API to DSO?
Apache: How to switch from CGI/FastCGI Server API to DSO?
I want to switch back and forth. I found this answer for the reverse step, but I need the the first part:
Apache: How to switch to CGI/FastCGI Server API?
Actually I want to go back and froth…

Mark
- 9
- 2
0
votes
2 answers
PHP 5.3 on IIS gives 404 error in CGI mode
Slowly losing my mind here. I had PHP 5.2 working fine
(ISAPI) under IIS, but for some extension I needed 5.3. So
no worries, I installed this but it turns out ISAPI is not
supplied anymore.
I followed the install tutorials for fastcgi and ended…
reinier