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

learn more… | top users | synonyms

0
votes
2answers
12k 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
396 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
898 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
2k views

CGI Died, error log [closed]

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. 2011-04-...
3
votes
4answers
4k 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
241 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 ...
2
votes
1answer
927 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 %{HTTP:Content-...
0
votes
1answer
2k 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 ...
-1
votes
0answers
2k views

Error in Apache: /var/run/apache2 not found [closed]

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
989 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
628 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. ...
3
votes
1answer
897 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
5k 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 micro-...
0
votes
1answer
232 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 "/usr/lib/cgi-bin"...
0
votes
1answer
1k 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 uu_ini_status_audios....
1
vote
0answers
242 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
431 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
90 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
810 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
505 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: /usr/local/apache/cgi-bin/...
0
votes
3answers
2k views

Is there an alternative to cgi/fastcgi

Just curious to know, is there any other alternative to cgi/fastcgi?
0
votes
1answer
715 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
1k 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
221 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
138 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
2k 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
316 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 ...
7
votes
3answers
17k 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
217 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
774 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
209 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
95 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
7k 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
397 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
453 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 ...
0
votes
3answers
217 views

PHP Cron Job without PHP Binary?

I am looking to run a PHP script with a cron job, but it seems I don't have a PHP binary. Looks like I don't have PHP installed as a CGI, so without reinstalling/configuring my PHP, what is the best ...
0
votes
1answer
674 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
1k 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
2answers
450 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 generated,...
1
vote
1answer
201 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
1k 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. ...
3
votes
3answers
2k 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 ...
2
votes
2answers
4k 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
324 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
310 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
7k 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 /var/www/mychosendir/...
2
votes
4answers
8k 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 problem:...
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
143 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 ...