This was tested using z-push 2.0.8-1731, zimbrabackend 56.1, Zimbra 8.0.4 OSE on Centos6
install php-cgi php-process
:create folder
opt/z-push and copy z-push files to it
Configure z-push per install instructions. zimbra url for backend can be localhost or 127.0.0.1
:create link in opt/zimbra/jetty/webapps to /opt/z-push
ln -s /opt/zimbra/jetty/webapps/z-push /opt/z-push
:create shell file called php-cgi-fix.sh in /usr/bin
#/usr/bin/sh
export SCRIPT_FILENAME=$1
/usr/bin/php-cgi
:create a WEB-INF folder in /opt/z-push
:create web.xml file with the following info and place in /opt/z-push/WEB-INF
xmlns=http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee"
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4"
>
php
PHP
org.eclipse.jetty.servlets.CGI
1
commandPrefix
/usr/bin/php-cgi-fix.sh
Path
/bin:/usr/bin:/usr/local/bin
PHP
*.php
deny
/backend/*
/include/*
/lib/*
/WEB-INF/*
/config.php
/z-push-top.php
/z-push-admin.php
/INSTALL
/LICENSE
deny
:edit /opt/zimbra/jetty/etc/jetty.xml.in
Find
/service/extension/zimbrasync
Change
/z-push/index.php
Add
I added this below a similar entry for "zimlet"
/z-push/*
/z-push
true
Add
Again, I added this near similar code for "zimlet"
/webapps/z-push
/z-push
/etc/webdefault.xml
/work/z-push
true
false
org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern
.*/.*jsp-api-[^/]*.jar$|.*/.*jsp-[^/]*.jar$|.*/.*taglibs[^/]*.jar$
:Edit php.ini
edit etc/php.ini
magic_quotes_gpc off
register_globals off
magic_quotes_runtime off
short_open_tag on
cgi.force_redirect = 0
max_execution_time = 120
memory_limit = 128M
:restart jetty
su zimbra
zmmailboxdctl restart
That should do it.
I welcome any feedback/suggestions. Please let me know if you have any questions, and I'll do my best to answer them.