egroupware是一种开源的办公系统。

在实际的安装过程中遇到了很多问题,虽然官方给出了源,在centos里我们可以很轻松的解决众多依赖关系,但是在检查安装的时候还是缺那么几个php的扩展包。所以我使用先安装各种扩展,然后再用Yum来安装。egroupware依赖于lamp平台。

搭建lamp:

yum -y install httpd php mysql mysql-server php-mysql
yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql
yum -y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc
yum -y install mysql-connector-odbc mysql-devel libdbi-dbd-mysql

安装扩展:

pear install Net_Sieve

pear install Net_IMAP
pear install Auth_SASL

添加yum源并安装软件:

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/server:eGroupWare/CentOS_6/server:eGroupWare.repo
yum install eGroupware

启动服务,并创建数据库:

chkconfig iptables off

chkconfig httpd on

chkconfig mysqld on

service httpd start

service mysqld start

mysql -u root -p

CREATE DATABASE egroupware;
GRANT ALL ON egroupware.* TO egroupware@localhost IDENTIFIED BY '123.com';

安装:

通过http://ip/egroupware/setup访问web按照提示下一步安装即可后面的比较简单了。

在第一步写入header.inc.php文件时如果不成功就手动创建文件即可。一般通过Yum按准的都不存在该问题,如果是源码的话可能会有权限问题。

当我们检查安装钩子都是绿色的时候就可以进行下一步了。