Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Strange DBM behavior

by andreychek (Parson)
on Jul 03, 2001 at 20:59 UTC ( #93579=note: print w/ replies, xml ) Need Help??

in reply to Strange DBM behavior

This definitely sounds like a permissions issue as opposed to a Perl issue, but a little more information might be helpful.

You mentioned about chmod'ing a file, so I'll assume you're using UNIX/Linux. You're using CGI::Carp, so I'll assume you're using this under a browser, and not running it by hand or via cron. Which probably means you're using Apache (since netcraft claim 62% of the net is using that anyway :-)

It sounds like what you need to do is verify that the directory your db files are in are writable by the user which Apache is running as, which would often be 'apache' or 'nobody' on a UNIX-like system. Additionally, make sure the pricelist.db is writable by that same user. If it isn't, it would block you from being able to access that DB, such as what is happening right now. Since you are unable to chmod it, you may have to do it as root. If you don't have root access, just ask your admin to make those dirs/files writable by the Apache process.

Comment on Re: Strange DBM behavior

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-11-25 10:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (673 votes), past polls