Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

cgi scripts timing out

by mojobozo (Monk)
on Dec 03, 2002 at 17:47 UTC ( #217294=perlquestion: print w/replies, xml ) Need Help??
mojobozo has asked for the wisdom of the Perl Monks concerning the following question:

I wrote a nice file upload script that works beautifully on the localhosts (mine and a co-worker's) but crashes on the server. Can't seem to find out why, so we went to square one to see if things were working properly with simple scripts. I uploaded this one:
#!/usr/bin/perl print "Content-type: text/html\n\n"; print "<HTML>"; print "<BODY>"; print "Hello, Rico."; print "</BODY>"; print "</HTML>";

which works great on the localhost but timesout on the server.

Server information: IIS 5.0 on a Win2K machine.
Any thoughts?
word (wrd)
interj. Slang. Used to express approval or an affirmative response to
something. Sometimes used with up. Source

Replies are listed 'Best First'.
Re: cgi scripts timing out
by dingus (Friar) on Dec 03, 2002 at 18:13 UTC
    If you have console access to the server then maybe you could try cding to the relevant dirctory and then running "perl" and seeing what happens.

    If that prints out your HTML try just "" from the commnd line to see if perl is correctly associated with the .pl extension - take a look at the activeperl specific help (mirrored here if you need it and especially the how to associate .pl with perl FAQ answer).

    If it all works from the CLI and you followed the related links to the one above for how to enable perl support in IIS then the obvious thing to do is look in the log file and see what it is that IIS is saying it did.

    Alternatively you bin IIS and run a real web server (Apache, thttpd, Xitami or any one of a million others) and get the added benefit of a lack of Microsoft security holes after all even Microsoft'spaid for IDC study said that opensource is better for running webservers


    Enter any 47-digit prime number to continue.
Re: cgi scripts timing out
by MZSanford (Curate) on Dec 03, 2002 at 17:49 UTC
    My first thought is that the directory this code has been installed in is not configured in IIS as executable. Another possibility is that IIS is not configured to execute perl correctly. I have not worked much with IIS, but these are the common issues i have seen with other http servers.
    from the frivolous to the serious
Re: cgi scripts timing out
by pg (Canon) on Dec 03, 2002 at 20:15 UTC
    Cannot say much, as your description is very brief, but try to add 'Content-Length' in your content.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://217294]
Approved by pg
Front-paged by tye
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-02-22 22:41 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (338 votes). Check out past polls.