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

learn more… | top users | synonyms

1
vote
1answer
201 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
302 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
52 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
822 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
224 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
292 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
214 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
360 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
374 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
305 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
510 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
555 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
70 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
57 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
134 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
634 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
182 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
196 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
251 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
354 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
450 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
312 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
896 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
85 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
258 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 ...
-1
votes
0answers
268 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
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
212 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
658 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
226 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
633 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
362 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
130 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
178 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
710 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
517 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
475 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
309 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
641 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
85 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
176 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
653 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
834 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
646 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 ...