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

learn more… | top users | synonyms

1
vote
2answers
144 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
553 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
625 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
451 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
323 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
126 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 ...
0
votes
1answer
125 views

C CGI invoked by apache 2.2 on Windows 7 cannot read environment variable

I have a C CGI that is invoked by Apache, both running as SYSTEM. The CGI relies on the setting of WINDIR and TEMPLATES environment variables. It gets the value of WINDIR without any problems but ...
3
votes
3answers
97 views

Are there benefits in using CGI in a large scale Apache2 server or should I just use FASTCGI?

I have a web product done in PHP that theoretically should support a lot of users. Problem is, I just left the apache as it is and found out its just running as CGI. Is this very wrong and I should do ...
1
vote
2answers
214 views

Apache Mod_Rewrite: Aliases and CGI

I am trying to get Apache to run a cgi executable in my "project" directories. It should respond to HTTP requests at: localhost/packages localhost/packages/ However, it should not respond to http ...
3
votes
2answers
424 views

how to spawn php-cgi automatically when it exits?

I am using php-cgi on ubuntu(with nginx), and the command to start it is: spawn-fcgi -a 127.0.0.1 -p 9100 -f /usr/bin/php-cgi -P /var/run/fastcgi-php.pid but sometimes the php-cgi process will exit ...
4
votes
2answers
796 views

Windows Apache 2.2 painfully slow executing CGI

I've recently set up Apache 2.2 and git on one of our Windows XP PCs for gitweb access using the setup at https://git.wiki.kernel.org/index.php/MSysGit:GitWeb As noted on the wiki, the only version of ...
4
votes
3answers
379 views

Generate TFTP Content on the fly?

I know this isn't the purpose of TFTP, but I'm working in an environment where a lot of different types of devices pull provisioning info from a TFTP server. What I'm developing is a provisioning ...
1
vote
1answer
370 views

Installing Redmine with apache in localhost slackware 13.1

I just installed Redmine in slackware 13.1 I followed the instructions and test of the installation works fine using webrick: ruby script/server webrick -e production However, I now want to use it ...
1
vote
0answers
193 views

lamp php ubuntu 10.04 with cgi I get accesses to '/var/www/…' instead of '/usr/lib/cgi-bin/…'

I have a basic php cgi configuration problem on top of the apache web server in Ubuntu 10.04 . I am trying to setup cgi so as to answer one of the urls localhost/cgi-bin/index.php or ...
3
votes
2answers
442 views

PHP as a CGI binary vs. PHP as an Apache module

What are the benefits of running PHP as a CGI binary compared to running PHP as an Apache module? Are there: Security benefits? Stability benefits? Performance benefits? I've always installed and ...
0
votes
1answer
102 views

access cgi script from a subdomain with nicer URL

I want to access this page (working) http://stats.example.com/cgi-bin/awstats.pl?config=www.example.com via http://stats.example.com/?config=www.example.com <VirtualHost *:80> ...
1
vote
3answers
681 views

“svn update” on a remote machine

I need an ability to run "svn update" on a remote machine for a non-technical user, how would I go about it? Our non-techincal users are using Windows XP and have Tortoise SVN client installed. I'm ...
1
vote
2answers
3k views

Should apache ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ line be removed in production?

Here is the part of my current apache config that refers to cgi-bin stuff. This info was included in the default configuration in debian. Should this be removed on a live/production machine? ...
1
vote
2answers
175 views

Apache CGI Script Can Cannot Overwrite a File in a Directory it has full permissions to

Having a weird problem on a Solaris 10 box. I have a cgi script (perl) which needs to overwrite a file. We do not have suexec running on Apache so the destination directory has full (777) access so ...
1
vote
1answer
213 views

PHP CGI for apache virtual host

I'm using PHP5.3 as module for Apache2.2(Windows). For one virtual host i need use PHP4 as CGI for .php files. This is my config <VirtualHost *:80> DocumentRoot "E:\projects\php\wp\dev" ...
0
votes
2answers
688 views

How does nginx support cgi?

With apache ,I just put my binary under cgi-bin,how about nginx? Does it support cgi at all?
0
votes
2answers
9k views

How do you give execute permissions to Apache2 user and NOT to everyone else?

I have Ubuntu Server running and I am setting up a separate directory as a cgi-bin. I have the directory ready and I changed the file for the site. However, to get it to work, I need to change the ...
0
votes
1answer
346 views

Git Server on Shared Hosting

Are there any revision control systems (git preferred) that could run on shared hosting server presumably by being launched as CGI scripts?
0
votes
1answer
771 views

Can't configure trac to work with Apache2

I've been trying to set up trac to be deployed with apache for a little while now and I'm running into a wall. This is the response I'm receiving from my server Internal Server Error The server ...
2
votes
1answer
1k views

CGI Died, error log

I've been getting some 500 internal server errors on my website every so often, so I had a look at the error log. I am using lighttpd with Kloxo (lxadmin) installed. I have xcache enabled. ...
2
votes
4answers
2k views

How to add a pool to FPM (nginx) without reload/restart fpm itself?

Im building an environment (on a ubuntu 10.04.02 machine) to handle a website with many (should support at least 1000) subdomains, each of them served by a different FPM pool, with a different user. ...
0
votes
1answer
214 views

To what extent does mod_suexec interact with Passenger?

On a shared server (specifically a DreamHost shared server running Debian, but I don't know if this matters) with mod_suexec activated and with PHP and Python forced to use CGI or FastCGI, would you ...
1
vote
1answer
546 views

RewriteRule [E=CONTENT_TYPE:foo/bar] has no effect on Apache/mod_php

I was trying to prevent PHP from parsing POST requests. It does automatically when it sees the according MIME type. For that I was considering following RewriteRule hack: RewriteCond ...
0
votes
1answer
1k views

Prevent CGI Timeout in Apache with PHP

I have a PHP process which the user runs in the browser, but tends to take a fairly long time - upwards of 5 minutes. We just switched to a new server, and when we try to run the script now, it ...
0
votes
1answer
860 views

Error in Apache: /var/run/apache2 not found

This is more self-answered question but since it drove me crazy I would like to share with the community and maybe someone can tell me why it happened or what it caused. The thing is I wanted to ...
2
votes
1answer
511 views

How to get input content from GET or POST request in CGI program (via apache)?

I'm studying making a CGI program. Now I can print text what I want. But how can I get GET or POST input from CGI program? (such as query-string or post-body)
1
vote
1answer
449 views

How to run CGI binaries in Apache with “nice” priority

I have an apache server that runs some binary CGI programs. Those programs behave nicely most of the time, but on rare occasions they gult up all the RAM, or run for a very long time, taking 100% cpu. ...
2
votes
1answer
599 views

Apache mod_perl vs. mod_cgi: How do I decide which to use?

What factors should I consider when deciding whether to use Apache's mod_perl or mod_cgi, when configuring an existing web application?
21
votes
1answer
3k views

Python CGI on Amazon AWS EC2 micro-instance — a how-to!

How can you make an EC2 micro instance serve CGI scripts from lighthttpd? For instance Python CGI? Well, it took half a day, but I have gotten Python cgi running on a free Amazon AWS EC2 ...
0
votes
1answer
226 views

Debian, Apache2, CGI: paths issue

I have a perl form email script on the servers cgi-bin directory ( /usr/lib/cgi-bin ). /etc/apache2/sites-enabled/000-default ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory ...
0
votes
1answer
534 views

404 Not Found for a PL script that exists!

I make a GET request to a CGI script and I get a 404 error. However, I am 100% sure that script is present and it has permissions: -rwxr-xr-x 1 apache apache 6520 Sep 7 03:01 ...
1
vote
0answers
223 views

PHP giving 500 internal server error on new server

I am trying to run a simple PHP script which displays phpinfo() but I am getting 500 internal server error. What could be the reason? Is it because PHP handler is set to suPHP and I shall change it to ...
0
votes
1answer
345 views

Lighttpd passing url as argument to perl cgi script instead of trying to find file

So I am running lighttpd and am in the process of hacking together a simple pastebin-like scipt. I have set up pb.domain.blah to run a perl cgi script (it is set in index-file.names) and was ...
0
votes
1answer
81 views

CGI file executes only on local machine, not online

I've got a CGI script written in python (starts with #!/usr/bin/env python) that executes fine on the server. I type in /home/company/server/root/adam/code.cgi and it outputs the right output. I go to ...
1
vote
2answers
574 views

How to limit the number of concurrent CGI script invocations in Apache 2.2?

How can I limit the number of concurrent CGI invocations in Apache 2.2.x? More specifically, my problem is this: I have Apache hosting a Bugzilla instance and other stuff on one server. There's very ...
0
votes
1answer
416 views

Setting up thttpd to run vqadmin or qmailadmin…keep getting 404s

I run nginx for my web server but wanted to quickly toss up thttpd so I could do some maintainenace using either vqadmin or qmailadmin. Those files are located at: ...
0
votes
3answers
1k views

Is there an alternative to cgi/fastcgi

Just curious to know, is there any other alternative to cgi/fastcgi?
0
votes
1answer
619 views

Accessing UNC paths from inside Perl CGI under IIS6

For space reasons, we need to move some files off our main file/webserver to another network fileserver. However, the original file/webserver is still responsible for providing access to these files, ...
0
votes
2answers
704 views

Perl Module XML::Expat won't dynamicall load under IIS 7 and Windows 2008

We're moving our old Perl/CGI application to a new system internally and ran into a snag. When I run: perl -MXML::Parser -e 1 From the command line, all is well. However, when I run it from a ...
1
vote
1answer
200 views

How to convert php5 cgi to module?

I installed PHP5 on my debian lenny system as cgi. Now I found that flush() in php is only working for php installed as module. Anyone know how to (re)install php5 as module? (apache2) Thanks :)
2
votes
2answers
115 views

Regular web CGI scalability on modern hardware?

I am engaged with a project to upgrade a time-tracking system that's been basically unchanged for 10 years. It runs Linux/Apache/CGI/MySQL3 on an HP Proliant Pentium some-or-the-other, with a ...
0
votes
3answers
1k views

How do I invoke a Perl CGI script when the user requests an HTML page?

Is there anyway to invoke a Perl CGI script when an HTML page is requested to server? Just like a script can be tied to an action, is there anyway to tie a script to "Request for page"
0
votes
1answer
279 views

cgi script served as plain text when called from .htaccess

I'm Running Apache 2.2 on the RackSpace CloudSites. I have a Perl CGI script that works fine if called directly via URL. I want to use the script as a custom ErrorDocument, but instead of being parsed ...
5
votes
3answers
7k views

How to pass $_GET variables to a PHP script via the command line?

I am trying to create a webserver that serves PHP scripts. Currently, it works as follows: The client requests /index.php?test=value The server invokes php index.php The server feeds the HTTP ...
1
vote
1answer
192 views

Make Nagios graphs public

I have a Nagios instance running on Ubuntu Server Lucid as a VM monitoring our Windows network. I would like to have some specific graphs made by the trends.cgi file available on the internal ...