Menu

problem getting it running

Help
2003-08-28
2003-10-21
  • Glen Patras

    Glen Patras - 2003-08-28

    I get this message:

    Notice: Undefined variable: maindb in L:\apacheroot\masterindex\phpfriendly\admin\install\index.php on line 5
    ERROR: Please correctly define a default Database for phpFriendlyAdmin (this is the same Database where the administrative tables live). This database can be defined in "/admin/regdb.php".

    I am testing this on an apache server set up on my personal computer with latest php and mysql, I've tried the hostname given by mysql, my ip address and 'localhost' to no avail... what am I doing wrong at line 5?

     
    • Scott Allard

      Scott Allard - 2003-10-18

      I'm having an almost identical problem, only it's a virtual server, and the message reads:

      ERROR: Please correctly define a default Database for phpFriendlyAdmin (this is the same Database where the administrative tables live). This database can be defined in "/admin/regdb.php".

      Everything is set and defined as the instructions stated (only something isn't set *right*)

       
    • Mark Brady

      Mark Brady - 2003-10-21

      When defining your database to PFA did you define both $maindb and $registereddb[] objects?

      $maindb tells PFA where it's configuration tables are to be located, while $registereddb[0] is an object array that tells PFA where to find the tables you wish to manage.

       
    • Scott Allard

      Scott Allard - 2003-10-21

      O.k. after checking and re-checking everything but the obvious, I realized that the entire $maindb section was commented out!  Remove /* and */ in regdb.php, and the file actually works (why they were commented out in the first place is beyond me!)  Granted, it says on the line above it "MUST be uncommented", but I missed them.

       

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.