Easy install of Z-Push

Take your Zimbra with you!
seidler
Posts: 21
Joined: Fri Jun 30, 2017 8:28 am

Easy install of Z-Push

Post by seidler »

Hi,

I wrote a small tutorial for installing Z-Push on Zimbra here: https://www.stefanseidel.info/Z-Push_on_Zimbra_8

I hope you find this helpful.

Looking forward to feedback, constructive criticism is encouraged :)

Stefan
milauria
Advanced member
Advanced member
Posts: 96
Joined: Mon Aug 15, 2016 12:32 pm

Re: Easy install of Z-Push

Post by milauria »

Thanks for sharing this, it's always good to have tutorials

Justa s a note I installed it from repo following the instructions at https://wiki.z-hub.io/display/ZP/Installation

It install apache and there is also a module that configure Apache virtual server for you, same for the zimbra backend install instructions posted on sourceforge

Cheers
seidler
Posts: 21
Joined: Fri Jun 30, 2017 8:28 am

Re: Easy install of Z-Push

Post by seidler »

milauria wrote:Thanks for sharing this, it's always good to have tutorials

Justa s a note I installed it from repo following the instructions at https://wiki.z-hub.io/display/ZP/Installation

It install apache and there is also a module that configure Apache virtual server for you, same for the zimbra backend install instructions posted on sourceforge

Cheers
Yes, and I wanted to avoid having yet another thing running. Apache is already running for Zimbra Spell, but I didn't want to misuse it and also didn't want to have two Aapche running. Besides, I find php-fpm better than mod_php in every regard :)

Stefan
7224jobe
Outstanding Member
Outstanding Member
Posts: 283
Joined: Sat Sep 13, 2014 1:55 am
ZCS/ZD Version: 8.8.15_FOSS Patch38

Re: Easy install of Z-Push

Post by 7224jobe »

Thanks for sharing, I have never thought about using Zimbra Nginx, I always installed Z-Push on a separate server. I'll try your method on the next install! ;)
User avatar
jasggomes
Advanced member
Advanced member
Posts: 90
Joined: Sat Sep 13, 2014 12:59 am
Location: Lisbon, PT
ZCS/ZD Version: Release 8.7.11.GA.1854.UBUNTU14.64
Contact:

Re: Easy install of Z-Push

Post by jasggomes »

seidler wrote:Hi,

I wrote a small tutorial for installing Z-Push on Zimbra here: https://www.stefanseidel.info/Z-Push_on_Zimbra_8

I hope you find this helpful.

Looking forward to feedback, constructive criticism is encouraged :)

Stefan
Hi Stefan, thank you for you tutorial, any good idea for deploying this on Zimbra 8.8.6 OSE and Ubuntu 16.04?

Having issues witj the PHP modules::

root@mail:~# apt-get install php5-memcached php5-cli php-soap php5-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-fpm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
php7.0-cli:i386 php7.0-cli

E: Unable to locate package php5-memcached
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-fpm' has no installation candidate

I'll keep checking, but it is a good idea to have some input from you.

Regards.

JG
User avatar
jasggomes
Advanced member
Advanced member
Posts: 90
Joined: Sat Sep 13, 2014 12:59 am
Location: Lisbon, PT
ZCS/ZD Version: Release 8.7.11.GA.1854.UBUNTU14.64
Contact:

Re: Easy install of Z-Push

Post by jasggomes »

Him installed the PHP 7 modules

configured the system as per your configs, but keep having this:

HTTP ERROR 502
Problem accessing ZCS upstream server. Cannot connect to the ZCS upstream server. Connection is refused.

Any ideas?

OS ubuntu 16.04 and Zimbra 8.8.6

I think that we can keep the same ports for webmail for 443 right?

Regards

JG
User avatar
jasggomes
Advanced member
Advanced member
Posts: 90
Joined: Sat Sep 13, 2014 12:59 am
Location: Lisbon, PT
ZCS/ZD Version: Release 8.7.11.GA.1854.UBUNTU14.64
Contact:

Re: Easy install of Z-Push

Post by jasggomes »

Hi, again,

The problem was because PHP-FPM was using file socket instead of IP.

Changed it on: /etc/php/7.0/fpm/pool.d/www.conf, and started to function, although I'm now having issue with Authentication

Seeing this in LOGS:

08/02/2018 18:15:05 [12136] [FATAL] [admin@xxxx] Fatal error: /var/www/z-push/lib/utils/utils.php:1144 - Uncaught Error: Call to undefined function mb_detect_encoding() in /var/www/z-push/lib/utils/utils.php:1144
Stack trace:
#0 /var/www/z-push/lib/request/request.php(251): Utils::ConvertAuthorizationToUTF8('admin@xxxxxx')
#1 /var/www/z-push/index.php(61): Request::ProcessHeaders()
#2 {main}
thrown (1)

Again, any ideas?

Thanks and regards.

JG
7224jobe
Outstanding Member
Outstanding Member
Posts: 283
Joined: Sat Sep 13, 2014 1:55 am
ZCS/ZD Version: 8.8.15_FOSS Patch38

Re: Easy install of Z-Push

Post by 7224jobe »

It looks like you did not install php5-mbstring....taking a look to seidler guide, it suggests to install php-mbstring on CentOS, but not on Ubuntu. I'd try installing php5-mbstring.
User avatar
jasggomes
Advanced member
Advanced member
Posts: 90
Joined: Sat Sep 13, 2014 12:59 am
Location: Lisbon, PT
ZCS/ZD Version: Release 8.7.11.GA.1854.UBUNTU14.64
Contact:

Re: Easy install of Z-Push

Post by jasggomes »

7224jobe wrote:It looks like you did not install php5-mbstring....taking a look to seidler guide, it suggests to install php-mbstring on CentOS, but not on Ubuntu. I'd try installing php5-mbstring.
Thnaks for the reply .

Going to have a look into it now.

Thanks
User avatar
jasggomes
Advanced member
Advanced member
Posts: 90
Joined: Sat Sep 13, 2014 12:59 am
Location: Lisbon, PT
ZCS/ZD Version: Release 8.7.11.GA.1854.UBUNTU14.64
Contact:

Re: Easy install of Z-Push

Post by jasggomes »

7224jobe wrote:It looks like you did not install php5-mbstring....taking a look to seidler guide, it suggests to install php-mbstring on CentOS, but not on Ubuntu. I'd try installing php5-mbstring.
Hello all, quick update

Again thank you all, for the TUT and the help that followed it.

In fact in ubuntu 16.04 I've installed the default PHP, which is ver 7, and the modules suggested, but as I mentioned that didn't work as per default.
So, after following the TUT I had to change some things for ubuntu 16.04 and Zimbra 8.8.6 OSE. Also Z-push is 2.3.9 (latest) and Zimbra backend is v67 latest.

PHP install:

apt-get install php-memcached php-cli php-soap php-fpm php-mbstring php-curl

Since PHP configures the socket to be by file instead of by IP, I had to change it in:

vi /etc/php/7.0/fpm/pool.d/www.conf

After is just following the rest of the TUT, so far, but I'll keep testing it on my test env.

I'm now reverting to a snap prior the PHP install to do it all again, but now I'm going to use the Z-push repo instead of the package itself.

Regards
Post Reply