I tried to upgrade from an existing Berkeley db2 Database to db4, as db2 is no longer supported within SuSE. I have compiled php to load dba/db4 database files and upgraded the old database file to db4.
No I get the followin error (1.3.10):
dba_open(/srv/www/htdocs/phpwiki-1.3.10/pages/wiki_session.db4,w): Driver initialization failed for handler: db4: Invalid argument
The wiki_session.db4 file is created by phpwiki during first startup.
It seems that it has something to do with the authentication, but I cant figure out what.
Is there a way to disable the DB usage for sessions completely?
Marcus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looks like newer db versions need open flag 'c' instead of 'w', older version don't work with 'c'.
In current dba code I try both, but it's still not clear to me.
In previous phpwiki-talk messages I explained it better, but I have no access to it currently.
Search the archive, or look at the descriptions in the code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-05-26
I changed the open flag to "c" and got the following error now:
All I need is the data from an old wiki db (db2) which crashed. If someone got an phpwiki with working db2 support and is willed to help me, it would be nice.
An export to HTML would fit my requirements, so I can set up a Wiki with SQL support later.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The real problem is that I don't have a machine where I can test and debug the db4 weirdness. Several people reported this.
dba (with db2 and db3 tested) has problems before php 4.1.2 (with sessions) and after 4.3 (with locking).
And there are known c / w issues, at least on Windows.
< 4.1.2 crash on dba sessions at session_write_close().
(Tested with 4.1.1 and 4.1.2)
This is really a quirks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to upgrade from an existing Berkeley db2 Database to db4, as db2 is no longer supported within SuSE. I have compiled php to load dba/db4 database files and upgraded the old database file to db4.
No I get the followin error (1.3.10):
dba_open(/srv/www/htdocs/phpwiki-1.3.10/pages/wiki_session.db4,w): Driver initialization failed for handler: db4: Invalid argument
The wiki_session.db4 file is created by phpwiki during first startup.
It seems that it has something to do with the authentication, but I cant figure out what.
Is there a way to disable the DB usage for sessions completely?
Marcus
Sure,
USE_DB_SESSION = false
The error message you received says most likely, that db4 is not a supported dba handler.
Does it show up in phpinfo()?
In current CVS I disabled dba sessions completely. They simply don't work for several php versions.
Ok. It seems that db4 support generally does not work, unless phpinfo displays:
dba
DBA support enabled
Supported handlers cdb cdb_make db4 inifile flatfile
Ive compiled php4 --enable-dba --with-db4 --with-apxs2=/usr/sbin/apxs2
.. as I use apache2.
But it still does not work.
Any idea?
Marcus
Looks like newer db versions need open flag 'c' instead of 'w', older version don't work with 'c'.
In current dba code I try both, but it's still not clear to me.
In previous phpwiki-talk messages I explained it better, but I have no access to it currently.
Search the archive, or look at the descriptions in the code.
I changed the open flag to "c" and got the following error now:
dba_open(/srv/www/htdocs/phpwiki-1.3.10/pages/wiki_pagedb.db4,c):
All I need is the data from an old wiki db (db2) which crashed. If someone got an phpwiki with working db2 support and is willed to help me, it would be nice.
An export to HTML would fit my requirements, so I can set up a Wiki with SQL support later.
The real problem is that I don't have a machine where I can test and debug the db4 weirdness. Several people reported this.
dba (with db2 and db3 tested) has problems before php 4.1.2 (with sessions) and after 4.3 (with locking).
And there are known c / w issues, at least on Windows.
< 4.1.2 crash on dba sessions at session_write_close().
(Tested with 4.1.1 and 4.1.2)
This is really a quirks.
Can you find a machine with db2, get an old phpwiki, and set it up again?
Dan