1
vote
1answer
25 views

CGI Script not running in PHP file

I have a CGI script in the server called script.cgi and I have added the following code to the domain vhost: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .html I have ...
0
votes
3answers
61 views

Most efficient way to serve less than 10 http requests per day using cgi

Our company manages over one hundred servers and we would like to "ask" these servers for basic usage info once or twice a day using http. The usage info can be easily found with a perl cgi script ...
-1
votes
1answer
42 views

perl script running only once on IIS 7 server

I am on Windows 7 (IIS 7). When I run a perl script it works fine once and returns the output to any browser. It takes input from html form and prints the input as text. Upon reload or second run, the ...
0
votes
1answer
121 views

Free Perl for IIS

I'd like to use awstats for website statistics. Is there some free Perl distribution that plays nicely with IIS 7? This is what I've tried: Googling for perl iis yields a lot of tutorials, all of ...
1
vote
1answer
62 views

tomcat server not running after uncommenting servlet tags in web.xml

I am running tomcatserver and i need to execute a perl script. I searched online and found out that i need to uncomment in conf/web.xml <servlet> ...
0
votes
0answers
39 views

cgi-bin for virtualhosts in apache

Let's assume that I have 2 virtualhosts running for the domains domain1.com and domain2.com. For these domains I set the documentroot to c:\server\htdocs\user\domains\domain1.com and ...
1
vote
1answer
175 views

perl app on apache and cgi behaves terribly with 504 gateway timeouts

Note: This question is about my server configuration giving 504 timeouts. I made a project here http://www.tryperl.com/ (requires auth with GitHub to sign in). Please be kind, I'm working on to learn ...
0
votes
1answer
311 views

deploying perl dancer on apache with a virtual host

Forgive my lack of knowledge I'm just learning linux administration here. A week ago I read this article about setting up virtual hosts, I then installed and setup mod_perl and my perl Catalyst ...
0
votes
2answers
128 views

Centos 6.3 PERL CGI selinux file read access

I have a CGI script called index.cgi It is trying to read a log file called 10.128.0.242.2012.sep.20.downloaded.txt under the path /var/log/trafcount/ It appears that it is being blocked by selinux. ...
1
vote
1answer
589 views

Centos 6.3 PERL CGI selinux file read access

I have a CGI script called index.cgi It is trying to read a log file called 10.128.0.242.2012.sep.20.downloaded.txt under the path /var/log/trafcount/ It appears that it is being blocked by selinux. ...
0
votes
1answer
675 views

Need help running CGI scripts on Mac OS X Apache

I'm trying to run a simple CGI perl script (see below) using Apache on my Macbook running OS X Lion and I'm having difficulty getting it to run even the simplest of scripts. I have turned on web ...
0
votes
1answer
51 views

Modify apache 2 to use different Perl instance

I have 2 installed Perl on the OS, now my cgi script need to run the module on newly installed Perl, I've already set played the PERL5LIB, @INC to include the new instance but it doesn't work. Any ...
0
votes
2answers
128 views

Is this script nefarious?

This is sitting in my web site's cgi-bin. Should I be concerned about it? #!/usr/bin/perl print <<HTML; Content-type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 ...
4
votes
2answers
718 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 ...
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 ...
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
560 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 ...
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"
1
vote
1answer
198 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
852 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. ...
2
votes
3answers
973 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 ...
0
votes
2answers
3k 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 ...
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
4answers
1k views

Perl CGI.pm module wildly out-of-date on RedHat/CentOS 5

I am trying to install all my Perl modules from RPM (using rpmforge.net), instead of just acquiring them from CPAN. My ultimate goal is to get Bugzilla 3.4.4 running. It requires CGI.pm 3.21 or ...
2
votes
1answer
377 views

Error trying to get munin running as a cgi

I'm just cutting my teeth getting munin running (latest 1.4.1 on centos) . It's working but I want it as a cgi frontend so I'm not generating graphs constantly when I look at them a few times a day ...
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 ...
1
vote
2answers
236 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 ...
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 ...