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

Re: Cannot save to file with a CGI scipt

by valdez (Monsignor)
on Sep 23, 2002 at 15:38 UTC ( #200138=note: print w/replies, xml ) Need Help??


in reply to Cannot save to file with a CGI scipt

The funny thing happening here is that your web server runs under a different user, usually apache|nobody|www. Probably the directory you are trying to write into is owned by you and not by the user that runs httpd. So, if you check $! you will probably see a permission denied error.
The solution is to change the owner of the directory where your script will write its files. Now you need to discover who should be the owner :)

Ciao, Valerio

  • Comment on Re: Cannot save to file with a CGI scipt

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2023-06-09 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (35 votes). Check out past polls.

    Notices?