http://www.perlmonks.org?node_id=782665


in reply to Script works differently on two different servers

Problems like this will often be down to the ownership of the file or the permissions of the user owning the file. Remember that when running as a CGI program your code almost certainly runs as the web server user, not as you.

But this is all just guesswork. As moritz says, the only way to be sure is to look in the error log.

Update: I've just remembered - This is a FAQ.

--

See the Copyright notice on my home node.

Perl training courses

  • Comment on Re: Script works differently on two different servers

Replies are listed 'Best First'.
Re^2: Script works differently on two different servers
by shawnhcorey (Friar) on Jul 23, 2009 at 14:35 UTC

    An added note: you should also check the user name of the server; they may be different on different machines. Some names are: nobody, www, and web.