Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: CGI script cannot create file.

by Utilitarian (Vicar)
on Dec 18, 2012 at 08:55 UTC ( #1009316=note: print w/ replies, xml ) Need Help??


in reply to CGI script cannot create file.

As our anonymous monk above says, if you want to know what happened, you really should ensure you log it. using an or die clause with every open ensures you know where you failed.

As to using sudo in a CGI script DO NOT DO THAT set up a directory that the nobody user (or whatever uid your web server runs under) has write access to.

Hope that helps

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."


Comment on Re: CGI script cannot create file.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-12-27 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls