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

learn more… | top users | synonyms

1
vote
5answers
782 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
3k 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
903 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
186 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
220 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
5k 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
865 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
751 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
266 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
842 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
367 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
887 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
468 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
16k 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 ...