Questions tagged [cgi]

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

279 questions
0
votes
1 answer

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, so that everything is seamless to the users. I…
jimtut
  • 217
  • 1
  • 3
  • 13
0
votes
2 answers

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 CGI script as use XML::Parser, all hell breaks…
Clinton Pierce
  • 186
  • 2
  • 10
0
votes
3 answers

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"
Jean
0
votes
1 answer

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 and run it displays the text as plain text. Here…
joatis
  • 101
  • 4
0
votes
1 answer

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 anyone know if it is possible to impose an .htaccess…
Rich
  • 1,343
  • 7
  • 28
  • 39
0
votes
1 answer

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)?
webminal.org
  • 273
  • 1
  • 5
  • 19
0
votes
1 answer

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 got a simple test script: #!/usr/bin/env…
0
votes
1 answer

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 '/home/pnathan/public_html/ajax.pl' failed [Wed Jul 14…
Paul Nathan
  • 285
  • 5
  • 12
0
votes
2 answers

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, but instead of text on the graphs its replaced by…
0
votes
2 answers

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. I've got Windows Server 2008 running Apache 2.2. I…
EMiller
  • 205
  • 2
  • 12
0
votes
1 answer

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 user." Having said that, here is my original…
Matthew J Morrison
  • 165
  • 1
  • 1
  • 8
0
votes
1 answer

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 thing. Trouble is -- server load is very high right…
ServerChecker
  • 1,518
  • 2
  • 14
  • 35
0
votes
3 answers

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/ Options +ExecCGI -Indexes allow from…
neversaint
  • 103
  • 1
  • 1
  • 5
0
votes
1 answer

Apache: Setting DocumentRoot to cgi directory results in downloading file instead of executing it

I have a c-compiled CGI application that I need to execute from the DocumentRoot of my Apache server. The CGI file is called index.cgi and is located at /usr/lib/cgi-bin/index.cgi. I have the following Directory definition
user11888
  • 89
  • 2
  • 5
0
votes
3 answers

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 now for making CGI scripts, and needing to…
RandomInsano
  • 451
  • 1
  • 5
  • 19