LiveUser install
| From: | Lassiege Hugo | Date: | Thu, 22 Sep 2005 14:57:44 +0000 |
| Subject: | LiveUser install | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21076@lists.php.net to get a copy of this message | ||
Hi,
I'm currently trying to use LiveUser. Actually I'm currently more trying to know how to
use it ^^
There is a install.php in LiveUser/sql but I don't undersand how it works. I uncomment the part
below but I get a blank page when I go with a browser on this page.
Is there a documentation about the installation of liveuser.
If I really didn't find anything I can create the schema from http://www.backendmedia.com/LiveUser/liveuser_db_schema.png
but It is more fastidious.
// customize DSN as needed
$dsn = 'mysql://root:@localhost/liveuser_test_installer';
// customize config array as needed
$conf = array(
'authContainers' => array(
array(
'type' => 'MDB2',
'loginTimeout' => 0,
'expireTime' => 3600,
'idleTime' => 1800,
'allowDuplicateHandles' => 0,
'storage' => array(
'dsn' => $dsn,
'alias' => array(
'auth_user_id' => 'authUserId',
'lastlogin' => 'lastLogin',
'is_active' => 'isActive',
'owner_user_id' => 'owner_user_id',
'owner_group_id' => 'owner_group_id',
),
'fields' => array(
'lastlogin' => 'timestamp',
'is_active' => 'boolean',
'owner_user_id' => 'integer',
'owner_group_id' => 'integer',
),
'tables' => array(
'users' => array(
'fields' => array(
'lastlogin' => false,
'is_active' => false,
'owner_user_id' => false,
'owner_group_id' => false,
),
),
),
),
),
),
'permContainer' => array(
'type' => 'Complex',
'storage' => array(
'MDB2' => array('dsn' => $dsn,
'prefix' => 'liveuser_')
)
)
);
// customize MDB2_SCHEMA configuration options as needed
$options = array(
'debug' => true,
'log_line_break' => '<br>',
'portability' => (MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL),
);