下面最新的igenus和admin管理
http://www.igenus.org
igenus_2[1].0.1_20040713_release.tgz
igenus_admin_0[1].1.tgz
一、首先安装:igenus_admin_0[1].1.tgz
[root@localhost qmail]# tar zxvf igenus_admin_0[1].1.tgz -C /var/www/mail
[root@localhost qmail]# cd /var/www/mail/admin
[root@localhost qmail]# cd includes
[root@localhost qmail]# vi config_inc.php
修改如下内容对应的内容:
$CFG_VPOPMAIL_HOST = "localhost";
$CFG_VPOPMAIL_USER = "vpopmail";
$CFG_VPOPMAIL_PASS = "123456";
$CFG_VPOPMAIL_DB = "vpopmail";
$CFG_VPOPMAIL_TABLE = "vpopmail";
$CFG_ADMIN_TABLE = "admin";
$CFG_LAGESITE = true;
$CFG_NUMOFPAGE = 20;
$CFG_VPOPMAIL_PATH = "/home/vpopmail";
然后在mysql里的vpopmail表里加入现在的sql
CREATE TABLE `admin` (
`id` int(10) unsigned NOT NULL auto_increment,
`site_id` int(10) unsigned NOT NULL default '0',
`domain` varchar(128) NOT NULL default '',
`quota` smallint(5) unsigned NOT NULL default '0',
`total` smallint(5) unsigned NOT NULL default '0',
`createtime` timestamp(14) NOT NULL,
`login` char(1) NOT NULL default '',
`cur_total` smallint(5) NOT NULL default '0',
`cur_quota` smallint(5) NOT NULL default '0',
`gid` varchar(11) NOT NULL default '',
`expiration_time` timestamp(14) NOT NULL,
`flag` int(10) unsigned NOT NULL default '0',
`maxmsg` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`)
) TYPE=MyISAM PACK_KEYS=1 ;
并在vpopmail这个表里加入一个
`
createtime` timestamp(14) NOT NULL,
体整的数据如下加入的就是红色的那一条:
CREATE TABLE `vpopmail` (
`pw_id` int(5) unsigned NOT NULL auto_increment,
`pw_name` varchar(32) NOT NULL default '',
`pw_domain` varchar(64) NOT NULL default '',
`pw_passwd` varchar(40) NOT NULL default '',
`pw_uid` int(11) default NULL,
`pw_gid` int(11) default NULL,
`pw_gecos` varchar(64) default NULL,
`pw_dir` varchar(160) default NULL,
`pw_shell` varchar(20) default NULL,
`pw_clear_passwd` varchar(16) default NULL,
`
createtime` timestamp(14) NOT NULL,
PRIMARY KEY (`pw_id`),
KEY `pw_name` (`pw_name`,`pw_domain`)
) TYPE=MyISAM AUTO_INCREMENT=11 ;
admin安装完成
http://IP/admin/sys/ //来管理域的,默认的用户名和密码Admin : Admin
http://IP/admin/ //来管理域的下面的用户
二、安装igenus_2[1].0.1_20040713_release.tgz
[root@localhost qmail]# tar zxvf igenus_admin_0[1].1.tgz -C /var/www/mail
[root@localhost qmail]# cd /var/www/mail/igenus
[root@localhost igenus]# mkdir temp
[root@localhost igenus]# chmod -R 0755 temp
[root@localhost igenus]# chown -R vpopmail:vchkpw temp
修改httpd.conf
[root@localhost igenus]# vi /etc/httpd/conf/httpd.conf
User Apache
Group Apache
修改为:
User vpopmail
Group vchkpw
[root@localhost igenus]# vi /var/www/html/igenus/config/config_inc.php
$CFG_BASEPATH = "/var/www/mail/igenus";
$CFG_MYSQL_HOST = 'localhost';
$CFG_MYSQL_USER = 'vpopmail';
$CFG_MYSQL_PASS = '******'; 改成你的密码
$CFG_MYSQL_DB = 'vpopmail';
$CFG_TEMP = $CFG_BASEPATh."/temp";
[root@localhost igenus]# cd docs
查看下面的iGENUS.sql文件
在数据库里加入所有的sql语句就可以了
http://IP/mail/igenus/ 就可以进入你的webmail了
本文地址:http://com.8s8s.com/it/it24651.htm