Qmail第11節:安装Horde-Webmail(下)

9) 开始安装Horde

参考网站: http://www.horde.org/webmail/
下載資源: http://www.horde.org/download/

mkdir /usr/local/src/qmail/horde;
cd /usr/local/src/qmail/horde/;

wget http://ftp.horde.org/pub/horde-webmail/horde-webmail-1.0.1.tar.gz;
tar zxvf horde-webmail-1.0.1.tar.gz;
mv horde-webmail-1.0.1 /var/www/html/horde; #目录horde必须在DocumentRoot下
cd /var/www/html/horde/;

先配置horde将要使用的mysql数据库:
-------------------------------------------------
mysql -u root -h localhost;
mysql> CREATE DATABASE horde;
mysql> GRANT ALL ON horde.* TO horde@localhostIDENTIFIED BY 'F5wMvP8Dzk3L4EnQ';
mysql> QUIT;
-------------------------------------------------
注意: 考慮安全因素,請不要使用過于簡單的密碼;

./scripts/setup.php; #进入互动配置界面,调整相关参数,操作界面如下:
-------------------------------------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
What is the root path on your web server for this installation?[/horde]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -

如上显示,默认目录就是/horde(无需修改),直接按[Enter]键,显示操作菜单如下:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
Configuration Menu
(0) Exit
(1) Configure databasesettings
(2) Create database ortables
(3) Configure administratorsettings

Type your choice: 1 #选择操作菜单(1),配置數據庫參數;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -

显示(1)子操作菜单如下:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
What database backend should we use? [false]
(false) [None]
(dbase) dBase
(ibase)Firebird/InterBase
(fbsql) Frontbase
(ifx) Informix
(msql) mSQL
(mssql) MS SQL Server
(mysql) MySQL
(mysqli) MySQL (mysqli)
(oci8) Oracle
(odbc) ODBC
(pgsql) PostgreSQL
(sqlite) SQLite
(sybase) Sybase

Type your choice: mysql #配置使用mysql数据库,输入"mysql"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -

配置连接数据库的连线性质:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
Request persistent connections? [0]
(1) Yes
(0) No

Type your choice: 1 #使用持续连接
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -

配置连接mysql数据库的用户名称(用前面刚建立的mysql用户horde):
Username to connect to the database as* [] horde #输入"horde"

配置连接mysql数据库的用户密码(用前面刚建立的mysql用户密码):
Password to connect with [] F5wMvP8Dzk3L4EnQ

配置连接数据库的连接方式(可使用socket方式):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
How should we connect to the database? [unix]
(unix) UNIX Sockets
(tcp) TCP/IP

Type your choice: unix #输入unix,将使用socket连接数据库
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -

指定socket文件的路径(用ps aux | grep mysql命令可发现mysql.sock的位置):
Location of UNIX socket []/var/lib/mysql/mysql.sock #输入sock的完整路径

指定数据库名称(用前面刚建立的mysql数据库horde):
Database name to use* [] horde #输入数据库名称horde

配置内部使用的字符集:
Internally used charset* [iso-8859-1] #无须输入,直接按[Enter],使用缺省配置

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
Configuration Menu
(0) Exit
(1) Configure databasesettings
(2) Create database ortables
(3) Configure administratorsettings

Type your choice: 3
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -

设置管理者用户名称(这里使用电邮地址作为用户名称):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
Specify a mail user who should have administrator permissions
(optional): postmaster@home.25u.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
Configuration Menu
(0) Exit
(1) Configure databasesettings
(2) Create database ortables
(3) Configure administratorsettings

Type your choice: 0
Thank you for using Horde Groupware Webmail Edition!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
--------------------------------------------------------------------------------

上述操作命令可能有误,如有需要,可以用mysqldump导入scripts/sql目录下的mysql脚本:
--------------------------------------------------------------------------------

vi/var/www/html/horde/scripts/sql/groupware.mysql.sql; #修改开头指定密码部分
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
REPLACE INTO user (host, user, password)
VALUES (
'localhost',
'horde',
PASSWORD('F5wMvP8Dzk3L4EnQ')
);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
Qmail第11節:安装Horde-Webmail(下)

如果相關記錄已經在前面的SQL命令中執行過了,也可以注釋如下語句:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
-- USE mysql;

-- REPLACE INTO user (host, user, password)
--VALUES(
-- 'localhost',
-- 'horde',
-- PASSWORD('F5wMvP8Dzk3L4EnQ')
-- );

-- REPLACE INTO db (host, db, user, select_priv, insert_priv,update_priv,
-- delete_priv,create_priv, drop_priv, index_priv)
--VALUES(
-- 'localhost',
-- 'horde',
-- 'horde',
-- 'Y', 'Y','Y', 'Y',
-- 'Y', 'Y','Y'
-- );

-- Make sure that priviliges are reloaded.
-- FLUSH PRIVILEGES;

-- CREATE DATABASE horde; #数据库已经存在,可以用--禁止此句,否则会失败
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -

mysql </var/www/html/horde/scripts/sql/groupware.mysql.sql;
--------------------------------------------------------------------------------

自动生成的conf.php可能不完全符合系统的配置,需要手工调整部分参数:
-----------------------------------------------------
vi /var/www/html/horde/config/conf.php;
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
$conf['mailer']['params']['sendmail_path'] ='/var/qmail/bin/sendmail';
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
请注意: 发送电邮需要指定上述参数;
-----------------------------------------------------

安装Gollem;
-----------------------------------------------------
参考网站: http://www.horde.org/gollem/
下载资源: http://www.horde.org/download/app/?app=gollem

cd /usr/local/src/qmail/horde/;
wget ftp://ftp.horde.org/pub/gollem/gollem-h3-1.0.3.tar.gz;
tar zxvf gollem-h3-1.0.3.tar.gz;
mv gollem-h3-1.0.3 /var/www/html/horde/gollem;

vi /var/www/html/horde/config/registry.php; #找到applications['gollem']节
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$this->applications['gollem'] = array(
'fileroot' =>dirname(__FILE__) . '/../gollem',
'webroot' =>$this->applications['horde']['webroot'] .'/gollem',
'name' =>_("File Manager"),
'status' =>'inactive',
'menu_parent'=> 'myaccount',
'provides' =>'files',
);

$this->applications['gollem-menu'] = array(
'status' =>'block',
'app' =>'gollem',
'blockname' =>'tree_menu',
'menu_parent'=> 'gollem',
);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
一般情况下, Horde中预设的注册信息无须调整;

设置配置文件,将Gollem中config目录下的.dist文件复制成.php文件:

cd /var/www/html/horde/gollem/config; #用如下script执行复制文件的命令
for foo in *.dist; do cp $foo `basename $foo .dist`; done


用管理者身份在web浏览器中登陆:
http://xxx.xxx.xxx.xxx/horde/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-> 选择[设定]菜单;
-> 选择档案总管(gollem);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

按[产生档案总管设定]按钮之后,会产生如下信息:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
<?php

// $Horde: gollem/config/conf.xml,v 1.5.2.2 2005/12/11 18:31:18slusarz Exp $
$conf['manager']['date_format'] = '%x';
$conf['backend']['backend_list'] = 'shown';
$conf['menu']['apps'] = array();
$conf['user']['alternate_login'] = false;
$conf['user']['redirect_on_logout'] = false;

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - -
将上述内容保存成conf.php配置文件: vi/var/www/html/horde/gollem/config/conf.php;

或者按照當前網頁的提示,將上述變更信息保存成PHP可執行文件horde_setup_upgrade.php(此文件會保存到臨時目錄/tmp/下),然后在服務器中手動執行horde_setup_upgrade.php,此程序會自動生成conf.php配置文件;
--------------------------------------------------------------------------------


测试网页:
http://your-server/horde/test.php
http://your-server/horde/imp/test.php

调整网站的安全权限:
--------------------------------------------------------------------------------
chown root.apache /var/www/html/horde/config/*;
chmod 0440 /var/www/html/horde/config/*;

chown root.apache /var/www/html/horde/gollem/config/*;
chmod 0440 /var/www/html/horde/gollem/config/*;
--------------------------------------------------------------------------------

请注意:Horde的访问目录必须直接放置在DocumentRoot之下,并且名为horde,例如上面的例子中是用/var/www/html/horde/目录.如果要放置别的位置,或者不用horde名称,就必须调整相关参数.

  

爱华网本文地址 » http://www.413yy.cn/a/25101011/61839.html

更多阅读

directx 11怎么安装 dx修复工具

directx 11怎么安装——简介DirectX(Direct eXtension,简称DX)是由微软公司创建的多媒体编程接口。由C++编程语言实现,遵循COM。最新版本为DirectX 11,适合运行在Windows 7操作系统之上。directx 11怎么安装——工具/原料DirectX 11dir

hardest2第11关到第18关游戏攻略图文教程 hardest puzzle 攻略

hardest2第11关到第18关游戏攻略(图文教程)——简介接着之前发的,我接下来更新第11到第18关的攻略。希望大家可以受用。这些关均是我自己打的,有什么疑问留言给我。hardest2第11关到第18关游戏攻略(图文教程)——方法/步骤hardest2第11关

转载 《缅甸荡寇志》第三節﹕掩護轉進 用婴儿作掩护运毒

原文地址:《缅甸荡寇志》第三節﹕掩護轉進作者: 浣繗鍙《缅甸荡寇志》于一九四六年三月一日由上海时代图书公司出版,作者孙克刚,系孙立人将军部属,该书为作者的亲历见闻,可谓研究远征军历史的原始材料。本文来自网络,没有进行校对,可能存在输

声明:《Qmail第11節:安装Horde-Webmail(下)》为网友如果星星不发光分享!如侵犯到您的合法权益请联系我们删除