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

learn more… | top users | synonyms

1
vote
2answers
2k views

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: ...
1
vote
2answers
214 views

Apache Mod_Rewrite: Aliases and CGI

I am trying to get Apache to run a cgi executable in my "project" directories. It should respond to HTTP requests at: localhost/packages localhost/packages/ However, it should not respond to http ...
1
vote
1answer
35 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 ...
1
vote
1answer
206 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
1answer
33 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
1answer
118 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
469 views

Running single Apache Vhost on PHP 5.3 using CGI, other sites use PHP 5.2 on Apache module

I've been trying to setup my development server to serve one of my Apache virtual hosts over CGI using PHP 5.3.14. The Apache server I have setup is Apache 2.2.3 with PHP 5.2.10 running as an Apache ...
1
vote
1answer
216 views

PHP CGI for apache virtual host

I'm using PHP5.3 as module for Apache2.2(Windows). For one virtual host i need use PHP4 as CGI for .php files. This is my config <VirtualHost *:80> DocumentRoot "E:\projects\php\wp\dev" ...
0
votes
1answer
29 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 ...
0
votes
1answer
39 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
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
1answer
48 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
176 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, ...
0
votes
1answer
73 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
330 views

Chrooted nginx, fastcgi, and cgit

I'm running a Debian server with nginx chrooted in /var/chroot/nginx. It works wonderfully, but I'd like to be able to run cgit and host my gitolite repositories. When it was out of the chroot it ...
0
votes
1answer
51 views

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

Apache: 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 ...
0
votes
1answer
932 views

Error in Apache: /var/run/apache2 not found

This is more self-answered question but since it drove me crazy I would like to share with the community and maybe someone can tell me why it happened or what it caused. The thing is I wanted to ...
0
votes
1answer
228 views

Debian, Apache2, CGI: paths issue

I have a perl form email script on the servers cgi-bin directory ( /usr/lib/cgi-bin ). /etc/apache2/sites-enabled/000-default ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory ...
0
votes
1answer
629 views

Accessing UNC paths from inside Perl CGI under IIS6

For space reasons, we need to move some files off our main file/webserver to another network fileserver. However, the original file/webserver is still responsible for providing access to these files, ...
0
votes
1answer
5k views

dedicated server - cgi-sys/defaultwebpage.cgi redirect when accessing via server IP

This isn't so much of a problem, but would like to know why this happens. we have a dedicated server running WHM. If I access the server via its IP address directly I am automatically redirected to ...
0
votes
1answer
296 views

Temporarily Utilizing 304 Header on Apache for Crawlers

I have a client who has a hosting arrangement with 400 customer sites all hosted through SuPHP in CGI mode on Apache. The sysop is now gone and the client is calling on me for rolling out a new PHP ...
-1
votes
1answer
51 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 ...
-1
votes
1answer
488 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 ...
2
votes
0answers
316 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 ...
2
votes
0answers
666 views

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 ...
1
vote
0answers
42 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
0answers
23 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?
1
vote
0answers
31 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 ...
1
vote
0answers
107 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 ...
1
vote
0answers
37 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
0answers
41 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 ...
1
vote
0answers
76 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 ...
1
vote
0answers
291 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 ...
1
vote
0answers
369 views

Unreadable error using FCGI

I recently installed mod_fcgi on to Amazon EC2 64bit Linux AMI and using Movable Type 5.13 with it. Here is my error log. [warn]mod_fcgid: error reading data, FastCGI server closed connection, ...
1
vote
0answers
193 views

lamp php ubuntu 10.04 with cgi I get accesses to '/var/www/…' instead of '/usr/lib/cgi-bin/…'

I have a basic php cgi configuration problem on top of the apache web server in Ubuntu 10.04 . I am trying to setup cgi so as to answer one of the urls localhost/cgi-bin/index.php or ...
1
vote
0answers
226 views

PHP giving 500 internal server error on new server

I am trying to run a simple PHP script which displays phpinfo() but I am getting 500 internal server error. What could be the reason? Is it because PHP handler is set to suPHP and I shall change it to ...
0
votes
0answers
14 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
0answers
23 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), ...
0
votes
0answers
15 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 ...
0
votes
0answers
387 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] ...
0
votes
0answers
44 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 ...
0
votes
0answers
69 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
27 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 | ...
0
votes
0answers
99 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
0answers
159 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
0answers
109 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
0answers
114 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 ...
0
votes
0answers
59 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 ...