Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: justinesmithies on June 23, 2012, 11:44:59 pm

Title: Update Z-Push to version 2.0 for HTML Push
Post by: justinesmithies on June 23, 2012, 11:44:59 pm
I have successfully updated Z-Push to the latest version from the Z-Push site. This allows me to get HTML emails pushed to my Android phone as the standard version that comes with Zentyal 2.2 doesn't allow for HTML push.

All i did was rename the folder /usr/share/z-push to /usr/share/z-push-orig
Then extract the latest Z-Push archive into /usr/share/z-push

The state directory is by default /var/lib/z-push, the log directory /var/log/z-push.
Please create these directories and make them writeable for apache or
change the configuration parameters to your needs.

And hopefully thats you upgraded to the latest Z-Push with HTML Push.
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: jsalamero on July 23, 2012, 07:41:19 am
In case some wants updated d-push packages (z-push renamed to d-push for legal reasons), have a look here: https://launchpad.net/~bencer/+archive/zarafa
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: Project on July 26, 2012, 07:50:52 pm
can someone post a installation guide please ?
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: ichat on July 27, 2012, 08:30:26 am
Dear Project,

just so its verry clear, al he did was... 
1 installing the zarafa module as described per  zentyal isntallation guide.
2 stopping the zarafa service in the zentyal interface
3 moving the folder:  #sudo mv /usr/share/z-push  /usr/share/z-push-orig
4 download and unpack the new z-push or d-push files
  and move the files to /usr/share/z-push.   again with  sudo mv /location/of/files  /usr/share/z-push
5 start up the service again and test it...

if any of these tasks seam unclear to you -  google  or the installation manual from zpush  WILL be very helpfull...
 
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: Project on July 27, 2012, 10:17:45 pm
Ok it works, thx for the info. I will write it down for other people as well.
Please correct me if there is a better/safer way to do this. I'm still learning this stuff so.

# cd /usr/share
# service zarafa-server stop
# sudo mv /usr/share/z-push  /usr/share/z-push-orig
# sudo wget https://launchpad.net/~bencer/+archive/zarafa/+files/d-push_2.0.1.orig.tar.gz
# sudo tar -zxvf d-push_2.0.1.orig.tar.gz
# sudo mv /usr/share/d-push-2.0.1/ /usr/share/z-push
# cd ..
# sudo mkdir /var/lib/z-push ( if not needed the server will say so )
# sudo mkdir /var/log/z-push ( if not needed the server will say so )
# cd /var/log
# sudo chmod 777 z-push
# cd /var/lib
# sudo chmod 777 z-push
# service zarafa-server start

That's it , works like a charm. You need to remove the accounts from your devices ( phone, pad ) and install them again.
This and the webapp made my week  ;D

Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: robb on July 27, 2012, 11:08:22 pm
Is the chmod 777 absolutely necessary? I mean, does it need full control for the rest of the world? To me that seems a bit .... too open...
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: Project on July 29, 2012, 11:11:34 am
What is the user or group for apache2 on zentyal ? --> www-data ( found this, correct me if wrong )

i did the following :

# sudo chmod 755 z-push in both directories ( var/log & var/lib )

But shoudln't i just change the permissions for apache2 ? Being www-data ??
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: ichat on July 29, 2012, 04:28:21 pm
correct, you should ignore the   part about   chmode  777 ... NEVER do this on a production machine...

instead you can   chown  these directories to  www-data 
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: jsalamero on August 01, 2012, 08:46:14 am
Guys, is much easier:

1.- Add my PPA
2.- sudo apt-get install d-push (rebranded version, but same software)
3.- cd /etc/apache2/sites-available ; sudo mv z-push z-push.orig
4.- new contents of z-push file:
Code: [Select]
# d-push default Apache configuration

<IfModule mod_alias.c>
    Alias /Microsoft-Server-ActiveSync /usr/share/d-push/index.php
</IfModule>
5.- /etc/init.d/zentyal webserver restart

(this is working if we don't have Zarafa on a specific vhost but on the default)
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: vshaulsk on August 05, 2012, 04:52:10 am
jsalamero,

I have followed the steps to add the correct PPA.... atleast I think I did, but when I try to sudo apt-get install d-push I get a message saying can't find package d-push.

This leads me to believe I did not install the PPA correctly, but for the life of me I do not know what I did wrong:

I have added the following to my /etc/apt/sources.list

deb http://ppa.launchpad.net/bencer/zarafa/ubuntu lucid main
deb-src http://ppa.launchpad.net/bencer/zarafa/ubuntu lucid main

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2A35DCE5

sudo apt-get update

sudo apt-get install d-push (but it can't find the package)
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: innocenti_jr on August 06, 2012, 08:47:25 am
"d-push" is available for Ubuntu Precise only.
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: Xaelius on September 26, 2012, 12:25:18 am

Going to have to give this a go...still playing with test runs of fully configuring everything out for use at our shop.
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: Barrydocks on February 06, 2013, 10:51:44 am
Hi there, I have tried this with both the latest version of z-push and v2.0.0-1346.  Every time I get this error:
Code: [Select]
FatalMisconfigurationException

Not possible to write to the configured state directory.

Trace:
Array
(
    [0] => Array
        (
            [file] => /usr/share/z-push/lib/core/zpush.php
            [line] => 329
            [function] => FileStateMachine
            [class] => FileStateMachine
            [type] => ->
            [args] => Array
                (
                )

        )

    [1] => Array
        (
            [file] => /usr/share/z-push/lib/core/zpush.php
            [line] => 302
            [function] => GetStateMachine
            [class] => ZPush
            [type] => ::
            [args] => Array
                (
                )

        )

    [2] => Array
        (
            [file] => /usr/share/z-push/index.php
            [line] => 135
            [function] => CheckAdvancedConfig
            [class] => ZPush
            [type] => ::
            [args] => Array
                (
                )

        )

)
even if I set the permissions to 777 on the /usr/share/z-push directory.

Any suggestions?

Thanks
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: socceroos on March 20, 2013, 02:06:52 am
Hi there, I have tried this with both the latest version of z-push and v2.0.0-1346.  Every time I get this error:

FatalMisconfigurationException

Not possible to write to the configured state directory.

even if I set the permissions to 777 on the /usr/share/z-push directory.

Any suggestions?

Thanks

Hi Barry, did you use the following command: sudo chmod -R 777 /usr/share/z-push/

The "-R" makes sure that all subdirectories and files are also changed. Please note that this is VERY INSECURE and should not be done in a production environment. It would be safer to change the ownership of the directory so that apache can write to it. Before going into production with this, I would suggest hunting down the particular permissions issue and modifying the access accordingly.
Title: Re: Update Z-Push to version 2.0 for HTML Push
Post by: Barrydocks on April 30, 2013, 09:22:50 pm
Hooray, go it to work with the latest version of z-push!  I just did the following as a root:
Code: [Select]
# cd /usr/share
# service zarafa-server stop
# sudo mv /usr/share/z-push  /usr/share/z-push-orig
# wget http://zarafa-deutschland.de/z-push-download/final/2.0/z-push-2.0.7-1690.tar.gz
# sudo tar -zxvf z-push-2.0.7-1690.tar.gz
# sudo mv /usr/share/z-push-2.0.7-1690.tar.gz/ /usr/share/z-push
# cd ..
# sudo mkdir /var/lib/z-push ( if not needed the server will say so )
# sudo mkdir /var/log/z-push ( if not needed the server will say so )
# cd /var/log
# sudo chmod 777 z-push
# cd /var/lib
# sudo chmod 777 z-push
# service zarafa-server start


Actually, I think stopping the zarafa server before doing anything is the critical bit?
Now I just need to sort the permissions on the /var/lib/z-push and  /var/log/z-push files :D