PDA

View Full Version : perl scripts stop working


ptiemann
07-21-2006, 01:01 PM
Last night I found that my site (hosted on bluehost) stopped performing perl scripts. I suspected inconsistent data in the db, but could not figure out what was wrong. Eventually things started working again by itself.

Right now the problem is back.

I have a basic script that I invoke with

http://(mydomain)/cgi-bin/xx.pl

This script executes FINE on the console.
Through the web browser, I get a

<!-- SHTML Wrapper - 500 Server Error -->

permissions are fine. I've used this script which prints out the environment for many years. Never a problem.

I ran top and found no overly high CPU load.


#!/usr/bin/perl

print "Content-type: text/plain\n\n";
print "<HTML>\n";
print "<HEAD><title>Cookie test + Environment</title></HEAD>\n";
print "<body>\n";

#foreach $key (sort keys %ENV) { print $key, " = ", $ENV{$key}, "<BR>\n"; }

print "</body>\n";
print "</HTML>\n";

---------------

TOP:

top - 13:02:15 up 2 days, 17:21, 1 user, load average: 10.55, 7.34, 7.28
Tasks: 441 total, 4 running, 431 sleeping, 0 stopped, 6 zombie
Cpu(s): 26.8% us, 7.2% sy, 0.8% ni, 41.8% id, 21.9% wa, 0.0% hi, 1.5% si
Mem: 4011696k total, 3921408k used, 90288k free, 184464k buffers
Swap: 1052248k total, 7820k used, 1044428k free, 2094692k cached

------------------------




WHAT is going on? My site cannot exist w/o perl working.

-Peter