horde groupware php,Horde Groupware 5.0.4安装与配置

安装必要条件

为Horde Groupware编译受支持的PHP5.3.22运行环境

# yum install openssl-devel libpng-devel \

libjpeg-devel libicu-devel libtidy-devel \

libc-client-devel \

autoconf ImageMagick-devel libssh2-devel

配置并编译PHP

./configure --prefix=/usr/local/php \

--with-apxs2=/usr/local/apache/bin/apxs \

--with-mysql=/usr/local/mysql \

--with-pdo-mysql=/usr/local/mysql \

--with-libxml-dir=/usr/local/libxml2 \

--enable-mbstring \

--with-kerberos --with-imap-ssl \

--with-imap=/usr/local/dovecot/include/dovecot/ \

--with-gettext --with-tidy \

--with-gd --with-png-dir --with-jpeg-dir \

--with-openssl --enable-intl \

--enable-ftp --with-zlib \

错误分析–enable-intl

checking for location of ICU headers and libraries... not found

configure: error: Unable to detect ICU prefix or no failed. Please verify ICU

install prefix and make sure icu-config works.

#yum install libicu-devel

错误分析 –with-tidy

checking for TIDY support... yes

configure: error: Cannot find libtidy

# yum install libtidy-devel

Horde建议安装的PHP Extension Community Library

错误分析 pecl install

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then, rerun this script.

# yum install autoconf

安装imagick

# pecl install imagick

安装成功并在配置文件中添加PHP扩展

install ok: channel://pecl.php.net/imagick-3.0.1

configuration option “php_ini” is not set to php.ini location

You should add “extension=imagick.so” to php.ini

a4f96d8ee0582a4b0d8db1e23ea83789.png

错误分析 pecl install imagick

checking ImageMagick MagickWand API configuration program...

configure: error: not found. Please provide a path to

MagickWand-config or Wand-config program.

ERROR: `/tmp/pear/temp/imagick/configure --with-imagick' failed

# yum install ImageMagick-devel

安装lzf

e49a3e3e22e5d7733958fa0d65f4517f.png347e40462c7345ca511eb9cc91dcb6bc.png

安装memcache

824350fba7c8fa9b70e6bd55581c7d87.png

0fbe7f175a0d59acf0c2332d6d9be597.png

使用PEAR在线安装horde groupware

1

[root@localhost ~]# pear channel-discover pear.horde.org

Adding Channel "pear.horde.org" succeeded

Discovery of channel "pear.horde.org" succeeded

[root@localhost ~]#

2

[root@localhost ~]# pear install horde/horde_role

downloading Horde_Role-1.0.1.tgz ...

Starting to download Horde_Role-1.0.1.tgz (10,977 bytes)

.....done: 10,977 bytes

install ok: channel://pear.horde.org/Horde_Role-1.0.1

horde/Horde_Role has post-install scripts:

/usr/share/pear/PEAR/Installer/Role/Horde/Role.php

Horde_Role: Use "pear run-scripts horde/Horde_Role" to finish setup.

DO NOT RUN SCRIPTS FROM UNTRUSTED SOURCES

[root@localhost ~]#

3

[root@localhost ~]# pear run-scripts horde/Horde_Role

Including external post-installation script "/usr/local/php/lib/php/PEAR

/Installer/Role/Horde/Role.php" - any errors are in this script

Inclusion succeeded

running post-install script "Horde_Role_postinstall->init()"

init succeeded

Filesystem location for the base Horde application : /usr/local/apache/htdocs

Configuration successfully saved to PEAR config.

Install scripts complete

[root@localhost ~]#

4

# pear install horde/webmail

安装成功

install ok: channel://pear.horde.org/Horde_Crypt-2.1.3

install ok: channel://pear.horde.org/Horde_Notification-2.0.1

install ok: channel://pear.horde.org/Horde_Core-2.4.3

install ok: channel://pear.horde.org/content-2.0.2

install ok: channel://pear.horde.org/timeobjects-2.0.3

install ok: channel://pear.horde.org/Horde_Form-2.0.3

install ok: channel://pear.horde.org/Horde_Rpc-2.0.3

install ok: channel://pear.horde.org/horde-5.0.4

install ok: channel://pear.horde.org/imp-6.0.4

install ok: channel://pear.horde.org/ingo-3.0.3

install ok: channel://pear.horde.org/kronolith-4.0.4

install ok: channel://pear.horde.org/mnemo-4.0.3

install ok: channel://pear.horde.org/nag-4.0.2

install ok: channel://pear.horde.org/turba-4.0.3

install ok: channel://pear.horde.org/webmail-5.0.4

查看文件

9b428b7df2edb8d5c89e9b814acce2e3.png

为HORDE GROUPWARE 5.0.4创建数据并授权

mysql> create database groupware;

Query OK, 1 row affected (0.00 sec)

mysql> grant all on groupware.* to groupware;

Query OK, 0 rows affected (0.00 sec)

mysql> grant all on groupware.* to groupware@localhost;

Query OK, 0 rows affected (0.00 sec)

mysql> set password for groupware@localhost=password(‘gwpasswd’);

Query OK, 0 rows affected (0.00 sec)

[root@localhost ~]# pear config-get bin_dir

/usr/local/php/bin

f36e74f5c75866ed928a9ba2f93abf81.png

07a8d2e871245c5bf4783b3b30e6beb2.png

1dbc23d365c64e24f8981dd945a1eb06.png

324563b0222b09188de1bb8df5e5ab77.png

修改配置文件启用测试页面

[root@localhost ~]# vi /usr/local/apache/htdocs/config/conf.php

$conf['testdisable'] = false;

f695f2acf8a9334d7bcfadbb3e6b47ef.png

修改Webmail目录及文件所有者为apache用户和组

[root@localhost ~]# cd /usr/local/apache/htdocs/

[root@localhost htdocs]# chown -R apache.apache .

……

59264e75a20f0c10b43458f180866965.png

[root@localhost ~]# pear install HTTP_WebDAV_Server

Failed to download pear/HTTP_WebDAV_Server within preferred state “stable”, latest release is version 1.0.0RC8, stability “beta”, use “channel://pear.php.net/HTTP_WebDAV_Server-1.0.0RC8” to install

install failed

[root@localhost ~]# pear install channel://pear.php.net/HTTP_WebDAV_Server-1.0.0RC8

downloading HTTP_WebDAV_Server-1.0.0RC8.tar …

Starting to download HTTP_WebDAV_Server-1.0.0RC8.tar (Unknown size)

…………………………….done: 159,744 bytes

install ok: channel://pear.php.net/HTTP_WebDAV_Server-1.0.0RC8

[root@localhost ~]#

2df439b230bd7fdf654db0690221fefa.png

[root@localhost ~]# pear install Net_SMTP

WARNING: “pear/Auth_SASL” is deprecated in favor of “pear/Auth_SASL2”

downloading Net_SMTP-1.6.1.tar …

Starting to download Net_SMTP-1.6.1.tar (Unknown size)

…………….done: 65,024 bytes

install ok: channel://pear.php.net/Net_SMTP-1.6.1

[root@localhost ~]#

abf8b9a76a8ba614da636a9b56fa2b13.png

[root@localhost ~]# pear install XML_Serializer

Failed to download pear/XML_Serializer within preferred state “stable”, latest release is version 0.20.2, stability “beta”, use “channel://pear.php.net/XML_Serializer-0.20.2” to install

install failed

[root@localhost ~]# pear install channel://pear.php.net/XML_Serializer-0.20.2

WARNING: “pear/XML_Parser” is deprecated in favor of “pear/XML_Parser2”

downloading XML_Serializer-0.20.2.tar …

Starting to download XML_Serializer-0.20.2.tar (Unknown size)

…………………………………………………done: 273,408 bytes

downloading XML_Parser-1.3.4.tar …

Starting to download XML_Parser-1.3.4.tar (Unknown size)

…done: 90,624 bytes

install ok: channel://pear.php.net/XML_Parser-1.3.4

install ok: channel://pear.php.net/XML_Serializer-0.20.2

[root@localhost ~]#

6e4ff4578249f59d291a454f265e0673.png

配置IMP邮件服务器端参数

[root@localhost ~]# cd /usr/local/apache/htdocs/imp/config/

[root@localhost config]# cp backends.php backends.local.php

[root@localhost config]# vi backends.local.php

登录

92da89be125933313334bb29bfc9da53.png

17ba6bb67f37dfafd96449cb53cddcae.png

67e2da2313ade99bef5145b214d1b8b3.png

关闭测试页面

8e894b234a20e98d5235038dd0259e68.png

错误分析

# cat /usr/local/apache/logs/error_log

[Wed Apr 10 02:16:46 2013] [error] [client 192.168.1.151] PHP Warning:  phpinfo() [function.phpinfo]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead in /usr/local/apache/htdocs/php.php on line 1

修改php.ini时区设置

# vi /usr/local/php/lib/php.ini

date.timezone = Asia/Chongqing

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值