Tagged Questions

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

learn more… | top users | synonyms

0
votes
0answers
13 views

Apache2 not executing CGI on OSX 10.10

I upgraded to Yosemite, and I cannot get apache2 to execute CGI scripts. It just servers the files source code! This is the http-ssl.conf setting I am using: <Directory ...
1
vote
0answers
9 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
59 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
26 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
42k 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
33 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
2answers
267 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
31 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
79 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
25 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 ...
0
votes
0answers
55 views

Configure lighttpd/php-cgi to load different shared libraries

For some reason I messed up my webserver after a distro update to Debian GNU/Linux 7 (wheezy). When I try to start lighttpd with /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D I receive the ...
0
votes
0answers
26 views

CGI process does not exit after remote client go away

I find a CGI process running with apache2: # ps axf ... 30161 ? Ss 0:02 /usr/sbin/apache2 -k start 30164 ? S 0:00 \_ /usr/sbin/apache2 -k start 2900 ? S 5:41 | ...
1
vote
1answer
84 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
0answers
90 views

force delay on apache reverse proxy response times

I have a Apache 2.4 working as a reverse proxy to IIS. My objective is to make that every response takes at least 10 seconds. eg. browser requests page from Apache, Apache requests the page from IIS, ...
0
votes
1answer
36 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
99 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
133 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
36 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
30 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
37 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
0answers
134 views

Using FastCGI can bypass the Lighttp POST cache?

I'm building a web service to configure an embedded device, and it should support firmware upload. That said, I have very limited RAM and storage to upload a file that's nearly 30% of the whole flash. ...
0
votes
3answers
72 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
817 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
48 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
99 views

Allow empty basic auth credentials, but check if supplied

I have an Apache 2.4 server with several webservices that all use form-based login + cookies. I want to unify my set-up with an LDAP authentication using Apache's AuthType Basic and AuthBasicProvider ...
0
votes
0answers
51 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
93 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
128 views

mod_cgi disabled in apache but php-cgi still running

We recently experienced a hacker attack, writing directly to the server through php cgi. I have afterwards made a number of security updates, most importantly disabled mod_cgi in Apache2 which ...
0
votes
0answers
108 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
213 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
49 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 ...
0
votes
1answer
188 views

Free Perl for IIS

I'd like to use awstats for website statistics. Is there some free Perl distribution that plays nicely with IIS 7? This is what I've tried: Googling for perl iis yields a lot of tutorials, all of ...
2
votes
0answers
268 views

How to debug CGI over fcgiwrap/nginx

I serve executable scripts (mainly in C) through fcgiwrap connected with nginx. Since the scripts are complied, I can get the coding errors during compilation, but sometimes I receive CGI errors ...
1
vote
1answer
93 views

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

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

Unable to execute a cgi

First of all, sorry for my english ;). I want to execute a CGI on my server, but i have an issue run-detectors: unable to find an interpreter for /media/FTP/outils/cgi-bin/monitorCGI.cgi, ...
5
votes
2answers
7k views

Options ExecCGI is off in this directory: /var/www/index.py

I have looked at alot of posts with a similar question but none seem to work for me i have the following /etc/apache2/httpd.conf file: <Directory /var/www/index.py> Options +ExecCGI ...
1
vote
1answer
65 views

Pause Nagios reloading in web interface

Is there any option how could I turn off reloading of web page in Nagios web interface? Many times I checked many services and I needed the webpage to stay static and don't reload. One solution come ...
-3
votes
2answers
166 views

Can I use a .py file as a stylesheet for html5 [closed]

I have python generating my stylesheets in my html4 site (random background). Now I'm wanting to convert to html5 and I'm wondering if I can use a .py file in my css link <link rel = "stylesheet" ...
0
votes
0answers
48 views

cgi-bin for virtualhosts in apache

Let's assume that I have 2 virtualhosts running for the domains domain1.com and domain2.com. For these domains I set the documentroot to c:\server\htdocs\user\domains\domain1.com and ...
0
votes
1answer
528 views

Apache: permission error while opening file

I have a cgi script that opens a file (using python). The cgi script runs fine but when I try to open this file, I get a permission error: Traceback (most recent call last): File ...
1
vote
1answer
945 views

nginx + fcgiwrap: how come order of fastcgi_param matters?

I'm running Debian 6.0.3 (squeeze), nginx-0.7.67, fcgiwrap-1.0-1+squeeze1. Here is the test script: #!/usr/bin/perl use 5.010; use warnings; use strict; use Data::Dumper; print "Content-Type: ...
2
votes
1answer
193 views

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

Options ExecCGI is off in this directory: /home/ec2-user/public_html/cgi-bin/

When I tried to access the http://host-ip/~ec2-user/cgi-bin/try.cgi, I got 403 Forbidden error, error_log shows Options ExecCGI is off in this directory: /home/ec2-user/public_html/cgi-bin/try.cgi. If ...
0
votes
1answer
169 views

Permission denied with mv under apache

I have a bash cgi script called by apache which should move one file in /var/www/html to another in the same directory. I've set up the relevant permissions with selinux (e.g. chcon to ...
1
vote
0answers
70 views

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

IIS 7.5 + CGI + SSL - How to increase the upload limit?

I'm hitting a really annoying problem with IIS 7. I've setup my web.config by the books as follows: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> ...
0
votes
1answer
68 views

Awstats over cgi does not show historical data

I have awstats for several virtualhosts, runned via cgi. One of them does not show historical data. It shows just data for this month. But runned on command line generates html with correct data. ...
0
votes
1answer
472 views

cgi and python script files are downloading from server instead of executing there

I kept some cgi,python files under /var/www/cgi-bin and trying to execute I followed all the steps in: http://webpython.codepoint.net/cgi_tutorial Still i am not able to execute. when i enter ...
1
vote
0answers
282 views

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 ...