From: Joel U. <uck...@no...> - 2005-04-18 18:21:41
|
Thus spake Alan Hoyle: > Hi all, > > I've done a few searches for answers online, but the archives for PHPWiki > list at sourceforge appear to be down (along with the entire search > capability at sf.net).... > > Anyway, I was happily running PHPWiki 1.3.x on RedHat 9.0 for a long time > and finally got fed up with the lack of updates. So, I upgraded to Fedora > Core 3. I discovered that the default installation of PHP didn't include > GDBM support, so I installed the php-4.3.11-2.4.src.rpm, edited the spec > file to add the --with-gdbm and --enable-dba options, recompiled, and > reinstalled PHP. restarted Apache, and I'm now getting the following > error message: > > lib/DbaDatabase.php:54: Error[256]: dba_open(/home/alanh/html/wiki/pages/p > agedb.gdbm,c): Driver initialization failed for handler: gdbm: File open erro > r > file: /home/alanh/html/wiki/pages/pagedb.gdbm > mode: c > handler: gdbm > > I don't think this is a permissions problem: > > $ 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* > > Any suggestions as to what to try? > > Again, I apologize if this has been answered in the past. > > -alan The default Fedora build of php no longer has gdbm support. Re-enabling gdbm support is very easy, though: 1. Get the source rpm for php. 2. Install it: rpm -i php-4.x.yy-z.src.rpm 3. Find the line in php.spec that says '--without-gdbm \' and change that to '--with-gdbm \'. 4. rpmbuild -bb php.spec 5. Install the php packages you just built. That should do it. |