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

learn more… | top users | synonyms

2
votes
2answers
224 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
311 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
272 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
364 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
420 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
63 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
0answers
52 views

getting cgi to work on aws server

I want to execute py/cgi files on my server. I have changed the httpd.conf as below, but the browser says the files don't exist. AddHandler cgi-script .cgi .py LoadModule cgi_module ...
0
votes
2answers
128 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
589 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
0answers
168 views

iis php internal server error

I developed a website, using php/mysql running at IIS Server as CGI Server API. Suddenly it gives me error 500 after two weeks. It has lot of scripts but index.php home is working. But other script ...
0
votes
2answers
171 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
230 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
297 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
375 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
290 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
674 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
82 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
247 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
0answers
229 views

How to Install Python Modules on Web Server?

Im running a python cgi script in the cgi-bin directory which uses the sqlite3 module. I run it and it says that it does not recognize the name.. So how do I install this module or other modules on ...
0
votes
1answer
982 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
179 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
594 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
211 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
581 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
348 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
128 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
3k 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
172 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
675 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 ...
0
votes
0answers
124 views

.cmd files as cgi on iis7 - Not enough storage is available to process this command.

I set up cmd files to be used as cgi, but when running a simple script, it states that there is not enough storage is available to process this command. Other places have suggested setting irp size ...
2
votes
1answer
450 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
405 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
1k 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
254 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
603 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
84 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
171 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?
0
votes
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
578 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 ...
0
votes
1answer
746 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 ...
1
vote
1answer
604 views

Compile PHP 5.4 as a CGI with cPanel on Centos

I have looked all over and found ways to compile PHP as a cgi/secondary install but no guides show how to compile PHP 5.4 as a cgi to be called in a .htaccess. I want to have a development cgi version ...
-3
votes
1answer
71 views

Display static pages with a RAND seed, expiry? [closed]

In Apache, is there any way (using scripts like CGI and PHP, etc.) that will fetch all static content (html, images, and files within a specified size range) and send it to the user as a randomized ...
1
vote
2answers
124 views

Scaling Python CGI scripts [closed]

I have Apache running on a quad-core Ubuntu server on a 384kbps ADSL. Files are uploaded by users via a web-form and processed by various Python programs running as CGI scripts. Some scripts are CPU ...
0
votes
1answer
491 views

Execute CGI script as specific user with Apache

I want to run a specific (perl) CGI script on my webserver. This works reasonable, but it would work immensely better if the CGI script would be running as the currently authenticated user. Is there ...
0
votes
2answers
480 views

Problem with cgi-bin directory

I want to execute cgi files from /var/www/html/cgi-bin and /var/www/html/s1/cgi-bin. I currently have this in my httpd.conf Options Indexes FollowSymLinks ExecCGI ScriptAlias /cgi-bin/ ...
1
vote
2answers
424 views

How to get rid of TCP or lighttpd 4KB buffering on CGI output?

I have a stock lighttpd install on a Amazon Linux AMI running on EC2. The only config changes I did is to enable CGI support. Then there is a custom CGI tool (written in C) put in /cgi-bin/ that is ...
0
votes
2answers
278 views

CGI script not working properly on new web server

I have a simple CGI script that is working now in production that returns a json object, and so it returns a content type of application/x-javascript. In internet explorer, this file is asked to be ...
0
votes
1answer
93 views

Apache mapping URL to CGI script

In Apache I would like a URL "/myscript" or "/myscript?param=myparam" to execute a CGI script located at: /usr/local/scripts/custom.pl I have tried: Action custom-action ...