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

learn more… | top users | synonyms

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 ...
0
votes
1answer
313 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
74 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
567 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
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 ...
0
votes
2answers
521 views

FCGI and upload_tmp_dir PHP directive are not working correctly

I run PHP as FCGI! I'm setting upload_tmp_dir option as value /home/domain.com/tmp. When executed phpinfo() for double-check it's confirmed that the settings above are correct. Nevertheless, when ...
1
vote
1answer
220 views

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

Where to find the mod_cgi.c script

Where is the mod_cgi.c script, or where are all the modules in the apache software? I have a problem with the RLimitNProc settings on my server, because this settings don't work properly. I've found ...
1
vote
1answer
61 views

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

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

Mod Rewrite for cgi-bin

So i want to rewrite the following url structure mysite.com/cgi-bin/shop/shop.cgi/ to mysite.com/+ I have this as a rule and it works, but it doesn't force the url to print in the ...
0
votes
1answer
334 views

Server Showing Default CGI page on my VPS hosting

I am getting default cgi [http://xx.xxx.xxx.xxx/cgi-sys/defaultwebpage.cgi]page even after placing index.php in the root/public_html folder. The Httpd Conf on my VPS have the following entry ...
1
vote
1answer
234 views

perl app on apache and cgi behaves terribly with 504 gateway timeouts

Note: This question is about my server configuration giving 504 timeouts. I made a project here http://www.tryperl.com/ (requires auth with GitHub to sign in). Please be kind, I'm working on to learn ...
2
votes
2answers
434 views

How to execute (some) CGI commands as root

I want to put a simple CGI script in my APACHE server. I'd like to write it possibly in C (but also in PERL, if I want). The problem is that it must contain some lines that can be executed only by ...
0
votes
1answer
423 views

deploying perl dancer on apache with a virtual host

Forgive my lack of knowledge I'm just learning linux administration here. A week ago I read this article about setting up virtual hosts, I then installed and setup mod_perl and my perl Catalyst ...
0
votes
1answer
333 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 ...
2
votes
3answers
643 views

What's the safest way to kick off a root-level process via cgi on an Apache server?

The problem: I have a script that runs periodically via a cron job as root, but I want to give people a way to kick it off asynchronously too, via a webpage. (The script will be written to ensure it ...
1
vote
1answer
660 views

Multiple PHP versions running as cgi

I'm trying to install a second version of PHP, to run alongside the current version of php. I've compiled the latest php source from github (5.5-DEV), and I'm trying to run it as CGI. Here is my ...
0
votes
1answer
72 views

Apache: Run standard-PHP side by side with Fast-CGI

I'd like to run a server that 'delegates' certain requests to a C++-Script via FastCGI - how can I configure Apache to do so? It would just be enough to redirect requests to a specific page I could ...
0
votes
2answers
138 views

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

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

“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 ...
2
votes
1answer
259 views

Lighttpd send Nagios command-line output instead of web interface

I recently installed Nagios on an EC2 instance running AmazonLinux (which is basically SuSe, to my understanding). I'm using lighttpd and mod_cgi to serve the web interface. When I navigate to a ...
0
votes
1answer
400 views

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

Apache not calling the Smart HTTP CGI

I'm setting up a git server with git-http-backend and Smart HTTP but Apache doesn't seem to be calling the Smart HTTP CGI: $ curl ...
0
votes
1answer
1k views

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 ...
2
votes
3answers
86 views

Setting the server to look for index.php file by default

I am a web developer and I've requested our Sys-Admin to setup a server for my team that will be used as a development environment. The PHP is running as a CGI. When i try to open http://myaddress/ I ...
0
votes
1answer
264 views

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

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: ...
2
votes
1answer
226 views

Suexec, group-writeable files

I am running an Apache server with Suexec. However, I get an internal server error if I try to execute a CGI script that is group-writeable (if I chmod g-w , the script runs fine) However, I want the ...
0
votes
2answers
698 views

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

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

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 ...
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, ...
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
2answers
137 views

Is this script nefarious?

This is sitting in my web site's cgi-bin. Should I be concerned about it? #!/usr/bin/perl print <<HTML; Content-type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 ...
0
votes
1answer
4k views

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

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) ...
1
vote
2answers
749 views

Is there any equivalent to php5-cgi for python?

nginx doesn't allow to directly execute external programs, so to run CGIs you need to run an standalone fcgi backend and connect to it with the fastcgi_pass directive. For php it's easy, e.g. using ...
2
votes
1answer
543 views

Unable to SSI include some CGI scripts

I have a page site.shtml on an Apache server in which I am trying to include a few CGI scripts, like so: <p><pre><!--#include virtual="files/testfile" --></pre></p> ...
1
vote
3answers
501 views

Can advanced web servers be faster than basic web servers?

A bsic web server such as python SimpleHTTPServer or THTTPD reads static files with least process; thus is quite fast. Normally, adding more features to create an advanced web server (but still ...
1
vote
1answer
2k views

Bugzilla CGI not working under Apache on Windows 7 [closed]

I am trying to install Bugzilla on my Windows 7 machine. I have only been able to get the apache,mysql,perl stack operational by installing XAMPP. Apache works well for php, and mysql seems quite ...
0
votes
2answers
322 views

Centos 5.5 - run cgi scripts from multiple locations

I want to be able to run cgi scripts from other locations besides /var/www/cgi-bin, examples: /var/www/folder1/cgi-bin /var/www/folder2/cgi-bin /var/www/folder3/cgi-bin How do I go about ...
1
vote
2answers
3k views

How do I properly disable cgi scripts e.g. guestbook.cgi on WHM

After a PCI scan identified guestbook.cgi as a risk, I want to disable the cgi-scripts installed by WHM (v11, running on CentOS5). I would like to do this "properly" using the WHM Web interface if ...
2
votes
1answer
652 views

Changing server API from CGI to FastCGI

I have a server set up on CentOS and I need to change the API from CGI to FCGI (Someone else set this up initially) for x-cache to work (we need this as we have a TV appearance on monday and are ...
1
vote
1answer
87 views

Redirecting a non-existent file in cgi-bin

We are using RHLE 5.6. I am fairly new with linux and apache. We currently have a website using an archaic exe file in the cgi-bin directory for a shopping cart (on Windows). We are migrating this ...
2
votes
1answer
183 views

How to serve php requests through a single persistent php-cgi instance?

How to set up PHP Version 5.2.17 on Apache/2 to serve php requests through a single persistent php-cgi instance?
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: ...
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 ...