Chinaunix首页 | 论坛 | 博客
  • 博客访问: 827584
  • 博文数量: 203
  • 博客积分: 2433
  • 博客等级: 大尉
  • 技术积分: 2195
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-05 13:32
文章分类

全部博文(203)

分类: LINUX

2012-05-05 23:40:26

z-push是一款可以同步邮件,通讯录,日程表到手机的一款软件,以下是配置事项:
先安装php和httpd,如果需要ssl验证,记得安装mod_ssl,
如果需要使用ActiveSync的同步,请下载AS的z-push
mkdir /var/www/z-push
svn checkout svn://svn.berlios.de/z-push/branches/as12.1 /var/www/z-push
同时下载as12.1的zimbra backend
mkdir /var/www/z-push/zimbra
svn checkout /var/www/z-push/zimbra
mkdir /var/www/z-push/backend-old
mv /var/www/z-push/backend/* /var/www/z-push/backend-old
mv /var/www/z-push/backend-old/backend.php /var/www/z-push/backend/
mv /var/www/z-push/backend-old/diffbackend.php /var/www/z-push/backend/
mv /var/www/z-push/zimbra/zimbra.php /var/www/z-push/backend/
chgrp www-data /var/www/z-push/state
chmod g+w /var/www/z-push/state  (state目录是手机登录的目录,apache需要权限)
touch /var/www/z-push/debug.txt
chmod 777 /var/www/z-push/debug.txt(创建debug文件)
下面是配置z-push的config.php
# Update the following existing config lines
date_default_timezone_set("Europe/London");                # Or use whatever Unix style time-zone that's appropriate for you
define('PROVISIONING', false);
$BACKEND_PROVIDER = "BackendZimbra";
 
# Add the following config lines
define('ZIMBRA_DEBUG',true);
define('ZIMBRA_URL', '');(修改为zimbra的地址,也可以是http,不一定是httpd,要指向zimbra的客户登录页面)      # Update with you Zimbra server hostname
define('ZIMBRA_USER_DIR', 'zimbra');
define('ZIMBRA_SYNC_CONTACT_PICTURES', true);
define('ZIMBRA_VIRTUAL_CONTACTS',true);
define('ZIMBRA_VIRTUAL_APPOINTMENTS',true);
define('ZIMBRA_VIRTUAL_TASKS',true);
define('ZIMBRA_IGNORE_EMAILED_CONTACTS',true);
define('ZIMBRA_HTML',true);
添加以上内容到config.php
添加以下内容到http.conf,
VirtualHost *:80>
        ServerAdmin info@as.domain.com
        ServerName  as.domain.com

        # Indexes + Directory Root.
        DirectoryIndex index.php
        DocumentRoot /var/www/z-push/
        Alias /Microsoft-Server-ActiveSync /var/www/z-push/index.php(还有添加这一行,使之支持ActiveSync)

       
                AllowOverride All(修改None为ALl)
       

php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag magic_quotes_runtime off
php_flag short_open_tag on
        添加以上四行到httpd.conf

        # Logfiles - you'll need to create the paths if they don't exist already
        ErrorLog  /var/log/apache2/z-push/error.log
        CustomLog /var/log/apache2/z-push/access.log combined

 
以上是一个虚拟机的配置文件,如果修改httpd.conf只需要添加以上标记三行,还有就是修改根目录为z-push
基本上就差不多啦,暂时写到这里!

阅读(2461) | 评论(0) | 转发(0) |
0

上一篇:架设openfire

下一篇:设置linux终端颜色

给主人留下些什么吧!~~