#1  
Old 14th March 2010, 03:56
fducloux fducloux is offline
Junior Member
 
Join Date: Mar 2010
Posts: 8
Thanks: 4
Thanked 7 Times in 3 Posts
Default ISPConfig + Z-Push?

Hi could anyone help me to configure z-push on IPSConfig 3?

Z-Push is a free, opensource push-imap project.

http://z-push.sourceforge.net/soswp/

cheers!
Reply With Quote
Sponsored Links
  #2  
Old 15th March 2010, 10:29
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,037
Thanks: 268
Thanked 152 Times in 132 Posts
Default

I'm using z-push on my ISPconfig3 servers.
Let me know where you got stuck with the setup. It's really easy to do so, that I would not know what your problem is.
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #3  
Old 15th March 2010, 11:23
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,259
Thanks: 215
Thanked 648 Times in 294 Posts
Default

Hi Edge,
If you're willing to do so.
Please provide the information here how you did it.
I think lots of users here (including myself) are interested in your solution.
__________________
Hans

MrHostman | Master in managed hosting
Reply With Quote
  #4  
Old 15th March 2010, 12:42
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,037
Thanks: 268
Thanked 152 Times in 132 Posts
Default

This install of Z-Push is on a "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3]" setup

I'm using z-push on my 1st website of the server (client1 / web1)
You will need to change the "/var/clients/client1/web1/web/" part to your own settings if different.

For z-push to work you will need to have imap enabled for the user.

A quote from a famous person:
Quote:
This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!
-- Lets get started with installing z-push. --

Make sure that you are doing this as su user (root)
Also make sure that you are using the latest version of z-push.
More info @ http://z-push.sourceforge.net/soswp/...=39&t=Download
At time of writing this "howto" it was version z-push-1.3RC2

* Download, un-tar and move directory
1) cd /tmp
2) wget http://download.berlios.de/z-push/z-push-1.3RC2.tar.gz
3) tar zxf z-push-1.3RC2.tar.gz
4) mv z-push /var/clients/client1/web1/web/

* Edit the z-push/config.php file.
5) cd /var/clients/client1/web1/web/z-push
6) nano config.php
- Make sure that date_default_timezone_set (line 14) is set to your time zone
- Set $BACKEND_PROVIDER to BackendIMAP (line 49)

* Remove the file /backend/ics.php
7) rm /var/clients/client1/web1/web/z-push/backend/ics.php

* Make sure that directory z-push/state is writable for your webserver
8) chmod 777 /var/clients/client1/web1/web/z-push/state

* Create a .htaccess file
9) nano .htaccess

And add this to it.
Quote:
php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag magic_quotes_runtime off
php_flag short_open_tag on
You can also add the above to the Apache directives in ISPconfig3

* Add Alias /Microsoft-Server-ActiveSync /var/clients/client1/web1/web/z-push/index.php to your httpd.conf
10) cd /etc/apache2/
11) nano httpd.conf
At the end of httpd.conf add:
Quote:
Alias /Microsoft-Server-ActiveSync /var/clients/client1/web1/web/z-push/index.php
* Restart Apache.
12) /etc/init.d/apache2 restart

* Set website PHP mode to: Mod-PHP
13) Login to ISPconfig3 and go the the tab Sites > Domain. Now select the website that you are installing z-push to, and set PHP to Mod-PHP. When done click Save.

Now go to www.your-website.com/Microsoft-Server-ActiveSync, and with a bit of luck you will get a login popup screen.
Use the email address and password from a IMAP user account.
After this you will get an error:
Quote:
GET not supported
This is the z-push location and can only be accessed by Microsoft ActiveSync-capable devices.
This error is correct, as you are accessing the z-push by web browser.
All you need to do now is setup your mobile phone, and you've got push working!
The URL of the server to use in your mobile phone will be www.your-website.com.
You do not need to add z-push or Microsoft-Server-ActiveSync


If you are having problems, than you can create a 'debug.txt' in the root directory of z-push.
The debug.txt will log all activity, and give you a lot of extra info to find the problem(s).
Quote:
touch /var/clients/client1/web1/web/z-push/debug.txt
chmod 777 /var/clients/client1/web1/web/z-push/debug.txt
Let me know if you need more help.

Best regards from Czech where I'm stuck in a hotel at the moment. (snowed in)
__________________
Never execute code written on a Friday or a Monday.

Last edited by edge; 15th March 2010 at 21:52.
Reply With Quote
The Following 3 Users Say Thank You to edge For This Useful Post:
fducloux (15th March 2010), Hans (15th March 2010), till (15th March 2010)
  #5  
Old 15th March 2010, 22:27
fducloux fducloux is offline
Junior Member
 
Join Date: Mar 2010
Posts: 8
Thanks: 4
Thanked 7 Times in 3 Posts
 
Default

Brilliant! works perfect!

thanks very much!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPconfig setup - DNS, router and general access problems ingvar Installation/Configuration 6 31st July 2010 14:13
Install a Comodo InstantSSL Certificate for ISPconfig Apache, Postfix, Imap & Pop gwa7 Tips/Tricks/Mods 1 30th September 2009 19:08
Install a Comodo InstantSSL Certificate for ISPconfig Apache, Postfix, Imap & Pop gwa7 Installation/Configuration 0 10th April 2009 05:54
ISPConfig 2.3.1-dev released till General 0 8th May 2006 23:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16


All times are GMT +2. The time now is 11:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.