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

learn more… | top users | synonyms

0
votes
1answer
122 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
207 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
383 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
717 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
341 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
355 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
192 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
422 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
99 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
562 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
159 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
206 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
680 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
8k 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
339 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
718 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
930 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
3answers
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
208 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
484 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
837 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
784 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
463 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
413 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
500 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
223 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
456 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
214 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
325 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
80 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
534 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
407 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
559 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
636 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
197 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
108 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
264 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
5k 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
188 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 ...
1
vote
1answer
495 views

Install PHP both as CGI and CLI

I'm trying to set up development environment for some old projects in PHP 5.1.4. It needs to run as CGI (or fastcgi) under apache and I would like to have cli binary. My configure options are: ...
0
votes
1answer
198 views

Enable or disable Apache password protection depending on requested URL

We have a CGI script in Apache 2.2.3 for browsing log files on our syslog server. The script is called like this: http://myserver/cgi-bin/logView.cgi?/var/log/syslog-ng/a/b/c/20100923.log Does ...
0
votes
1answer
90 views

c (cgi) program to process html forms

Is it ok to have C or python program to process html form? Though I worked on php and java stuff.what are the disadvantages or advantage of such approach (using c/python)?
0
votes
1answer
4k views

dedicated server - cgi-sys/defaultwebpage.cgi redirect when accessing via server IP

This isn't so much of a problem, but would like to know why this happens. we have a dedicated server running WHM. If I access the server via its IP address directly I am automatically redirected to ...
3
votes
1answer
360 views

Selective setuid root or running an application as root ? (web server/cgi context)

Well we have an in house server manager (like Webmin, only more specific), comprising of a bunch of C CGI programs and CGI Perl scripts, some of which require root privileges (adding system users, ...
1
vote
1answer
330 views

How can I use Python's CGIHTTPRequestHandler as a dev server for PHP

I love how to try a Rails app out, I just type script/server. I wish there were a way to do something similar from the top level directory of a PHP project. This answer to the question "Downloading ...