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

learn more… | top users | synonyms

0
votes
1answer
519 views

Setting up CGIHTTPServer on OSX

I'm not at all knowledgeable about this, so please bear with me. I'm trying to set up python's CGIHTTPServer on OSX to be able to serve cgi-scripts locally, but I seem to be unable to do this. I've ...
0
votes
1answer
628 views

Apache 'can't find' a file for cgi

Problem: Apache2 refuses to run my CGI scripts, telling me it cannot find the file. Sample log: [Wed Jul 14 09:22:19 2010] [error] [client 192.168.111.1] (2)No such file or directory: exec of ...
0
votes
1answer
350 views

Monitorix Graphs Show Boxes Where Text Should Be

I have just installed Monitorix on ArchLinux using the tutorial here: wiki.archlinux.org/index.php/Monitorix I am using the Lighttpd web server. It is working fine and the graphs are being ...
1
vote
1answer
198 views

Setup CGI on Ubuntu 9.04

I've reviewed numerous guides to find out why my CGI isn't working and cant' seem to find it. My site config looks like this: <VirtualHost *:80> ServerName dev.domain.com # Directory Root. ...
0
votes
2answers
867 views

Windows/Apache/Perl/CGI “access is denied” when reading a file

I haven't done anything on a windows machine since I started doing serious sys-admin and development work (all *nix). So I may be asking something easy - but I haven't found the answer by searching. ...
2
votes
3answers
1k views

Finding the current user authenticated by basic auth (Apache)

When you log in through a basic auth page, is the username you authenticated as stored anywhere (on the server or client machine), maybe in an environment variable? Background: I have a common web ...
0
votes
2answers
3k views

How to run linux bash script from web browser?

Hi I have web server on it also. I had made simple bash script using vi editor..which will open file and then add some lines into it at last it will save automatically...and after that 2-3 linux ...
0
votes
1answer
272 views

Suppress PHP Headers running cgi PHP from Ruby

I originally posted this on StackOverflow and it was suggested that I try posting this here because, "It might be something like the configuration in CGI is different than the configuration for your ...
0
votes
1answer
293 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 ...
6
votes
4answers
2k views

What Apache/PHP configurations do you know and how good are they?

I wanted to ask you about PHP/Apache configuration methods you know, their pros and cons. I will start myself: ---------------- PHP as Apache module---------------- Pros: good speed since you don't ...
0
votes
3answers
4k views

Running CGI With Perl under Apache Permission Problem

I have the following entry under apache2.conf in my Debian box. AddHandler cgi-script .cgi .pl Options +ExecCGI ScriptAlias /cgi-bin/ /var/www/mychosendir/cgi-bin/ <Directory ...
1
vote
4answers
6k views

Run CGI in IIS 7 to work with GET without Requiring POST Request

I'm trying to migrate an old CGI application from an existing Windows 2003 server (IIS 6.0) where it works just fine to a new Windows 2008 server with IIS 7.0 where we're getting the following ...
1
vote
2answers
1k views

Apache2 - setting PERL5LIB via SetEnv under CGI

my setup is as follows: I have one Apache2 webserver running different vhosts, one vhost is for the production website, the other vhost is for a staging / preview system. Both vhosts have different ...
2
votes
2answers
138 views

Is there another way to run Apache2 securely for end users without using CGI mode?

Is there another way to run Apache2 securely for multiple end users (like hosting hundreds of blogs) without using CGI mode as required by suPHP? It just seems so inefficient to use CGI mode for PHP ...
0
votes
1answer
967 views

Apache: Setting DocumentRoot to cgi directory results in downloading file instead of executing it

I have a c-compiled CGI application that I need to execute from the DocumentRoot of my Apache server. The CGI file is called index.cgi and is located at /usr/lib/cgi-bin/index.cgi. I have the ...
0
votes
3answers
100 views

Apache: Use Specific Applicaion for CGI scripts

I have two servers, one in production and one for development. The production server is Solaris, dev is FreeBSD. Because of this, python is installed in different directories. I'm using Python right ...
1
vote
1answer
2k views

How to return 404 from Apache2 CGI program

I'm using mod_rewrite to redirect all incoming requests to a CGI application. I now need to have the application return a 404 if the requested file isn't found. How can I go about this from my ...
1
vote
1answer
459 views

How to configure Apache so all requests go to single CGI file

I'm porting a CGI application from an embedded web server to run under Apache. In the effort of changing the least amount required I'm trying to figure out how to configure Apache so any requests ...
1
vote
1answer
2k views

Local .htaccess strangely allowed running PHP in CGI/FastCGI mode in Apache under shared hosting environment

I am using a shared web hosting service. Running phpinfo, I can see the Server API shows CGI/FastCGI rather than Apache 2 Handler. In this article: ...
0
votes
2answers
2k views

Configuration issue adding AWStat to Apache v2.2

I'm trying to add AWStats to my working Apache website. But when I go to my perl script it fails: http://localhost/awstats/awstats.pl?config=my.domain.here I get this error 500 in the browser: ...
3
votes
2answers
2k views

Set Apache HTTP header except for specified URL

I'm using Apache 2.2 and want to set the X-Frame-Options header to "deny" across most of the site. I can turn it on unconditionally using mod_headers. However, there is one CGI scripts that returns ...
0
votes
2answers
64 views

2010 cgi script failure

I hope you can help, I'm just a beginner! I have listed a few extra details which may not be relevant. I upload cgi scripts onto local/personal directory on a Apache/2.2.10 server, using FTP95Pro in ...
1
vote
5answers
6k views

How to compile PHP 5.3 CGI?

php-cgi seems to have vanished in PHP 5.3.1. I've tried both the --enable-cgi and --disable-cli flags for ./configure, but it doesn't create a binary under the sapi/cgi subdirectory.
2
votes
4answers
1k views

Perl CGI.pm module wildly out-of-date on RedHat/CentOS 5

I am trying to install all my Perl modules from RPM (using rpmforge.net), instead of just acquiring them from CPAN. My ultimate goal is to get Bugzilla 3.4.4 running. It requires CGI.pm 3.21 or ...
1
vote
3answers
364 views

Apache2 cgi's crash on odbc db access (but run fine from shell)

Problem overview (details below): I'm having an apache2 + ruby integration problem when trying to connect to an ODBC data source. The main problem boils down to the fact that scripts that run fine ...
2
votes
1answer
440 views

.htaccess 'RewriteEngine on' Breaks CGI Application

My .htaccess file is in the root directory of my website, and I narrowed down a problem to the single line of code 'RewriteEngine on'. How do I know it's this piece of code? Because I deleted the ...
2
votes
1answer
390 views

Error trying to get munin running as a cgi

I'm just cutting my teeth getting munin running (latest 1.4.1 on centos) . It's working but I want it as a cgi frontend so I'm not generating graphs constantly when I look at them a few times a day ...
1
vote
5answers
741 views

Methods of Uploading files to apache without webdav or ftp, scp, ssh, telnet or sftp?

The company where I work has a desktop application that uploads files to a site without any of the aforementioned protocols. They use CGI on the backend, so is it possible that they are uploading ...
0
votes
1answer
2k views

mod_rewrite: Rewriting / to cgi script

I have a vhost in which I would like to rewrite / to something like /cgi-bin/script?123. I thought something like this would work, but this rewrites to "/index.html/ somehow. RewriteEngine On ...
0
votes
3answers
1k views

Running nph-script.cgi keeps outputting Server details at the end

I am running a nph-script.cgi on my server. The server keeps adding HTTP/1.1 200 OK Date: Thu, 05 Nov 2009 02:28:53 GMT Server: Apache/2.2.8 (Ubuntu) PHP/5.2.8-1hardy~ppa1 with ...
2
votes
1answer
800 views

Running Web.py as an IIS CGI Script

I recently wrote a web.py-based stand alone web service. Due to unforeseen circumstances, the service has to run through IIS. I've heard that it's possible to run web.py as a CGI in IIS, but I'm ...
0
votes
1answer
158 views

Help making my root directory not executable for CGI scripts

I'm trying to make the root directory for a virtual host so that it can execute CGI scripts. I put the following in my virtual host declaration: <VirtualHost *:80> <Directory /> ...
0
votes
1answer
1k views

Make Apache wait longer before delivering HTTP 408 request timeout

My configuration: Apache 2.2.4 PHP 5.2.4 (fastCGI) Windows XP pro I have a script that takes more than a minute to run but after exactly 60 seconds (proven by Fiddler) the server always delivers a ...
0
votes
1answer
115 views

How do you setup your domains to use same php.cgi but different PHP.ini

I thought I had this figured out. I built a php.cgi, but rather than have a copy of php.cgi in the /cgi-bin/ dir for each domain I have. I create a sym link to a common directory so they could all ...
1
vote
2answers
212 views

Need to determine how php files are being rendered in a LAMP configuration (CGI, FastCGI, or mod-php)

How do I determine how our php files are being rendered in a simple LAMP configuration? phpinfo shows: -- Configure Command -- --enable-force-cgi-redirect --enable-fastcgi -- Server API -- ...
1
vote
5answers
4k views

You don’t have permission to access /index.py on this server

I am setting up a simple test page in Python. I only have two files: .htaccess and index.py. (Permissions for both set to 755) I get a 403 Forbidden error when trying to view the page - how can I fix ...
1
vote
2answers
1k views

How can I run a cmd.exe cmd file as an apache for windows cgi

It sounds simple enough, but I'm having a hell of a time getting it to work. Apache expects the first line of my script to say #!<path_to_cmd_shell> And I don't want to use perl or anything ...
1
vote
1answer
835 views

htaccess redirect / to cgi-bin/cgiscript.cgi not working

1st of all the disclaimer: this is my very first "meeting" with .htaccess, and I'm not a sysadm, never was, but the guy in the neighborhood, who used to set up the machine. So now I have to set up ...
1
vote
4answers
646 views

How to display cgi-bin errors instead of 500 in Apache?

I'm interested in getting errors from cgi-bin scripts inside the browser like the PHP errors. The cgi script can be Perl, Python, Ruby, binary or something else. I'm not interested about a specific ...
1
vote
2answers
243 views

HTML pages getting 'cut off' CGI/Perl

I noticed a problem with web pages getting 'cut off' with a Perl/CGI based proprietary application I administer on a server running Apache 2.2. This lead me to investigate the problem further by ...
0
votes
2answers
814 views

Can't execute index.php in root folder when PHP is installed as CGI binary

I'm trying to make a website on my school's server, but they have PHP installed as CGI, so .php files can only run in the cgi-bin folder. This is somewhat problematic if I want my index to be a .php ...
1
vote
3answers
361 views

How to diagnose erratic disk behavior?

I have a web site with users lighttpd and CGI scripts. After upgrading to Fedora 11 (ext4) the disc access became erratic. The timing of python -c 'import cgi' varies between 0.1 to almost 10 ...
-1
votes
3answers
842 views

Setting up an http proxy to use a web interface?

EDIT (8-23): For clarity I'm looking for an alternative to using web proxy scripts (Glype, PHProxy, etc.) by using proxy software like Squid or Privoxy. I want this new method to operate the same ...
5
votes
3answers
1k views

PHP as CGI or Apache Module?

I've always believed that PHP works better installed as an Apache module, but recently, someone on a local forum pointed out that running PHP as CGI is better security-wise. I've done some googling ...
0
votes
2answers
5k views

PHP 5.3 on IIS gives 404 error in CGI mode

Slowly losing my mind here. I had PHP 5.2 working fine (ISAPI) under IIS, but for some extension I needed 5.3. So no worries, I installed this but it turns out ISAPI is not supplied anymore. I ...
3
votes
3answers
2k views

bad interpreter: Text file busy

For ages I've gotten used to editing Perl CGI scripts in "vi" and simultaneously having a browser open to test them. Lately, I've been getting "500" server errors when I do that, and when I run the ...
1
vote
6answers
456 views

Using unix 'mail' command from CGI - dangerous?

I am adding a feedback form to a web page and would like to know if it is safe to simply filter the contents of the TEXTAREA element (after decoding) through the 'mail' command to send an e-mail to ...
3
votes
2answers
12k views

Apache 2.2 CGI timeout configuration

I have a default Apache 2.2 system setup with a Perl CGI script directory configured like so: ScriptAlias /jarvis/ "/opt/jarvis/cgi-bin/" Nothing fancy in here except one of my scripts takes over ...