perl - Internal server error after editing, but reuploading the originals does not fix -
i'm helping remotely website. major issue cannot hands on debug actual site. made sure code bug free on end, bug inevitable.
so site experiencing internal server error after updating server script(in perl). reuploaded originals , made sure originals work, error persists.
i have never seen situation this. else issue here? there sort of server cache?
are using mod perl? has nasty habit of caching broken code, restart server flush out. alternatively try renaming script testing purposes.
are using apache? server scrip errors logged /var/log/httpd/error_log - ask admin if wont have access. or them log error_log site somewhere can see/view.
additional techniques may able use
if not already, use warnings; use diagnostics; use cgi::carp qw(fatalstobrowser);
run page command line script, hack error message out closed environment.
#!/usr/bin/env perl use cgi; $cgi = cgi->new(); print $cgi->header(); print `myscript.cgi 'param1=hello¶m2=world'`;
check system settings , version against environment
#!/usr/local/bin/perl print "content-type: text/html\n\n"; print "<pre>\n"; foreach $key (sort keys(%env)) { print "$key = $env{$key}<p>"; } print "</pre>\n";
outside of need higher level access system, or reproduce enviromnent in vm contirol.
Comments
Post a Comment