From Zarafa wiki

Revision as of 19:26, 16 November 2010 by Sebastian (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article is a community contribution and may include unsupported configurations.

Zarafa and Z-Push are both "desgined" to run under Apache, but it doesn't need much to use Lighttpd.

If you have lighttpd with working php and zarafa-server already installed all you need todo is:


edit /etc/php5/cgi/php.ini and set register_globals = Off

let your default php conf.d folder know the file /etc/php5/apache2/conf.d/zarafa.ini; copy or link the file to /etc/php5/cgi/conf.d/


create the file /path/to/z-push/lighttpd-func.php and insert:

 if (!function_exists("apache_request_headers")) {
   function apache_request_headers() {
     $headers = array();
     foreach ($_SERVER as $key => $value) {
       if (substr($key, 0, 5) != 'HTTP_') {
       $headername = strtr(ucwords(strtolower(
            strtr(substr($key, 5), '_', ' '))), ' ', '-');
       $headers[$headername] = $value;
     return $headers;

patch /path/to/z-push/index.php by adding the line include_once("lighttpd-func.php");


edit lighttpd.conf and add something like this:

 alias.url = ( "/webaccess" => "/usr/share/zarafa-webaccess/" )
 alias.url += ( "/Microsoft-Server-ActiveSync" => "/path/to/z-push/index.php" )

Nokias Mail for Exchange

This might be enough. In my case it wasn't. My Nokia 5800's sync software (Mail for Exchange) send a 'Expect: 100-Continue' header what Lighttpd 1.4 answer with 'HTTP Error 417' per default, 1.5 don't do so. You can change this behaviour by adding server.reject-expect-100-with-417 = "disable" to your lighttpd.conf, but note this variable was introduce with version 1.4.21. Debian lenny use the old 1.4.19.


Personal tools