Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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.

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 scrutinizing the Monastery: (7)
As of 2020-10-29 10:22 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (269 votes). Check out past polls.