Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by ChuckularOne (Prior)
on Dec 07, 2010 at 17:48 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://875848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found