PHP-Push-2 is Z-Push-2 - Open Source ActiveSync - from SVN upstream with CalDAV and CardDAV backend support.
Use combined backends from Z-Push-2 to allow:
-
Mail - IMAP
- Requirements: IMAP Server
-
Calendar - CalDAV
- Requirements: libawl-php
-
Contacts - LDAP
- Requirements: LDAP Server
-
Contacts - CardDAV
- Requirements: libawl-php
-
A working caldav/carddav server (e.g. SOGo,ownCloud,SabreDAV)
- Did not test other than SOGo but it should work with any caldav/cardav groupware, feedback are welcome.
-
An ActiveSync compatible mobile device
-
PHP5 with the following libraries for a Debian/Ubuntu system
$ apt-get install php5-curl php5-ldap php5-imap php-mail libawl-php
-
PHP5 with the following libraries for a Redhat system
$ yum install php-curl php-common php-ldap php-imap php-imap libawl-php
-
libawl-php is part of Redhat and Debian, however it is not available for SME and CentOS. You can find the package at http://debian.mcmillan.net.nz/packages/awl/
PHP-Push-2 is possible thanks to the following projects:
-
CarDAV and CalDAV RFC:
-
ActiveSync Contact and Calendar Protocol Specification
- CardDAV-Client
- Thanks to Christian Putzke for updating his library
- vCard-parser
- Thanks to Nuovo for updating his library
- CalDAV-Client
-We are building PHP-Push-2 in my spare time, so if you want to buy me a coke while I'm coding, that would be awesome!
Clone from github:
$ cd /var/www
$ git clone https://github.com/dupondje/PHP-Push-2.git
$ cd PHP-Push-2
Read the Z-Push install instructions in the INSTALL file, or this document: Configure Z-Push (Remote ActiveSync for Mobile Devices)
Note: Z-Push is mean to be use with mod_php, if using FastCGI, additional configuration are need in Apache, please refer to the wiki.
If you wan to use the configuration sample to work with SOGo online demo.
Those files are pre-configured to work with the SOGo Online Demo
File 'config.php' is the original file from Z-Push SVN repository:
$ cp config.php config.php.org
$ cp config.inc.php config.php
File 'backend/combined/config.php' is the original file from Z-Push SVN repository:
Nothing is need to be change in this file. It only combined 3 backends.
$ cp backend/combined/config.php backend/combined/config.php.org
$ cp backend/combined/config.inc.php backend/combined/config.php
Permission
$ mkdir -p /var/lib/z-push/ /var/log/z-push/
-
Debian system
$ chown -R www-data:www-data /var/log/z-push/ /var/lib/z-push/
-
RedHat system
$ chown -R apache:apache /var/log/z-push/ /var/lib/z-push/
- Set TimeZone
- Configure the BackendIMAP settings section
- Configure the BackendCARDDAV setting section
- Configure the BackendCALDAV setting section
- This file allows you to enable GAL search support from your LDAP tree.
Using a browser, login to https://sogo.mydomain.com/Microsoft-Server-ActiveSync
You should see a webpage that says "Z-Push - Open Source ActiveSync" with the message "GET not supported."
If so, congratulations!
If not, please READ the wiki.
You can now configure your smartphone or tablet.
To update to the latest version:
$ cd /var/www/PHP-Push-2
$ git pull
- Fork it
- Create a branch (
git checkout -b my_markup
) - Commit your changes (
git commit -am "Added Snarkdown"
) - Push to the branch (
git push origin my_markup
) - Create an Issue with a link to your branch
- Or Send me a Pull Request