*Horde(IMP : Webメーラ) [#x4084c31]

RIGHT:更新日&lastmod();

hordeは、Horde.org が開発したアプリケーションプラットフォームのフレームワークでその中のWebメーラとしてimpがある。imp単独のインストールもできるようだが、DBの作成が等を含め、予定表などのグループウェアを利用できるため以下のファイルを利用し、horde+impをインストールする。

http://www.horde.org/から以下のファイルをダウンロード

horde-webmail-1.2.3.tar.gzをDownload

**事前準備 [#xcfbb312]

 # apt-get install courier-imap
 # apt-get install mysql
 # apt-get install mysql-client
 # apt-get install php5-apache2
 # apt-get install php5-mysql
 # apt-get install php5-imap
 # /etc/rc.d/init.d/courier-authlib start
 # /etc/rc.d/init.d/courier-imap start
 # cd /etc
 # cd php5/
 # cp php.ini php.ini.org

''php.ini''
 ;;default_charset = EUC-JP
 
 ;;mbstring.language = Japanese
 ;;mbstring.internal_encoding = EUC-JP
 ;;mbstring.http_input = auto
 ;;mbstring.http_output = pass
 ;;mbstring.encoding_translation = On

 # cp  /usr/share/mysql/my-huge.cnf /etc/my.cnf
 # cd /etc

''my.cnf''

 # The following options will be passed to all MySQL clients
 [client]
 default-character-set=utf8
 
 # The MySQL server
 [mysqld]
 default-character-set=utf8

を追加しないと電子メールオプションの個人情報のコンボボックスが2度目のloginで文字化けする。

 # /etc/rc.d/init.d/mysql start
 # /etc/rc.d/init.d/apache2 start
 # /usr/bin/mysqlshow
 # /usr/bin/mysqladmin  -u root password '*****'

''pear''

以下がひつようなようなのでインストール(もしかすると不要かも??)

 # pear install -o Log Mail Mail_Mime DB Date File
 WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
 WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
 Did not download optional dependencies: pear/MDB2, use --alldeps to download automatically
 Did not download dependencies: pear/Net_SMTP, use --alldeps or --onlyreqdeps to download automatically
 pear/Log can optionally use package "pear/MDB2" (version >= 2.0.0RC1)
 pear/Log can optionally use PHP extension "sqlite"
 pear/Mail can optionally use package "pear/Net_SMTP" (version >= 1.1.0)
 downloading Log-1.11.4.tgz ...
 Starting to download Log-1.11.4.tgz (44,275 bytes)
 ............done: 44,275 bytes
 downloading Mail-1.1.14.tgz ...
 Starting to download Mail-1.1.14.tgz (17,537 bytes)
 
 (略)
 
 install ok: channel://pear.php.net/Log-1.11.4
 install ok: channel://pear.php.net/Mail-1.1.14
 install ok: channel://pear.php.net/Mail_Mime-1.5.2
 install ok: channel://pear.php.net/DB-1.7.13
 install ok: channel://pear.php.net/Date-1.4.7
 install ok: channel://pear.php.net/File-1.3.0
 install ok: channel://pear.php.net/Mail_mimeDecode-1.5.0

 # pear -d preferred_state=beta install -a Services_Weather
 WARNING: channel "pear.php.net" has updated its protocols, use "channel-update  pear.php.net" to update
 WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
 WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
 
 (略) 
 
 install ok: channel://pear.php.net/Net_FTP-1.3.7
 install ok: channel://pear.php.net/Cache-1.5.5
 install ok: channel://pear.php.net/Net_URL-1.0.15
 install ok: channel://pear.php.net/Net_Socket-1.0.9
 install ok: channel://pear.php.net/Net_DIME-1.0.1
 install ok: channel://pear.php.net/XML_Util-1.2.1
 install ok: channel://pear.php.net/XML_Parser-1.3.2
 install ok: channel://pear.php.net/HTTP_Request-1.4.4
 install ok: channel://pear.php.net/XML_Serializer-0.20.0
 install ok: channel://pear.php.net/Services_Weather-1.4.4
 install ok: channel://pear.php.net/SOAP-0.12.0


**IMP(Webメーラ)のインストール [#h0e373ba]

 $ cd /usr/locla/src
 $ tar zxvf horde-webmail-1.2.3.tar.gz

 # cd /var/www/html
 # cp -a /usr/local/src/horde-webmail-1.2.3 .
 # mv horde-webmail-1.2.3 horde-webmail
 # cd horde/scripts/sql
 # cp create.mysql.sql create.mysql.sql.org

使用するDBとそのhost,user,passwordを指定する。ただし、まだパスワード以外は変更したことがない)

''create.mysql.sql''

 USE mysql;
 
 REPLACE INTO user (host, user, password)
     VALUES (
         'localhost',
         'horde',
 -- IMPORTANT: Change this password.
         PASSWORD('****') 
 );

 # mysql -u root -p < create.mysql.sql
 Enter password:

 # cd /var/www/html
 # chown -R apache.apache horde

 # cd /var/www/html/horde
 # ./scripts/setup.php
 
 hat is the web root path on your web server for this installation, i.e. the 
 path of the address you use to access Horde Groupware Webmail Edition in your
 browser? [/horde] <--Enter
 
 Horde Groupware Webmail Edition Configuration Menu
     (0) Exit
     (1) Configure database settings
     (2) Create database or tables
     (3) Configure administrator settings
     (4) Update from an older Horde Groupware Webmail Edition version
 
 Type your choice: 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
 Request persistent connections? [0]
     (1) Yes
     (0) No
 
 Type your choice:
 
 Username to connect to the database as* [] horde  <--horde
 
 Password to connect with [] *****
 How should we connect to the database? [unix]
     (unix) UNIX Sockets
     (tcp) TCP/IP
 
 Type your choice: tcp <--tcp
 
 Database server/host* [] localhost
 
 Port the DB is running on, if non-standard [3306] <--Enter
 
 Database name to use* [] horde  <--create.mysql.sqlのDB名
 
 Internally used charset* [utf-8] <--Enter
 Use SSL to connect to the server? [0] <--Enter
     (1) Yes
     (0) No
 
 Type your choice: 
 
 Certification Authority to use for SSL connections [] <--Enter
 Split reads to a different server? [false]
     (false) Disabled
     (true) Enabled
 
 Type your choice: false <--false
 
 Writing main configuration file
 Done configuring database settings.
 
 
 Horde Groupware Webmail Edition Configuration Menu
     (0) Exit
     (1) Configure database settings
     (2) Create database or tables
     (3) Configure administrator settings
     (4) Update from an older Horde Groupware Webmail Edition version
 
 Type your choice: 0
 
 Thank you for using Horde Groupware Webmail Edition!

&color(red){今回は(1)さえ行えばよさそう};


***imp用のテーブルの追加 [#ze7de429]

 # cd /var/www/html/horde/imp/scripts/sql
 # mysql -u root -p horde < imp.sql

''DBの内容確認

 mysql> show tables;
 +---------------------------+
 | Tables_in_horde           |
 +---------------------------+
 | horde_alarms              |
 | horde_cache               |
 | horde_datatree            |
 | horde_datatree_attributes |
 | horde_groups              |
 | horde_groups_members      |
 | horde_histories           |
 | horde_locks               |
 | horde_perms               |
 | horde_prefs               |
 | horde_sessionhandler      |
 | horde_signups             |
 | horde_syncml_anchors      |
 | horde_syncml_map          |
 | horde_tokens              |
 | horde_users               |
 | horde_vfs                 |
 | imp_sentmail              |
 +---------------------------+
 18 rows in set (0.01 sec)

***インストール設定 [#yf4ce1d1]

 # cd /var/www/html/horde/ingo/config
 # cp conf.php conf.php.org

''conf.php''
 $conf['storage']['driver'] = 'sql';
 $conf['storage']['params']['phptype'] = 'mysql';

追加または確認

***動作確認 [#h2184fcd]

http://10.3.1.54/horde/test.php

でエラー(赤い文字)がないことを確認

***アクセス [#ccd9daae]

http://(サーバ)/horde/

or

http://(サーバ)/horde/imp/

でアクセスするとlogin画面があるのでlogin

最低でも以下の設定が必要

''送信保存用フォルダを作成''

フォルダで送信メール保存先フォルダを作成(半角)


''送信保存用フォルダを指定''~

電子メール -> オプション -> 個人情報で

あなたの氏名 は必ず半角

デフォルトIDと一番下の「送信控えフォルダ」を先ほどのフォルダを指定


***POP3の設定 [#l6fd1b80]

メールオプションから、「メッセージオプション」の「メールの取り込み」
から設定

「他のサーバのメールアカウントにアクセスするための設定をして下さい。」を選択

「リモートメールボックス:」は空白でもPOP3はよさそう


***デフォルトのオプション(共通)の設定場所 [#mcc907ed]

horde/config/prefs.phpに設定されている

''表示オプション(共通)''~
Hordeログイン後どのアプリケーションを表示

電子メールに変更 => 'value' => 'imp'と指定

 // what application should we go to after login?
 $_prefs['initial_application'] = array(
 //    'value' => 'horde',
     'value' => 'imp',
     'locked' => false,
     'shared' => true,
     'type' => 'select',
     'desc' => sprintf(_("What application should %s display after login?"),  $GLOBALS['registry']->get('name'))
 );

**エラー時 [#ta6a26d7]

DB Error: extension not foundのエラーが出たときは~

php5-mysql

がインストールされていなかった

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS