2. 增加Apache中 horde虚拟目录 /etc/httpd/conf/httpd.conf Alias /horde /var/www/html/mail/horde/ Alias /horde/ /var/www/html/mail/horde/
3. 下载及安装Horde # cd /tmp # wget -c --passive-ftp ftp://ftp.horde.org/pub/horde/tarballs/horde-2.1.tar.gz # tar xzf horde-2.1.tar.gz -C /var/www/html/mail # cd /var/www/html/mail # mv horde-2.1 horde
4. 下载及安装Pear # cd /usr/share # mv pear pear.4.1.2.redhat # cd /tmp # wget -c --passive-ftp ftp://ftp.horde.org/pub/horde/tarballs/pear-4.1.0.tar.gz # tar xzf pear-4.1.0.tar.gz -C /usr/share # cd /usr/share # mv pear-4.1.0 pear # chown root.root -R pear 每当重新更新 php rpms时必须重新执行一次
5. 设定mysql组态 确定mysql正常激活 # service mysqld restart 建立Horde数据库 # cd horde/scripts/db # vi mysql_create.sql # >>>重要<<< 请修改预设密码 # mysql < mysql_create.sql # 建table 测试联机数据库 # mysql -h localhost -D horde -u horde -p 输入'exit'离开数据库 6. 将Horde散布档复制为预设组态档 # cd horde/config # for foo in *.dist; do cp -v $foo `basename $foo .dist`; done
7. 修改horde数据库设定 /horde/config/horde.php // use IMAP to authenticate users$conf['auth']['driver'] = 'imap';$conf['auth']['params']['dsn'] = '{mail.example.com.tw/imap:143}INBOX';// use MySQL to store Horde Stuff$conf['prefs']['driver'] = 'sql';$conf['prefs']['params']['phptype'] = 'mysql';$conf['prefs']['params']['hostspec'] = 'localhost';$conf['prefs']['params']['username'] = 'horde';$conf['prefs']['params']['password'] = '******'; /* <- edit this line */$conf['prefs']['params']['database'] = 'horde';$conf['prefs']['params']['table'] = 'horde_prefs';// the sendmail, not SMTP, to send emails$conf['mailer']['type'] = 'sendmail'
8. 增加信赖使用者 /etc/mail/trusted-users apache
9. 设定horde预设语系 /horde/config/lang.php // look down for the list of aliases$nls['defaults']['language'] = 'zh_TW';$nls['defaults']['charset'] = 'BIG5';
22. 修改turba预设语系 /horde/turba/config/prefs.php // user language// set the same default language as Horde and IMP$_prefs['language'] = array( 'value' => 'zh_TW', 'locked' => false, 'shared' => true, 'type' => 'select', 'desc' => _("Select your preferred language:"));
23. 修改turba存取SQL密码 /horde/turba/config/sources.php // complete this part of the config with the data// of the database as in /horde/config/horde.php// Also config the title to a know name in your locale$cfgSources['localsql'] = array( 'title' => 'My Addressbook', 'type' => 'sql', 'params' => array( 'phptype' => 'mysql', 'hostspec' => 'localhost', 'username' => 'horde', 'password' => '******', /*Edit this line!!!*/ 'database' => 'horde', 'table' => 'turba_objects' ),
24. 加入truba资料至SQL服务器数据库中 # cd /horde/turba/scripts/drivers/ # mysql < turba.sql 若mysql的root有设密码,请以输入方式输入密码******增加资料 # mysql -u root -p****** < turba.sql