Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: cgi script is not running from browser but runs from command line

by ChuckularOne (Parson)
on Dec 07, 2010 at 17:48 UTC ( #875848=note: print w/ replies, xml ) Need Help??


in reply to cgi script is not running from browser but runs from command line

This may not be related to your issues, but always run scripts from the command line as your cgi user. The default on Apache is "nobody". The reason for this is that the environment is completely different (and very restricted) for the nobody user.

Once you are sure that all else is equal between the command line and the browser, you'll be in a better position to understand your problem.


Comment on Re: cgi script is not running from browser but runs from command line
Re^2: cgi script is not running from browser but runs from command line
by supi (Initiate) on Dec 15, 2010 at 17:01 UTC
    I tried changing user of apache. But no use. My program is not getting executed from browser. But runs from command line.
      Are you able to su to the user that actually runs the script? (Usually "nobody") If so. Try running the script as that user and see what errors you get. Doing this has always been helpful to me.
        I have changed user by making changes in httpd.config and run program from command line using the same user. But problem still continues. I make use of getstore procedure in LWP module. I think it is not getting executed when run from browser.
        I think that, problem is that - my arrays are not getting reinitialized when i run program from browser.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-07-22 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (113 votes), past polls