Z-push installation


Has anyone managed to get Z-PUSH (http://z-push.sourceforge.net/soswp/) to work on a shared DH server?

Can anyone help as to how the installation steps (https://developer.berlios.de/project/showfiles.php?group_id=8963) can be made to work with DH shared environment?

Thank you,


Have you tried installing it? I downloaded the manual and saw nothing that made it seem like it wouldn’t run at DreamHost. Apache here runs as dhapache, but I’m not sure which group.


Yes. I installed it following the manual but:

  1. There are some steps that can’t be done without root access: like “chown” and editing of httpd.conf
  2. Even without these changes, z-push keeps asking for username and password (my IMAP credentials) but doesn’t like anything I give it.

Looking at 1.2RC1, chmod 777 /var/www/z-push/state being your version of that directory. shell or ftp can do that fine. Alias /Microsoft-Server-ActiveSync /var/www/z-push/index.php can be done in an .htaccess file with a rewrite i believe. since i dont use modrewrite very often, i think someone else should comment on that. but i dont see why it wouldnt work. google mod rewrite htaccess and you should find something

Have done that. Used modrewrite and now I have the correct path and everything but it is still bouncing my credentials. I suspect it is a problem with Z-Push/Google IMAP connection. I was hoping if anyone has done it on DH Shared Environment before.

Thanks for the reply.

Check the config.

define(‘IMAP_SERVER’, ‘imap.gmail.com’);
define(‘IMAP_PORT’, 993);
define(‘IMAP_OPTIONS’, ‘/notls/norsh/ssl’);

I haven’t used z-push, but as long as php is compiled with imap it shouldn’t be a concern from where the script is served.

Maximum Cash Discount on any plan with MAXCASH

that is not the problem.
the problem is that dreamhost runs php as a cgi, wich results in problems accessing the basic authentication info from php. z-push needs this to forward it to the imap backend.
with a few changes, it is however possible to get it working.
I use since a few days, and it works great.

if you need my code, please mail me at g e r t AT p a r i s i s dot b e