You may need 0666 as the permissions. I presume you have shell access? It is much simpler to debug things on the command line. Try the simplified script I posted and then add a line to do what you want. I need to know which flavour of DB you are running (an the script will tell you). Run it off the command line. Once you get it to work off the command line add this to the test script
BEGIN {
$|=1;
print "Content-type: text/html\n\n";
use CGI::Carp('fatalsToBrowser');
}
and try to run it as a CGI. It should still work. If it does not it is a permissions issue. The resource temporarily unavailable makes me think something ?apache is locking the DBM file. Anyway try off the command line first, then as a CGI |