How to fix that ? I'm under Linux with Mandrake 9.2
As you can see :
Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6.3.92mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2 Server at 127.0.0.1 Port 80
My apache server is correctly configured.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-04-01
For lib/config.php:404: Notice[1024]: The admin password cannot be empty. Please update your /index.php
You must set the following in index.php with your appropriate admin name and password:
if (!defined('ADMIN_USER')) define('ADMIN_USER', "wikiadmin");
if (!defined('ADMIN_PASSWD')) define('ADMIN_PASSWD', "wikiadmin");
It also looks as though your DBParams['dbtype'] is not set. This is set in index.ph (approximatley line 261) and is fairly well documented to determine which type you want to setup.
hope this helps some.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
// For SQL based backends, specify the database as a DSN
// The most general form of a DSN looks like:
//
// phptype(dbsyntax)://username:password@protocol+hostspec/database
//
// For a MySQL database, the following should work:
//
// mysql://user:password@host/databasename
//
// To connect over a unix socket, use something like
//
// mysql://user:password@unix(/path/to/socket)/databasename
//
//'dsn' => 'mysql://guest@unix(/var/lib/mysql/mysql.sock)/test',
//'dsn' => 'mysql://guest@localhost/test',
//'dsn' => 'pgsql://localhost/test',
// experimental
'db_session_table' => 'session',
// Used by all DB types:
// 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.
*/
//'prefix' => 'phpwiki_',
// Used by either 'dba' or 'file' and must be writable by the web
// server If you leave this as '/tmp' you will probably lose all
// your files eventually
'directory' => "/tmp",
// choose the type of DB database file to use; most GNU systems have gdbm
'dba_handler' => 'gdbm', // Either of 'gdbm' or 'db2' work great for me.
//'dba_handler' => 'db2',
//'dba_handler' => 'db3', // Works fine on Windows, but not on every linux.
//'dba_handler' => 'dbm', // On sf.net redhat there's dbm and gdbm.
// dbm suffers from limits on size of data items?
'timeout' => 20,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you will need to provide username, password,host, port and database name as is apprpriate for your db.
if you are not using a database backend (ie flat files) than you will need to set :
'dbtype' => 'file',
change the location of
'directory' => "/tmp",
to a more appropriate loacation within the wiki directory. You will most likely lose your files when the admin decides to cleanup the disk space if you don't.
Hope this helps. I have not setup for any other type of backend storage. So hopfully someone else can help with other setup issues.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've this error when I try to open the "index.php" file from wiki :
lib/pear/DB.php:264: Warning[2]: connect(lib/pear/DB/.php): failed to open stream: No such file or directory
lib/pear/DB.php:264: Warning[2]: connect(): Failed opening 'lib/pear/DB/.php' for inclusion (include_path='.:/usr/lib/php/:/usr/share/pear/')
lib/WikiDB/backend/PearDB.php:32: 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 `')
*
lib/config.php:404: Notice[1024]: The admin password cannot be empty. Please update your /index.php
lib/WikiDB/SQL.php:13: Notice[8]: Undefined index: dsn
lib/WikiDB/backend/PearDB.php:24: Notice[8]: Undefined index: dsn
How to fix that ? I'm under Linux with Mandrake 9.2
As you can see :
Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6.3.92mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2 Server at 127.0.0.1 Port 80
My apache server is correctly configured.
Thanks
For lib/config.php:404: Notice[1024]: The admin password cannot be empty. Please update your /index.php
You must set the following in index.php with your appropriate admin name and password:
if (!defined('ADMIN_USER')) define('ADMIN_USER', "wikiadmin");
if (!defined('ADMIN_PASSWD')) define('ADMIN_PASSWD', "wikiadmin");
It also looks as though your DBParams['dbtype'] is not set. This is set in index.ph (approximatley line 261) and is fairly well documented to determine which type you want to setup.
hope this helps some.
It's done, my DBParams is set :
//'dbtype' => 'ADODB',
'dbtype' => 'SQL',
//'dbtype' => 'dba',
//'dbtype' => 'file',
And now, hot to set this :
// For SQL based backends, specify the database as a DSN
// The most general form of a DSN looks like:
//
// phptype(dbsyntax)://username:password@protocol+hostspec/database
//
// For a MySQL database, the following should work:
//
// mysql://user:password@host/databasename
//
// To connect over a unix socket, use something like
//
// mysql://user:password@unix(/path/to/socket)/databasename
//
//'dsn' => 'mysql://guest@unix(/var/lib/mysql/mysql.sock)/test',
//'dsn' => 'mysql://guest@localhost/test',
//'dsn' => 'pgsql://localhost/test',
// experimental
'db_session_table' => 'session',
// Used by all DB types:
// 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.
*/
//'prefix' => 'phpwiki_',
// Used by either 'dba' or 'file' and must be writable by the web
// server If you leave this as '/tmp' you will probably lose all
// your files eventually
'directory' => "/tmp",
// choose the type of DB database file to use; most GNU systems have gdbm
'dba_handler' => 'gdbm', // Either of 'gdbm' or 'db2' work great for me.
//'dba_handler' => 'db2',
//'dba_handler' => 'db3', // Works fine on Windows, but not on every linux.
//'dba_handler' => 'dbm', // On sf.net redhat there's dbm and gdbm.
// dbm suffers from limits on size of data items?
'timeout' => 20,
dbtype=SQL is incompatible with gdbm.
gdbm must be used with dbtype=dba
or define a SQL database dsn
If you are using a mySQL server set dns
'dns' => 'mysql://username:password@host:port/database_name'
you will need to provide username, password,host, port and database name as is apprpriate for your db.
if you are not using a database backend (ie flat files) than you will need to set :
'dbtype' => 'file',
change the location of
'directory' => "/tmp",
to a more appropriate loacation within the wiki directory. You will most likely lose your files when the admin decides to cleanup the disk space if you don't.
Hope this helps. I have not setup for any other type of backend storage. So hopfully someone else can help with other setup issues.