From: Reini U. <ru...@x-...> - 2005-06-19 10:35:05
|
Alan Hoyle schrieb: > I'm running PHPwiki RC3 on Fedora Core 3 with php-4.3.11-2.5 and using > flatfiles for my DB. First of all: You're not using flatfiles, you are using DATABASE_TYPE=dba with DATABASE_DBA_HANDLER=flatfile, which is totally untested and not recommended at all. DATABASE_TYPE=file would create a single file per page in page_data/ and ver_data/ > It had been running for a couple of months without any problems, but > sometime recently it started failing with the following error: > > Fatal Error: > lib/DbaDatabase.php:54: Error: > dba_open(/home/alanh/public_html/wiki/pages/pagedb.flatfile): failed > to open stream: Permission denied > file: /home/alanh/public_html/wiki/pages/pagedb.flatfile > mode: w > handler: flatfile So your db got locked somehow, and you have to unlock it. I assume your system uses OS-level locks. Please read the dba docs how to unlock these two files. > lib/DbaDatabase.php:54: Error: > dba_open(/home/alanh/public_html/wiki/pages/pagedb.flatfile): failed > to open stream: Permission denied > file: /home/alanh/public_html/wiki/pages/pagedb.flatfile > mode: w > handler: flatfile > > I know that I didn't change anything on the machine (I'm the only > user). It just spontaneously started happening. > > drwxrwxr-x 12 alanh alanh 4096 May 10 15:54 wiki/ > $ ls -al|grep pages;ls -l pages > drwxrwxrwx 2 alanh apache 4096 May 9 11:12 pages/ > total 12312 > -rwxrwxrwx 1 apache apache 3787408 Jun 13 09:54 pagedb.flatfile* > -rwxrwxrwx 1 apache apache 8787161 Jun 13 09:54 session.flatfile* > > I don't know why this is going on. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ http://phpwiki.org/ |