Red Hat Topics - PHP and gdbm?

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > April 2005 > PHP and gdbm?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PHP and gdbm?
Alan Hoyle

2005-04-15, 5:46 pm

Hey all,

I recently upgraded to FC3 and my PHPWiki stopped working since I was
using gdbm as my back-end database. From looking online, I discovered
that php the default RPM of php had gdbm disabled. I downloaded the
..src.rpm for PHP, edited the spec file to have "--with-gdbm" and
"--enable-dba" rebuilt and reinstalled the RPMs.

I'm running Apache 2.0.52-3.1 and my custom compiled version of
php-4.3.11-2.4 and I've installed the current 1.3.11 version of
PHPWiki.

I've restarted apache, and now I get the following error when I try to
bring up my wiki page:

lib/DbaDatabase.php:54: Error[256]:
dba_open(/home/alanh/html/wiki/pages/pagedb.gdbm,c): Driver
initialization failed for handler: gdbm: File open error

file: /home/alanh/html/wiki/pages/pagedb.gdbm
mode: c
handler: gdbm

I don't think it's a permissions problem as I've chmod'ed the file to
777 even...

$ ls -l /home/alanh/html/wiki/pages/pagedb.gdbm
-rwxrwxrwx 1 apache apache 1024021 Apr 13 08:46 /home/alanh/html/wiki/pages/pagedb.gdbm*

Anyone have any hints/suggestions?

-alan

--
Alan Hoyle - alanh@unc.edu - http://www.alanhoyle.com/
"I don't want the world, I just want your half." -TMBG
Get Horizontal, Play Ultimate.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com