Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Script error after move to new server

by Lou (Initiate)
on Sep 20, 2000 at 20:37 UTC ( [id://33335]=perlquestion: print w/replies, xml ) Need Help??

Lou has asked for the wisdom of the Perl Monks concerning the following question:

Greetings: Please forgive me if this is a stupid question, but I am not a web programmer and know nothing about Perl. That said, I have a web site using Active Perl scripts running on NT 4.0 w/ SP6a & IIS4. We just purchased a new server machine. I installed NT, IIS, Active Perl, all service packs ect. We copied over the entire web site (manually and using a Web Site Export utility). Everything works on the new site except one Perl script for processing online orders. We get a message saying: "order.pl' script produced no output". Is there something I need to do on the new IIS server (other than installing Active Perl) to allow the old server scripts to run properly on the new server? I am totaly lost on this and the person who created the scripts is out of town. Any help or suggestions would be greatly appreciated. Thanks, LOU

Replies are listed 'Best First'.
RE: Script error after move to new server
by Maclir (Curate) on Sep 20, 2000 at 23:43 UTC
    Without seeing the code in question, or the server error logs, look for the following:

    • Changes in files / directories. Something may not be where you think it was;
    • Does the new server have all the required modules?
    • Bad permissions
    • File corruption in transfer (open the script in notepad)
    • Not everything moved across
    • Absolute vs relative URLS

    This is justa start- let us know what the actual error messages in the server logs are.

      Good day! Thanks for all your suggestions. We were able to determine that Perl was missing a module. After locating and installing the maodule, out script began working again. Thanls to all those who offerred advice. LOU
Re: Script error after move to new server
by Fastolfe (Vicar) on Sep 20, 2000 at 21:25 UTC
    Check your web server's error logs. Failing that, try to run the script by hand. The error message you're describing is consistent with the script failing to compile or execute, or perhaps it's abending early in its execution if it can't find a particular file or database connection. In all of these cases, the script should produce error message output that should be reflected in your server's error logs like any other CGI problem.

    We will need more information in order to help you any further than this.

Re: Script error after move to new server
by rodry (Beadle) on Sep 20, 2000 at 22:31 UTC
    Hello there. I will tell you right now that the Monks here will ask you sooner or later (sooner I think) to post the code in question.

    In the meantime, I had a similar problem of a script that generated empty output. As Fastolfe pointed out, it happened to be that the script never executed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://33335]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (None)
    As of 2024-04-25 03:54 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found