[imp] help please
spike spoke spoken
spike-t@eudoramail.com
Fri, 29 Jun 2001 15:29:02 +0200
Thank you for the help, but i'm still having the same problems
Here is my config files:
httpd.conf:
#added for horde
<Directory /var/www/html/horde>
# Options Indexes FollowsSymLinks
AllowOverride None
order allow,deny
allow from all
<IfModule mod_php4.c>
php_value include_path '/usr/share/php/phplib:.'
php_value auto_prepend_file /usr/share/php/phplib/prepend.php3
php_flag registe_globals On
php_flag magic_quotes_gpc Off
php_flag track_vars On
</IfModule>
</Directory>
my local.inc
<?php
/*
* $Horde: horde/phplib/local.inc,v 1.3.2.7 2000/09/21 13:48:43 bjn Exp $
*
* This is the Horde local.inc file for PHPLIB. You can either include
* this file in your local.inc, replace your local.inc with it, or
* copy the necessary contents over. There's no need for these to be
* the only classes in local.inc.
*
* Please read through this file's comments to make sure the settings
* reflect your desired configuration.
*/
/*
* Session storage definition
*
* This section defines what medium to use for session storage. The current
* choices are:
* - SQL database (MySQL, by default)
* - Shared memory
* - LDAP
* - DBM database
*
* Note that only one storage type can be used at one time, so uncommenting
* multiple types below will result in errors.
*/
/* To use an SQL database, uncomment and edit the following: */
class HordeDB extends DB_Sql {
var $Host = 'localhost';
var $Database = 'horde';
var $User = 'mgr';
var $Password = 'impmgr';
var $Port = '';
function halt($msg) {
// Printing here causes race condition trouble, so don't.
//printf("<b>Database error (HordeDB):</b> %s<br>\n", $msg);
}
}
class HordeCT extends CT_Sql {
var $database_class = 'HordeDB'; // Which database class to use...
var $database_table = 'active_sessions'; // and find our data in this table.
}
/* To use shared memory, uncomment and edit the following: */
/* NOTE: If you do this, you must edit prepend.php3 to include ct_shm.inc
instead of ct_sql.inc */
class HordeCT extends CT_Shm {
var $max_sessions = 500; // number of maximum sessions
var $shm_key = 0x123754; // unique shm identifier
var $shm_size = 64000; // size of segment
}
/* To use LDAP, uncomment and edit the following: */
/* NOTE: If you do this, you must edit prepend.php3 to include ct_ldap.inc
instead of ct_sql.inc */
class HordeCT extends CT_Ldap {
var $ldap_host = "localhost";
var $ldap_port = 389;
var $basedn = "dc=your-domain, dc=com";
var $rootdn = "cn=root, dc=your-domain, dc=com";
var $rootpw = "secret";
var $objclass = "phplibdata";
}
/* To use a DBM database, uncomment and edit the following: */
/* NOTE: If you do this, you must edit prepend.php3 to include ct_dbm.inc
instead of ct_sql.inc */
class HordeCT extends CT_DBM {
var $dbm_file = '/users/chuck/horde/lib/session.dbm';
}
/*
* The following classes define our session, authentication, and user
* properties. You probably don't need to make any changes to them.
*/
class HordeSession extends Session { var $classname = 'HordeSession';
var $cookiename = ''; // defaults to classname
var $magic = 'chuckmIMP'; // ID seed
var $mode = 'cookie'; // We propagate session IDs with cookies
var $fallback_mode = 'get';
var $lifetime = 0; // 0 = do session cookies, else minutes
var $that_class = 'HordeCT'; // name of data storage container
var $gc_probability = 5;
var $allowcache = 'no'; // don't allow any caching of pages
}
class HordeSessionCached extends HordeSession {
var $allowcache = 'private'; // allow private caching of pages
}
?>
and my prepend.php3
<?php
/*
* Session Management for PHP3
*
* Copyright (c) 1998,1999 SH Online Dienst GmbH
* Boris Erdmann, Kristian Koehntopp
*
* $Id: prepend.php3,v 1.1.2.4 2000/09/08 20:55:27 bjn Exp $
*
*/
if (empty($_PHPLIB) || !is_array($_PHPLIB)) {
# Aren't we nice? We are prepending this everywhere
# we require or include something so you can fake
# include_path when hosted at provider that sucks.
$_PHPLIB["libdir"] = "";
}
require($_PHPLIB["libdir"] . "db_mysql.inc"); /* Change this to match your database. */
require($_PHPLIB["libdir"] . "ct_sql.inc"); /* Change this to match your data storage container */
require($_PHPLIB["libdir"] . "session.inc"); /* Required for everything below. */
/* Additional require statements go below this line */
/* Additional require statements go before this line */
require($_PHPLIB["libdir"] . "local.inc"); /* Required, contains your local configuration. */
require($_PHPLIB["libdir"] . "page.inc"); /* Required, contains the page management functions. */
?>
Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com