Questions tagged [cgi]

Cgi is the common gateway interface, used for interactive webpages.

279 questions
1
vote
1 answer

htaccess redirect / to cgi-bin/cgiscript.cgi not working

1st of all the disclaimer: this is my very first "meeting" with .htaccess, and I'm not a sysadm, never was, but the guy in the neighborhood, who used to set up the machine. So now I have to set up one friends cgi (pyblosxom) based site (on…
Zsolt Botykai
  • 188
  • 1
  • 6
1
vote
1 answer

CGI Script not running in PHP file

I have a CGI script in the server called script.cgi and I have added the following code to the domain vhost: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .html I have change it to: Action add-footer…
1
vote
1 answer

IIS Won't Let Python Script Set Headers

I am trying to get Python working with IIS 7.5. I have added a script handler for Python: Python itself doesn't seem to be the problem. I have ran scripts on the command line with no problem. The script I am using to test Python functionality is…
Ian
  • 139
  • 3
  • 9
1
vote
1 answer

What am I leaving out in enabling CGI execution under Apache 2.2?

I have a fresh Debian installation (if that's not an oxymoron), with Apache 2.2.x which I am migrating to after using Ubuntu Saucy and Apache 2.4.x, and I'm pulling my hair out about why http://JonathansCorner.com/index.cgi (used to serve the…
Christos Hayward
  • 1,162
  • 3
  • 16
  • 35
1
vote
0 answers

nginx can't find cgi two levels deep

Typically, I want to serve an index.html file when http://mysite.com/ and any other directory is requested. The following, in nginx.conf, does that for /test: location /test { try_files $uri.html $uri/index.html /index.html =404; } If I want to…
Rob
  • 344
  • 3
  • 15
1
vote
1 answer

Supporting embedded PHP on a CGI app with IIS

We have a CGI pageserver (.exe) written in Delphi running on IIS. We'd like to be able to embed PHP in these pages at some point in the near future--say, for a captcha or CMS integration--but are currently unsure how to go about this with IIS. Using…
John Crux
  • 11
  • 1
1
vote
0 answers

How to write a file from Apache CGI in a user home directory on CentOS

I made a CGI in Python and it works unless I try to write to a file in a user's home. I activated allow_httpd_anon_write and allow_http_sys_script_anon_write to true with graphical tool for administrating SELinux. Then I made home, home/user and…
Ufo.rob
  • 11
  • 2
1
vote
2 answers

Get full list of host and services from Nagios

I need to get a full list of hosts and services from Nagios, to make a decision table. I think there is two methods, querying the Nagios CGI, and parsing the Nagios cfg files. But... Nagios cfg files may not be standard and this could be a…
mvillar
  • 438
  • 1
  • 7
  • 19
1
vote
1 answer

lighttpd rate limits per directory

I'm creating a site with a large number of small tools. One is a tool which uses a Python cgi-script that interacts with the Natural Language Toolkit (nltk), which is disk and CPU intensive. I have other services that are less intensive. On the…
Brigand
  • 135
  • 5
1
vote
0 answers

ps x shows weird command: -f html/index.php

Just went to check one of my websites and was greeted by the message: "CGIWrap Error: Real UID could not be changed!". Went in via SSH and tried "ps x" which showed me tons of processes that that where just "-f " and the path to index.php or some…
Splatbang
  • 111
  • 3
1
vote
2 answers

HTML pages getting 'cut off' CGI/Perl

I noticed a problem with web pages getting 'cut off' with a Perl/CGI based proprietary application I administer on a server running Apache 2.2. This lead me to investigate the problem further by writing a little Perl script myself I was able to…
lintunen
  • 31
  • 3
1
vote
0 answers

NGINX and CGit configuration

I?m trying to setup CGit and NGINX. I'm almost there but I have a problem with the rewrite rule in my NGINX's conf file. Currently I have this: server { listen 80; server_name cgit.mydomain.com; index cgit.cgi; gzip off; …
alexandernst
  • 534
  • 3
  • 9
  • 21
1
vote
1 answer

Retrieve Windows Username via SSPI + CGI Perl

I need to retrieve the username of the windows user logged in currently when he is accessing my intranet page. I am trying to authenticate my webpage using SSPI(mod_auth_sspi.so) on Windows Server 2008, with Apache 2.2. I have made the following…
Suzun
  • 11
  • 3
1
vote
1 answer

Apache2 server not executing CGI script

I have a local Apache2 server (installed with LAMP). The Apache2 directory is /etc/apache2 and my document root is /var/www. Under the doc root, there's a /cgi-bin directory, in which my script cgi.pyis. Executing with ./cgi.py gives the desired…
5th
  • 113
  • 1
  • 4
1
vote
1 answer

Setup CGI exe in IIS 7 - Will Always Download as .exe file instead of executing

Trying to install a legacy CGI.exe file on a new Windows 2008 R2 server. I added the exe path to the CGI and ISAPI restriction list (it is set to allowed). The handler mapping for the .exe in the virtual directory is setup with execute permission…
Chris Wood
  • 31
  • 1
  • 3