Menu

Session Db

Help
Anonymous
2004-05-22
2012-10-11
  • Anonymous

    Anonymous - 2004-05-22

    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

     
    • Reini Urban

      Reini Urban - 2004-05-22

      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.

       
    • Anonymous

      Anonymous - 2004-05-23

      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

       
    • Reini Urban

      Reini Urban - 2004-05-23

      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.

       
    • Anonymous

      Anonymous - 2004-05-26

      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.

       
      • Reini Urban

        Reini Urban - 2004-05-27

        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.

         
    • Dan F

      Dan F - 2004-05-26

      Can you find a machine with db2, get an old phpwiki, and set it up again?

      Dan

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.