From: Reini U. <ru...@x-...> - 2004-06-07 20:12:30
|
peter polz schrieb: > Next problem: > lib/WikiDB/backend/PearDB.php:34: Fatal[256]: Can't connect to database: > wikidb_backend_peardb: fatal database error > € DB Error: not found > € (Unable to include the DB/.php file for `') > € Please read and try to understand the error messages. You still haven't defined a database. > lib/IniConfig.php:108: Notice[1024]: missing config setting for DEBUG you haven't defined this either. > lib/IniConfig.php:218: Notice[8]: Undefined index: dsn ditto. > lib/main.php:869: Notice[8]: Use of undefined constant DEBUG - assumed > 'DEBUG' > > lib/WikiDB/sql.php:14: Notice[8]: Undefined index: dsn > > lib/WikiDB/sql.php:16: Notice[8]: Undefined index: dsn > > lib/WikiDB/backend/PearDB.php:24: Notice[8]: Undefined index: dsn > > /Library/Tenon/PHP/lib/php/DB.php:258: Warning[2]: connect(DB/.php): failed > to open stream: No such file or directory > > /Library/Tenon/PHP/lib/php/DB.php:258: Warning[2]: connect(): Failed opening > 'DB/.php' for inclusion (include_path='.:/Library/Tenon/PHP/lib/php') > > > lib/WikiDB/backend/PearDB.php:34: Fatal[256]: Can't connect to database: > wikidb_backend_peardb: fatal database error > € DB Error: not found > € (Unable to inclu > > What is now wrong? > Regards > > Peter > > >>peter polz schrieb: >> >>>I have mysql installed, but something wrong, can anyone help? >>> >>>Fatal error: Cannot instantiate non-existent class: wikidb_dbt in >> >> ^^^ >> >>>/Library/Tenon/WebServer/WebSites/www.apfel.at/phpwiki/lib/WikiDB.php on >>>line 100 >>> >>>What es the problem here? >>> >>>;====================================================================== >>>; Part Two: Database Selection >>>;====================================================================== >>>; Select the database type: >>>; >>>; SQL: access one of several SQL databases using the PEAR DB >>>library. >>>; ADODB: uses the ADODB library for data access. >>>; dba: use one of the standard UNIX dbm libraries. >>>; file: use a flat file database. >>>; cvs: use a CVS server to store everything. >>>DATABASE_TYPE = dbt >> >> ^^^ >> >>dbt is not a supported database type. > > > -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: peter p. <pe...@pe...> - 2004-06-09 04:28:18
|
Hello! >> You still haven't defined a database. Where can i define the database in the config.ini Regards Peter >> peter polz schrieb: >>> Next problem: >>> lib/WikiDB/backend/PearDB.php:34: Fatal[256]: Can't connect to database= : >>> wikidb_backend_peardb: fatal database error >>> =E2=82=AC DB Error: not found >>> =E2=82=AC (Unable to include the DB/.php file for `') >>> =E2=82=AC =20 >>=20 >> Please read and try to understand the error messages. >> You still haven't defined a database. ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Part Two: Database Selection ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ; Select the database type: ; ; SQL: access one of several SQL databases using the PEAR DB library. ; ADODB: uses the ADODB library for data access. ; dba: use one of the standard UNIX dbm libraries. ; file: use a flat file database. ; cvs: use a CVS server to store everything. DATABASE_TYPE =3D dbt =20 ; prefix for filenames or table names ; ; Currently you MUST EDIT THE SQL file too (in the schemas/ ; directory because we aren't doing on the fly sql generation ; during the installation. ; Note: This prefix is NOT prepended to the default DBAUTH_ ; tables user, pref and member! ;DATABASE_PREFIX =3D phpwiki_ ; For SQL based backends, specify the database as a DSN (Data Source Name), ; a kind of URL for databases. ; ; The most general form of a DSN looks like: ; ; dbtype(dbsyntax)://username:password@protocol+hostspec/database ; ; For a MySQL database, the following should work: ; mysql://usert:pass@host/databasename ; ; To connect over a unix socket, use something like ; ; mysql://user:password@unix(/path/to/socket)/databasename ; ; Valid values for dbtype are mysql, pgsql, or sqlite. ; ;DATABASE_DSN =3D "mysql://guest@unix(/var/lib/mysql/mysql.sock)/test" ; A table to store session information. Only needed by SQL backends. ; ; A word of warning - any prefix defined above will be prepended to whateve= r ; is given here. DATABASE_SESSION_TABLE =3D session ; For the file and dba backends, this specifies where the data files will b= e ; located. Ensure that the user that the webserver runs as has write acces= s ; to this directory. ; ; WARNING: leaving this as the default of '/tmp' will almost guarantee that ; you'll lose your wiki data at some stage. DATABASE_DIRECTORY =3D /tmp ; For the dba backend, this defines which DBA variant you wish to use. ; gdbm - commonly available ; db2 - Berkeley DB v2; not supported by modern versions of PHP ; db3 - Berkeley DB v3; as per db2. The best on Windows ; db4 - Berkeley DB v4; current version, however PHP has some issues ; with it's db4 support. ; dbm - Older dba handler; suffers from limits on the size of data ; items DATABASE_DBA_HANDLER =3D gdbm ; How long will the system wait for a database operation to complete? ; Specified in seconds. DATABASE_TIMEOUT =3D 20 ; The login code now uses PHP's session support. Usually, the default ; configuration of PHP is to store the session state information in ; /tmp. That probably will work fine, but fails e.g. on clustered ; servers where each server has their own distinct /tmp (this is the ; case on SourceForge's project web server.) You can specify an ; alternate directory in which to store state information like so ; (whatever user your httpd runs as must have read/write permission ; in this directory): ;SESSION_SAVE_PATH =3D some_other_directory |
From: Matthew P. <mp...@he...> - 2004-06-09 04:42:26
|
On Wed, Jun 09, 2004 at 06:28:05AM +0200, peter polz wrote: > Hello! > >> You still haven't defined a database. > > Where can i define the database in the config.ini DATABASE_DSN allows you to specify username, password, host, database parameters for a MySQL database. You'll want to fix your DATABASE_TYPE, though. If you want to stick with the dba stuff, though, you'll need to specify the directory to store your DB file in the DATABASE_DIRECTORY. - Matt |
From: peter p. <pe...@pe...> - 2004-06-09 09:09:07
|
Hello! I have taken sql as database but something wrong, http://www.apfel.at/phpwiki/ What is here do to? Regards Peter > On Wed, Jun 09, 2004 at 06:28:05AM +0200, peter polz wrote: >> Hello! >>>> You still haven't defined a database. >> >> Where can i define the database in the config.ini > > DATABASE_DSN allows you to specify username, password, host, database > parameters for a MySQL database. You'll want to fix your DATABASE_TYPE, > though. If you want to stick with the dba stuff, though, you'll need to > specify the directory to store your DB file in the DATABASE_DIRECTORY. > > - Matt > > > ------------------------------------------------------- > This SF.Net email is sponsored by: GNOME Foundation > Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. > GNOME Users and Developers European Conference, 28-30th June in Norway > http://2004/guadec.org > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk |
From: peter p. <pe...@pe...> - 2004-06-09 09:44:08
|
Hello! Now it is running, i found ist in: http://www.macdevcenter.com/pub/a/mac/2003/06/05/wiki.html Regards Peter > Hello! > > I have taken sql as database but something wrong, > http://www.apfel.at/phpwiki/ > > What is here do to? > Regards > Peter > >> On Wed, Jun 09, 2004 at 06:28:05AM +0200, peter polz wrote: >>> Hello! >>>>> You still haven't defined a database. >>> >>> Where can i define the database in the config.ini >> >> DATABASE_DSN allows you to specify username, password, host, database >> parameters for a MySQL database. You'll want to fix your DATABASE_TYPE, >> though. If you want to stick with the dba stuff, though, you'll need to >> specify the directory to store your DB file in the DATABASE_DIRECTORY. >> >> - Matt >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: GNOME Foundation >> Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. >> GNOME Users and Developers European Conference, 28-30th June in Norway >> http://2004/guadec.org >> _______________________________________________ >> Phpwiki-talk mailing list >> Php...@li... >> https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: GNOME Foundation > Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. > GNOME Users and Developers European Conference, 28-30th June in Norway > http://2004/guadec.org > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk |