Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: CGI script fails to execute in browser

by thewebsi (Scribe)
on Oct 21, 2014 at 07:42 UTC ( [id://1104532]=note: print w/replies, xml ) Need Help??


in reply to CGI script fails to execute in browser

Web servers often run in a different environment than the command-line.

What I would suggest, since you seem to have Data::Dumper loading fine, is to dump out %ENV and @INC, and compare the results in the web server to your command-line. Look for environment variables that affect the path, such as PATH, PERLLIB/PERL5LIB, etc. You may want to update the web server configuration to set them differently. There are other ways to set paths depending on the web framework you are using. It's also possible for the web server to use an entirely different version of Perl than the command-line, so you might want to check for that too.

  • Comment on Re: CGI script fails to execute in browser

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-25 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found