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

learn more… | top users | synonyms

0
votes
3answers
112 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 ...
2
votes
1answer
4k 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
496 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
3k 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
7k 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: ...
4
votes
2answers
5k 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
73 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
8k 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
387 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
498 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
524 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
831 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 ...
2
votes
1answer
4k 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
987 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
221 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
2k 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
236 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
6k 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
2k 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
888 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
904 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
285 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
929 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
368 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
919 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
2k 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
473 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
21k 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 ...