{"id":2080,"date":"2012-04-13T10:55:37","date_gmt":"2012-04-13T01:55:37","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=2080"},"modified":"2012-04-13T11:02:40","modified_gmt":"2012-04-13T02:02:40","slug":"%e7%84%a1%e5%84%9f%e9%ab%98%e6%a9%9f%e8%83%bdwebmail-horde4-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%8b%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/2080","title":{"rendered":"\u7121\u511f\u9ad8\u6a5f\u80fdWebmail Horde4 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u308b\u30e1\u30e2"},"content":{"rendered":"<p><strong>\u25a0\u7121\u511f\u9ad8\u6a5f\u80fdWebmail Horde4 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u308b\u30e1\u30e2<\/strong><br \/>\n\u3000iPhone\/iPad\u306b\u5bfe\u5fdc\u3057\u305f\u7121\u511f\u5229\u7528\u53ef\u80fd\u306a\u9ad8\u6a5f\u80fdWebmail Horde4 webmail edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u8a66\u884c\u932f\u8aa4\u4e2d\u306e\u30e1\u30e2\u3002iPhone\u7528\u306eUI\u304c\u306a\u304b\u306a\u304b\u4f7f\u3044\u3084\u3059\u3044\u306e\u3067\u671f\u5f85\u3057\u3066\u3044\u308b\u3002Horde\u306e\u591a\u5f69\u306a\u6a5f\u80fd\u3092\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u5fc5\u8981\u306a\u3082\u306e\u3092\u7d44\u307f\u8fbc\u3093\u3067\u3044\u304f\u3068php\u306e\u30a8\u30e9\u30fc\u306a\u3069\u3067\u4f7f\u3048\u306a\u304f\u306a\u308b\u3068\u3044\u3046&#8230;\u3002\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u5468\u308a\u306e\u30d1\u30fc\u30c4\u304c\u602a\u3057\u305d\u3046\u306a\u306e\u3060\u304c\u307e\u3060\u7279\u5b9a\u3067\u304d\u305a\u3002\u73fe\u5728\u307e\u3067\u306e\u624b\u9806\u3068\u30e1\u30e2\u3092\u899a\u66f8\u3002\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u306f\u5f53\u9762\u968f\u6642\u4fee\u6b63\u3055\u308c\u307e\u3059\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u74b0\u5883<\/strong><\/p>\n<p>\u30fbCentOS6.2<br \/>\n\u30fbWebServer\u3092\u9078\u629e\u3057php\/mysql\u7cfb\u3092\u6709\u52b9\u306b\u3059\u308b<br \/>\n\u30fbjava\/tomcat\u7b49\u4e0d\u8981\u306a\u3082\u306e\u306f\u3067\u304d\u308b\u3060\u3051\u524a\u308b<\/p>\n<p><strong>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u524d\u6e96\u5099<\/strong><\/p>\n<p>iptables\u3067Web\u30a2\u30af\u30bb\u30b9\u3092\u53ef\u80fd\u306b\u3059\u308b<br \/>\n# vi \/etc\/sysconfig\/iptables<br \/>\n-A INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 80 -j ACCEPT<br \/>\n-A INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 443 -j ACCEPT<br \/>\n# service iptables restart<\/p>\n<p>SELinux\u306e\u7121\u52b9\u5316\uff08\u3053\u308c\u3057\u306a\u3044\u3068test.php\u3067\u30cf\u30de\u308b\uff09<br \/>\n# getenforce<br \/>\nEnforcing<br \/>\n# vi \/etc\/sysconfig\/selinux<br \/>\nSELINUX=disabled<br \/>\n# reboot<\/p>\n<p><strong>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/strong>\uff08\u672a\u5b8c\uff09<\/p>\n<p>epel\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8ffd\u52a0<br \/>\n# wget http:\/\/ftp.riken.jp\/Linux\/fedora\/epel\/6\/i386\/epel-release-6-5.noarch.rpm<br \/>\n# rpm -ivh epel-release-6-5.noarch.rpm<br \/>\n# yum update<\/p>\n<p>\u5fc5\u8981\u306a\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u672a\u5b8c\u304a\u305d\u3089\u304f\u5165\u308c\u3066\u306f\u3044\u3051\u306a\u3044\u3082\u306e\u304c\u3042\u308b\uff09<br \/>\n# yum install gcc php-eaccelerator php-pdo php-gd php-xml php-xmlrpc php-soap php-ldap php-imap php-mbstring php-pear php-tidy php-zts php-pecl-memcache php-intl php-devel re2c php-pear-XML-Serializer php-pecl-ssh2<\/p>\n<p>php.ini\u3092\u7de8\u96c6\u3059\u308b<br \/>\n# vi \/etc\/php.ini<br \/>\nmemory_limit = 384M<br \/>\ndate.timezone = Asia\/Tokyo<br \/>\nsession.gc_divisor = 10000<\/p>\n<p>mysql\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b<br \/>\n# mysql -u root -p<br \/>\nmysql> grant all privileges on horde.* to horde@localhost identified by &#8216;hordepassword&#8217; WITH GRANT OPTION;<br \/>\nmysql> CREATE DATABASE `horde` DEFAULT CHARACTER SET utf8mb4 ;<br \/>\nmysql> quit<\/p>\n<p>Horde4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff08\u4f4d\u7f6e\u304chttp:\/\/www.example.com\/horde\/\u3068\u306a\u308b\u3088\u3046\u306b\uff09<br \/>\n# mkdir \/var\/www\/html\/horde<br \/>\n# pear upgrade PEAR<br \/>\n# pear channel-discover pear.horde.org<br \/>\n# pear install horde\/horde_role<br \/>\n# pear run-scripts horde\/horde_role<br \/>\nFilesystem location for the base Horde application : \/var\/www\/html\/horde<br \/>\n# pear install -a -B horde\/webmail<br \/>\n# webmail-install<br \/>\n[code]<br \/>\nInstalling Horde Groupware Webmail Edition<\/p>\n<p>Configuring database settings<\/p>\n<p>What database backend should we use?<br \/>\n    (false) [None]<br \/>\n    (mysql) MySQL \/ PDO<br \/>\n    (mysqli) MySQL (mysqli)<br \/>\n    (pgsql) PostgreSQL<br \/>\n    (sqlite) SQLite<\/p>\n<p>Type your choice []: mysql<br \/>\nRequest persistent connections?<br \/>\n    (1) Yes<br \/>\n    (0) No<\/p>\n<p>Type your choice [0]: <\/p>\n<p>Username to connect to the database as* [] horde<br \/>\nPassword to connect with hordepassword<br \/>\nHow should we connect to the database?<br \/>\n    (unix) UNIX Sockets<br \/>\n    (tcp) TCP\/IP<\/p>\n<p>Type your choice [unix]: <\/p>\n<p>Location of UNIX socket [] \/var\/lib\/mysql\/mysql.sock<\/p>\n<p>Database name to use* [] horde<\/p>\n<p>Internally used charset* [utf-8]<br \/>\nUse SSL to connect to the server?<br \/>\n    (1) Yes<br \/>\n    (0) No<\/p>\n<p>Type your choice [0]: <\/p>\n<p>Certification Authority to use for SSL connections []<br \/>\nSplit reads to a different server?<br \/>\n    (false) Disabled<br \/>\n    (true) Enabled<\/p>\n<p>Type your choice [false]: <\/p>\n<p>Writing main configuration file&#8230; done.<\/p>\n<p>Creating and updating database tables&#8230; done.<\/p>\n<p>Configuring administrator settings<\/p>\n<p>Specify an existing mail user who you want to give administrator<br \/>\npermissions (optional): \u7ba1\u7406\u30e6\u30fc\u30b6\u540d<\/p>\n<p>Writing main configuration file&#8230; done.<\/p>\n<p>Thank you for using Horde Groupware Webmail Edition!<br \/>\n[\/code]<\/p>\n<p># vi \/var\/www\/html\/horde\/config\/conf.php<br \/>\n$conf[&#8216;testdisable&#8217;] = false;<\/p>\n<p>http:\/\/www.example.com\/horde\/test.php \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u52d5\u4f5c\u78ba\u8a8d\u3002<\/p>\n<p>\u73fe\u624b\u9806\u3067\u306ftest.php\u306f\u52d5\u4f5c\u3059\u308b\u304c\u3001http:\/\/www.example.com\/horde\/\u3067\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3092\u8868\u793a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u4f55\u3082\u51fa\u3066\u3053\u306a\u3044\u3002apache\u306eerror\u30ed\u30b0\u306bphp\u30a8\u30e9\u30fc\u304c\u691c\u51fa\u3055\u308c\u3066\u3044\u308b\u3002\u8ffd\u52a0\u6a5f\u80fd\u3092\u3044\u304f\u3064\u304b\u5bfe\u5fdc\u3059\u308b\u524d\u306f\u52d5\u4f5c\u3057\u3066\u3044\u305f\u306e\u3067\u4f59\u8a08\u306a\u3082\u306e\u3092\u8ffd\u52a0\u3057\u305f\u306e\u304c\u3044\u3051\u306a\u3044\u6a21\u69d8&#8230;\u73fe\u5728\u8abf\u67fb\u4e2d\u3002\u307e\u305f\u52d5\u4f5c\u3057\u305f\u5834\u5408\u3067\u3042\u3063\u3066\u3082test.php\u3067\u306f\u5916\u90e8\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u306e\u306b\u3001\u30ed\u30b0\u30a4\u30f3\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u306b\u3042\u308bIMAP\u30b5\u30fc\u30d0\u306b\u3057\u304b\u63a5\u7d9a\u3067\u304d\u306a\u3044\u72b6\u614b\u3060\u3063\u305f\u306e\u3067\u3001\u8a2d\u5b9a\u3092\u3044\u308d\u3044\u308d\u691c\u8a3c\u3059\u308b\u5fc5\u8981\u3042\u308aorz<\/p>\n<p><strong>\u25a0\u8ffd\u52a0\u6a5f\u80fd\u3078\u306e\u5bfe\u5fdc<\/strong><\/p>\n<p>idn\u5bfe\u5fdc\u306e\u8ffd\u52a0<br \/>\n# yum install libidn-devel php-idn<br \/>\n# pecl install idn channel:\/\/pecl.php.net\/idn-0.2.0<br \/>\n# vi \/etc\/php.ini<br \/>\nextension=idn.so<\/p>\n<p>ImageMagick\u5bfe\u5fdc\u306e\u8ffd\u52a0<br \/>\n# yum install ImageMagick ImageMagick-devel php-magickwand<br \/>\n# pecl install imagick<br \/>\nPlease provide the prefix of Imagemagick installation [autodetect] :<br \/>\n# vi \/etc\/php.ini<br \/>\nextension=imagick.so<\/p>\n<p>GeoIP\u5bfe\u5fdc\u306e\u8ffd\u52a0<br \/>\n# yum install GeoIP php-pecl-geoip<\/p>\n<p>Date_Holidays\u306e\u8ffd\u52a0<br \/>\n# pear install Date_Holidays channel:\/\/pear.php.net\/Date_Holidays-0.21.6<br \/>\n# pear install Date_Holidays_Japan channel:\/\/pear.php.net\/Date_Holidays_Japan-0.1.2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0\u7121\u511f\u9ad8\u6a5f\u80fdWebmail Horde4 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u308b\u30e1\u30e2 \u3000iPhone\/iPad\u306b\u5bfe\u5fdc\u3057\u305f\u7121\u511f\u5229\u7528\u53ef\u80fd\u306a\u9ad8\u6a5f\u80fdWebmail Horde4 webmail edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u8a66\u884c\u932f\u8aa4\u4e2d\u306e\u30e1\u30e2 &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/2080\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;\u7121\u511f\u9ad8\u6a5f\u80fdWebmail Horde4 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u308b\u30e1\u30e2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,165,61,164],"class_list":["post-2080","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-horde","tag-mail","tag-webmail"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/comments?post=2080"}],"version-history":[{"count":6,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2080\/revisions"}],"predecessor-version":[{"id":2084,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2080\/revisions\/2084"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=2080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=2080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=2080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}