Menu

moving dba files into perm directory

Help
Anonymous
2002-03-13
2012-10-11
  • Anonymous

    Anonymous - 2002-03-13

    people are doubtless familiar with the following error:

    Warning! DBA files are in the /tmp directory. Please read the INSTALL file and move the DB file to a permanent location or risk losing all the pages!

    i'm not sure which tmp file i should be moving.  none of them seem to have any db related files.  help anyone?  there seem to be temp folders all over my web host.

    thnx in advance --

     
    • Abc Def

      Abc Def - 2002-03-13

      With my install (single wiki) it's only single file called wiki_pagedb.db2. Try moving (ok, copying first ;-) that file and you should be fine. I'm using 1.3.3.

      HTH,
      Max

       
      • Anonymous

        Anonymous - 2002-03-21

        The temp directory off my file root is empty, so are all the other tmp dirs, as far as I can tell.  I'm a bit perplexed and embarrassed, because I have no idea how I got my initial installation to work.  I'm not using any database at all, because on my first quick read of the install files, I somehow thought the flat files instructions meant it didn't need a db.  Anyway, apparently my site works, but I have no idea where it lives.  I just get that ominous error message: "Warning! DBA files are in the /tmp directory. Please read the INSTALL file and move the DB file to a permanent location or risk losing all the pages!"

        Any other comments on this bizarre error?  Thanks in advance.

         
        • Abc Def

          Abc Def - 2002-03-21

          I suppose Steve will suggest something more subtle ;-) but brute-force solution is to do a full-disk search looking for some text phrase you're using on your site. Then you'll know where they are :-)

          HTH,
          Max

           
        • Geoffrey T. Dairiki

          By default, the db file gets put in the /tmp
          directory.  (It sounds like you're running on
          a windows box --- I'm not familiar with that
          situation, so I can't tell you, for sure, which
          drive it will be on...)

          The name of the file should be something like
          '/tmp/wiki_pagedb.gdbm', though you should look
          for other similar names (e.g.
          '/tmp/wiki_pagedb.db2') as well.

          On windows, my best guess is that you'll find
          the database someplace like:
            C:\tmp\wiki_pagedb.db2
            D:\tmp\wiki_pagedb.db2
          etc...

          Let us know when you find it!

           
    • Steve Wainstead

      Steve Wainstead - 2002-03-13

      If you have access to your web host directly (i.e. you can log in to the server via ssh or telnet), you will find the db files in the /tmp directory on the server. This directory is off the root of the server, not anywhere in the directory where you installed PhpWiki. Depending on which installation of PhpWiki you use, the db file(s) will regardless have the word "wiki" in the filename somewhere.

      You may find you _can't_ move them because they are owned by the web daemon (IIS or Apache; you will get "permission denied" when you try to move them). If that's so you may need help from a system administrator.

      And when you do move them, they will have to go into a directory the web daemon can read/write to. There should be more on this in the INSTALL file. The web daemon needs permission to read/write the directory and the db files if they are owned by you.

      ~swain

       

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.