advertisement

Article:
  Installing a Wiki on Your iBook
Subject:   got all the way through and made the changes to the index.php
Date:   2003-06-18 19:33:49
From:   anonymous2
and I'm still getting this message when I go to localhost/phpwiki/index.php


Fatal error: Call to undefined function: dba_open() in /Library/Apache2/htdocs/phpwiki/lib/DbaDatabase.php on line 32


I know the database is there, I've checked in MySQL and I get exactly what you show in the article. But I'm still getting that message.


Any thoughts? I'm using Apache2, PHP4 and MySQL4


thanks,


david parmet

Full Threads Oldest First

Showing messages 1 through 6 of 6.

  • got all the way through and made the changes to the index.php
    2003-07-24 15:05:05  anonymous2 [Reply | View]

    i had the same problem here, just go in index.php and change the dbtype to SQL
  • It just got even more interesting
    2003-06-18 19:43:58  dparmet1 [Reply | View]

    I just tried opening index.php via Safari once again and this time I got..


    lib/WikiDB/backend/PearDB.php:32: Fatal[256]: Can't connect to database: wikidb_backend_mysql: fatal database error

    DB Error: connect failed


    ( [nativecode=Access denied for user: 'wiki@localhost' (Using password: YES)] ** mysql://wiki:XXXXXXXX@localhost/wiki)



    lib/config.php:276: Notice[8]: Undefined variable: SCRIPT_NAME


    Is this a MySQL problem?

    baffled...

    david parmet
    • It just got even more interesting
      2004-01-17 15:14:10  anonymous2 [Reply | View]

      I was getting this error too:

      ( [nativecode=Access denied for user: 'wiki@localhost' (Using password: YES)] ** mysql://wiki:XXXXXXXX@localhost/wiki)

      It's just that we missed something. Like in the tutorial, make sure the following line is uncommented, and make sure the username and password can access the database (the DB name in this case is 'phpwiki')

      'dsn' => 'mysql://username:password@localhost/phpwiki'

      I hope this helps someone, as I was scratching my head for much too long on this simple mistake ;)
    • It just got even more interesting
      2003-06-19 04:38:02  dparmet1 [Reply | View]

      gotta give me credit for that...

      anyway... I deleted everything and started from scratch. And now when I open phpwiki/index.php I get this messge...

      Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /Library/Apache2/htdocs/phpwiki/index.php on line 190


      There's nothing on line 190 that would indicate I'm missing a ')"....

      any thoughts? thanks

      david parmet
      • It just got even more interesting
        2003-06-22 13:46:10  anonymous2 [Reply | View]

        ok, a few things.

        1. did you initialize and start the MySQL database? i'm not an expert there, but the Preferences applet provided in the distribution helped.

        2. For some reason, configurator.php did not work on my machine - that is, every time i opened it, i saw the default values, despite the fact that i hit the save button on the previous edit. Editing index.php manually worked fine.

        3. I should've started with this, actually: you will need to edit the 'dbtype' variable in the index.php - you're not using dba, you're using sql. it's detailed pretty well in the article, although i wish the author gave a couple of references to the materials on the topic. (but then again... use google, bart!)

        4. it looks like you didn't place phpwiki under ~/Sites - did you setup the folders then? look up on oreillymac.com for articles on that.

        My Wiki works, per article instructions (although I did have problems with starting MySQL from the command line - I didn't know how to initialize the database, so I had to go through the PreferencePane). I can send you my index.php if you want - just contact me at [ilyaa1 at hotmail dotdot com]. Spam protection, you know :)

        Ilya Ayzenshtok.

      • It just got even more interesting
        2003-06-22 13:45:50  ilyaa1 [Reply | View]

        ok, a few things.

        1. did you initialize and start the MySQL database? i'm not an expert there, but the Preferences applet provided in the distribution helped.

        2. For some reason, configurator.php did not work on my machine - that is, every time i opened it, i saw the default values, despite the fact that i hit the save button on the previous edit. Editing index.php manually worked fine.

        3. I should've started with this, actually: you will need to edit the 'dbtype' variable in the index.php - you're not using dba, you're using sql. it's detailed pretty well in the article, although i wish the author gave a couple of references to the materials on the topic. (but then again... use google, bart!)

        4. it looks like you didn't place phpwiki under ~/Sites - did you setup the folders then? look up on oreillymac.com for articles on that.

        My Wiki works, per article instructions (although I did have problems with starting MySQL from the command line - I didn't know how to initialize the database, so I had to go through the PreferencePane). I can send you my index.php if you want - just contact me at [ilyaa1 at hotmail dotdot com]. Spam protection, you know :)

        Ilya Ayzenshtok.

-->