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

learn more… | top users | synonyms

0
votes
0answers
28 views

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 ...
0
votes
0answers
24 views

IIS-8 - Python CGI needs to access a library outside of the web directory structure

I've got a python script that calls a dll in a directory off of C:\ (ctypes module). When I access the script, the errror I get back is in <module> mydll = ...
1
vote
1answer
14 views

mod_rewrite not working on web root dir

With the Apache/mod_rewrite config below i get a 403 forbidden error for any CGI scripts on the root /var/www/ I don't get any error for static files. Scripts out of root dir i.e. ...
0
votes
0answers
39 views

PHP5 FastCGI too slow Page loading

My Websites loading time is really terrible (too slow) so I started a Benchmark to check what is going on. The CPU is running 100% and Memory usage seems to be good. Read a lot of Documentations and ...
3
votes
2answers
235 views

Can I detect when a client has disconnected from a CGI?

I have a rather resource intensive CGI that takes quite a long time to start sending data. We've seen quite a few cases where impatient people reload a couple of times, which then triggers additional ...
2
votes
2answers
410 views

Apache: Permission denied: exec of '/var/www/html/cgi-test/first.pl' failed

So, I'm new to CGI / Perl, I'm trying to move a perl-based web app to a new server. My new server is CentOS 7, which runs Apache HTTPD 2.4.6. I'm trying to get a basic Perl CGI working from an HTTP ...
0
votes
0answers
216 views

nginx + fastcgiwrap = 502 Bad Gateway

I'm trying to execute a cgi script on my web server. I'm running Debian 7.8 (wheezy), with nginx 1.8.0 and fastcgiwrap 1.0.3-3 (both installed via aptitude). Here are my nginx settings (taken from ...
1
vote
1answer
238 views

uwsgi configuration with Nginx, with python scripts as cgi - 502 Bad Gateway

This is my .ini file to run the uwsgi "pyApp.py" [uwsgi] plugins = cgi socket = 127.0.0.1:9010 cgi = /=/usr/share/test/ cgi-allowed-ext = .py cgi-helper = .py=python i have a file "firstapp.py" at ...
1
vote
0answers
11 views

Possible that Apache start a script before AuthType is loaded?

I would like to run a script before the apache basic authentication is loaded. Example: I type a url in my browser, get the basic authentication (Username Password) field, and at this point the ...
0
votes
0answers
55 views

How to use AppCmd on Windows Server for IIS with a site

I came across this ServerFault Article entitled show PHP error message on IIS 7, which was expanded a bit by Anton Staykov. I also searched a couple of other articles, such as this one by Microsoft. ...
0
votes
1answer
20 views

CGI not supported in a server…is it possible? [closed]

Goodmorning. I'm very new to web developing. I made a website whit a massive use of CGI, then I started to search for an host. Once I found my host I started to search for the configuration files of ...
0
votes
0answers
45 views

uwsgi error when serving git repo over http

I am trying to serve my git repo over HTTP on CentOS using uwsgi and nginx. However, when I try and clone the repo, my uswgi log says:- unavailable modifier requested: 9 I think that this means ...
0
votes
0answers
11 views

Perl CGI loging everything in error_log using virtualhosts

I have a problem with Apache and Perl CGI (I'm not using mod_perl) I'm using virtual hosts for different sites and one of them is running perl cgi scripts, even when the virtual host has the ...
2
votes
1answer
157 views

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 ...
0
votes
0answers
67 views

how to set per site php mode (mod_php5, cgi, fastcgi) in apache

i have 3 sites which are stored in /etc/httpd/conf.d/ site1.conf site2.conf site3.conf here's one <VirtualHost *:80> ServerName site1.ru ServerAlias www.site1.ru DocumentRoot ...
1
vote
0answers
52 views

Git Pull on CGI and Command Line have different results

I have an "after push" webhook on GitHub that calls a CGI script to update a Jekyll website. The script: user@server [~/_repo]# cat cgi-bin/githook.cgi #!/bin/bash echo Content-type: text/plain echo ...
0
votes
0answers
188 views

malformed header from script

I got this error on my website: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server ...
0
votes
2answers
803 views

hacking to my apache using cgi script

I newbie to web programming, so I setup an apache2 sever for my practice. It seems that someone succeeded to hack my apache server. I have notice in my access.log the following line: 81.169.174.52 - ...
0
votes
0answers
44 views

Nagios authentication when calling CGIs?

I'm trying to use the new JSON CGI that comes with Nagios 4.0.x as part of a website. The CGI returns JSON strings when executing for example this URL: ...
0
votes
0answers
40 views

Apache2: upload restarts over and over

We are using different upload scripts with Perl-Module CGI for our CMS and have not encountered such a problem for years. Our customer's employees are not able to get a successful download. No matter ...
0
votes
2answers
105 views

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 ...
0
votes
0answers
83 views

Apache - how to automatically kill apache subprocess of closed connection

I am using Apache 2.4 (Linux) where I have some CGI app that runs long-standing system subprocesses. When the client finish the connection prematurely (for example when a user close the web browser), ...
1
vote
1answer
86 views

Allowing a CGI-EXE app to access the registry

I have an exe app that I run on IIS (from C:\inetpub\wwwwroot in DefaultAppPool) and needs to access the registry, but it doesn't work, it seems like it doesn't have permission. What's weird is I ran ...
1
vote
0answers
139 views

Is my site getting hacked (Bluehost)?

I'm running a simple website off of Bluehost, and I needed to use custom Python scripts so I created a cgi-bin folder in my site's directory and added my cgi python files there. Everytime I tried to ...
1
vote
1answer
149 views

CentOS 7 acl not working for apache

I want to access a user's directory from a cgi script. I set the acl on the directory successfully but the script still gets "Permission denied" when trying to access that directory. I su'd to ...
0
votes
0answers
44 views

Rquested URL and physical path mismatch in IIS 7

I have deployed a new windows 2008 r2 server with iis 7 I'm facing difficulties with CGI ( perl ) domains My domain uses " discusware application " which stores the contents under " cgi-bin " folder ...
1
vote
0answers
74 views

Does OPcache work when PHP is running in CGI mode?

Does PHP 5.5s OPcache work with PHP running in CGI mode? Or does that even make sense, since it forks and kills PHP for each request?
0
votes
0answers
1k views

Apache Server 2.4 on EC2 “caught SIGTERM shutting down ”

I'm using amazon linux on an m3.large instance on EC2. I had these logs before my apache server was shut down: [Sun Sep 28 18:54:31.679261 2014] [cgi:error] [pid 32422] [client 67.211.230.58:58937] ...
1
vote
0answers
77 views

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 ...
68
votes
6answers
51k views

How to test if my server is vulnerable to the ShellShock bug?

How can I ensure my Bash installation is not vulnerable to the ShellShock bug anymore after the updates?
0
votes
1answer
75 views

Injecting Response Headers based on logic in apache

I've been searching everywhere for a solution to do this, as well as trying many different things, and none of which so far work. Here's my problem. On an Apache server I need to process every html ...
0
votes
3answers
2k views

Apache 2.4 replies with “403 Forbidden” for a CGI script, my configuration looks ok

I installed a CGI script on a fresh installation of Apache 2.4 on Ubuntu server 14.04. Apache keeps replying with 403 Forbidden also if, to me, the configuration file is ok. The CGI is the Monitorix ...
0
votes
0answers
93 views

Unable to get IIS to properly run a Delphi created CGI service

I have a newly created 32-bit Delphi created CGI exe that I'm trying to run via IIS 7. Thanks to the advice in this post I am at least able to get the Delphi standard "Service Info Page" which lists ...
1
vote
0answers
243 views

cgit only works on command line, but not with nginx

Like many times, I used a virtual machine to test something. This is the reason why the configuration is maybe a bit dirty. I just try to get cgit running with nginx. I created a directory /git ...
0
votes
1answer
34 views

How to to use a cgi file without an extension as index in Apache

I'm using WebMin to administer an Apache server and am having trouble getting Apache to use a python CGI file without an extension (named "home") as my index. The file is executable and works OK if I ...
1
vote
1answer
116 views

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 ...
0
votes
1answer
74 views

CGI scripts are not working on lighttpd with SSL

CGI scripts worked perfectly, while I was using HTTP. Then I set redirecting for all traffic through https and now CGI doesn't work at all (404 - not found). I use lighttpd server. Here is the part ...
0
votes
1answer
274 views

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 ...
1
vote
1answer
558 views

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 ...
1
vote
0answers
49 views

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 ...
1
vote
1answer
50 views

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 ...
1
vote
0answers
64 views

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 ...
0
votes
3answers
98 views

Most efficient way to serve less than 10 http requests per day using cgi

Our company manages over one hundred servers and we would like to "ask" these servers for basic usage info once or twice a day using http. The usage info can be easily found with a perl cgi script ...
-1
votes
1answer
2k views

how is it possible to configure uwsgi in emperor-mode with cgi-plugin + heartbeat in combination with nginx

After having the migration from fcgiwrap to uWSGI (which also brings plenty of other benefits that I'm planning to use) on my ToDo-list for some time I finally managed to setup a debian-wheezy ...
0
votes
1answer
53 views

removing process (and child process) access to file systems? [closed]

is there a unix-type free OS that allows me to remove all disk access for a specific process and any of its children? #!/usr/bin/perl -w use strict; use Perl6::Slurp; my $infile= ...
0
votes
0answers
59 views

Get unused Nagios both services and commands

I have a monitoring server, based on Nagios 3.2.3, installed via source code, and using GroundWork Monitor Architect for managing Nagios configurations. My question is if possible (and how to) get a ...
0
votes
1answer
166 views

Performance issues on IIS7 and CGI (versus IIS6)

My company is upgrading the app/web server from Windows 2003 to Windows 2008 (mainly because hosting companies don't offer 2003 anymore, and we need new hardware to gain performance). Our app is ...
0
votes
0answers
136 views

google site map generator can't login admin console

I installed Google Sitemap Generator for linux x86_64 CentOS 6 But when I try to login to the admin console using this link myserverip:8181 and my password nothing happened. After refreshing I ...
1
vote
2answers
698 views

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 ...
-1
votes
1answer
67 views

perl script running only once on IIS 7 server

I am on Windows 7 (IIS 7). When I run a perl script it works fine once and returns the output to any browser. It takes input from html form and prints the input as text. Upon reload or second run, the ...