On Friday, Nov 21, 2003, at 10:40 US/Pacific, Robert Brown wrote: [..]

# open the username/password database or create it dbmopen(%passwd, $passwd_db, 0600) || die "cannot open $passwd_db: $!";

And here is what gets logged in /var/log/httpd/error_log:

[Fri Nov 21 12:12:59 2003] [error] [client 192.168.1.3] cannot open /home/rj/chat/login.db: File exists at /var/www/cgi-bin/rj_chat_login.cgi line 109., referer: http://www.elilabs.com/~rj/chat/rj_chat_login.html

Obviously, from the viewpoint of perl 5.6.x programs, perl 5.8.0 has a
very broken dbmopen.  Of course the file exists!  Its a passwoed
database; you can't go creating that new every time you want to use
it!  So why can't it open it?
[..]

I guess the first question I would ask is which
DB_FILE format were you using under 5.6.x that
seems not to have arrived in 5.8.0.

the dbmopen()

I remember hoving some issue with dbm/ndbm...

perl the 'perldoc DB_File' it notes that if you
are going to use the newer versions of Berkley DB 2.x or 3.X
you will want to use BerkleyDB.

cf:
<http://search.cpan.org/~pmqs/BerkeleyDB-0.25/BerkeleyDB.pod>

It is possible that this has happened 'under the sheets'
for you with the shift from 6.x to 9.x so you will need
to essentially dump the old format into a new format,
assuing that is the real issue here.

the alternative of course is the simpler problem of
permissions, and that the web-server can not actually
read the file. Do you have a piece of test code that
merely opens and reads it?

ciao
drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to