Koozali.org: home of the SME Server

Z-push su Sme 8 + SOGo

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Z-push su Sme 8 + SOGo
« on: February 13, 2013, 05:54:56 PM »
X nicolatiana :

Ho installato git e poi z-push da git e sono arrivato al passo che sul file INSTALL dice di creare l'alias nel file httpd.conf , ma sono riuscito solo a non far più avviare sme , in quale parte del file httpd.conf devo mettere il comando?
« Last Edit: February 13, 2013, 05:58:24 PM by dudi75 »

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #1 on: February 14, 2013, 06:04:27 PM »
Andando avanti ho trovato un topic che suggeriva di usare un ibay per lanciare z-push ma non c'era scritto come finiva .
Quindi ho fatto un ibay chiamato "activesync" e poi ho copiato dentro la dir html/ il contenuto della cartella di z-push.
Da browser adesso mi restituisce questo errore :
Z-Push
The configured LOGFILEDIR does not exist or can not be accessed.

idee?

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #2 on: February 15, 2013, 08:48:08 AM »
Poi siccome da un ibay non riesco ad accedere alla dir dei log ho provato con il contrib per installare una webapp . Che dite può essere una strada ? Se sto facendo o dicendo delle castronerie invito chiunque a fermarmi , grazie  :smile: .

Offline nicolatiana

  • *
  • 722
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #3 on: February 18, 2013, 08:36:21 AM »
Appena ho un attimo di tempo rimonto il disco dove avevo fatto le prove e ti faccio sapere.
 
Nicola
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #4 on: February 18, 2013, 11:13:51 AM »
Nel frattempo provo anche le istruzioni per installare z-push che ho trovato sul contrib di Zarafa per capire se posso adattarle a sogo .

Offline nicolatiana

  • *
  • 722
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #5 on: February 19, 2013, 09:50:07 PM »
Oltre a quanto descritto qui: https://github.com/xbgmsharp/sogosync
 
I file sono stati installati qui:
 
Quote
/home/e-smith/files/ibays/Primary/html/sogosync

Dentro il file config.php nella cartella di cui sopra, trovare la sezione seguente per impostare le cartelle di log e dei backend (per un server di IP 192.168.0.15):
 
Quote
*  Default settings
 */
    // Defines the default time zone, change e.g. to "Europe/London" if necessary
    define('TIMEZONE', 'Europe/Rome');
 
..........................
 
 /**********************************************************************************
 *  Default FileStateMachine settings
 */
    define('STATE_DIR', '/var/lib/z-push/');

/**********************************************************************************
 *  Logging settings
 */
    define('LOGFILEDIR', '/var/log/z-push/');
    define('LOGFILE', LOGFILEDIR . 'z-push.log');
    define('LOGERRORFILE', LOGFILEDIR . 'z-push-error.log');
    define('LOGLEVEL', LOGLEVEL_DEBUG);
    define('LOGAUTHFAIL', false);
 
...........................
 
 // ************************
    //  BackendIMAP settings
    // ************************
    // Defines the server to which we want to connect
    define('IMAP_SERVER', '192.168.0.15');
 
...........................
 
  // ******************************
        // BackendCalDAV settings
        // ******************************
        // %u is replaced by the username
        // Using HTTPS URL is recommended
        define('CALDAV_SERVER', 'https://192.168.0.15');
        define('CALDAV_PATH', '/SOGo/dav/%u/');
        define('CALDAV_PERSONAL', 'personal');
        define('CALDAV_URL', 'https://192.168.0.15/SOGo/dav/%u/');
        // Will ignore any change made on the mobile (true|false)
        define('CALDAV_READONLY', false);
        // ******************************
        // BackendCalDAV settings
        // ******************************
        // %u is replaced by the username
        // Using HTTPS is recommended
        define('CARDDAV_PERSONAL', 'personal');
        define('CARDDAV_URL', 'https://192.168.0.15/SOGo/dav/%u/Contacts/');
        // Will ignore any change made on the mobile (true|false)
        define('CARDDAV_READONLY', false);
.............................

Creare la cartella:
 
Quote
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

dentro creare un file nominandolo 99AliasSogosync e inserire nel file la seguente istruzione:

Quote
Alias /Microsoft-Server-ActiveSync /home/e-smith/files/ibays/Primary/html/sogosync/index.php

Creare la cartella:
 
Quote
/etc/e-smith/templates-custom/etc/php.ini

dentro creare un file nominandolo 35zpush e inserire nel file le seguenti istruzioni:

Quote
php_flag magic_quotes_gpc = off
php_flag register_globals = off
php_flag magic_quotes_runtime = off
php_flag short_open_tag = on

quindi:
 
Quote
expand-template /etc/httpd/conf/httpd.conf
expand-template /etc/php.ini

Quote
db accounts setprop Primary PHPBaseDir '/home/e-smith/files/ibays/Primary/:/usr/share/awl/'
signal-event remoteaccess-update
/etc/init.d/httpd-e-smith restart

Mi pare che questi fossero tutti i passi indispensabili per fare funzionare la baracca.

Prova un po' a vedere se funziona tutto testando su https://192.168.0.15/Microsoft-Server-ActiveSync (ovviamente metti il tuo ip).

Dai le credenziali di un utente di SME e dovresti ottenere:

Quote
Z-Push - Open Source ActiveSync Version SVN checkout

GET not supported This is the Z-Push location and can only be accessed by Microsoft ActiveSync-capable devices

More information about Z-Push can be found at:
Z-Push homepage
Z-Push download page at BerliOS
Z-Push Bugtracker and Roadmap

All modifications to this sourcecode must be published and returned to the community.
Please see AGPLv3 License for details.

A questo punto passa a fare i test con un opportuno palmare M$-Like, cosa che io non ho potuto fare non avendo ordigni di quel tipo.

Nicola
« Last Edit: February 19, 2013, 10:09:46 PM by nicolatiana »
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #6 on: February 27, 2013, 04:38:44 PM »
Grazie Nick !!!!
Appena posso provo subito.

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #7 on: March 21, 2013, 11:57:40 AM »
Scusa Nicola ma questo :

 // ******************************
        // BackendCalDAV settings
        // ******************************
        // %u is replaced by the username
        // Using HTTPS URL is recommended
        define('CALDAV_SERVER', 'https://192.168.0.15');
        define('CALDAV_PATH', '/SOGo/dav/%u/');
        define('CALDAV_PERSONAL', 'personal');
        define('CALDAV_URL', 'https://192.168.0.15/SOGo/dav/%u/');
        // Will ignore any change made on the mobile (true|false)
        define('CALDAV_READONLY', false);
        // ******************************
        // BackendCalDAV settings
        // ******************************
        // %u is replaced by the username
        // Using HTTPS is recommended
        define('CARDDAV_PERSONAL', 'personal');
        define('CARDDAV_URL', 'https://192.168.0.15/SOGo/dav/%u/Contacts/');
        // Will ignore any change made on the mobile (true|false)
        define('CARDDAV_READONLY', false);
.............................

nel file conf.php non c'è , lo aggiungo?

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #8 on: March 21, 2013, 12:18:16 PM »
Ho risolto , non seguivo bene le istruzioni nel git. Ora all'indirizzo web la pagina internet mi mostra :

Z-Push - Open Source ActiveSync
Version SVN checkout
FatalMisconfigurationException

The configured LOGFILEDIR does not exist or can not be accessed.

Trace:
Array
(
   
  • => Array

        (
            [file] => /home/e-smith/files/ibays/Primary/html/sogosync/index.php
            [line] => 126
            [function] => CheckConfig
            [class] => ZPush
            [type] => ::
            [args] => Array
                (
                )

        )

)




More information about Z-Push can be found at:
Z-Push homepage
Z-Push download page at BerliOS
Z-Push Bugtracker and Roadmap

All modifications to this sourcecode must be published and returned to the community.
Please see AGPLv3 License for details.

e non mi chiede nome utente e password.

Offline nicolatiana

  • *
  • 722
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #9 on: March 21, 2013, 12:20:46 PM »
Crea le cartelle di log:
 
Quote
define('LOGFILEDIR', '/var/log/z-push/');
    define('LOGFILE', LOGFILEDIR . 'z-push.log');
    define('LOGERRORFILE', LOGFILEDIR . 'z-push-error.log');

Oppure se ci sono controlla i permessi

Nicola
 
 
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #10 on: March 21, 2013, 12:35:36 PM »
Le cartelle /var/log/z-push/ e /var/lib/z-push/ ci sono e come permessi hanno www : www . Devo creare dentro anche i file z-push.log e z-push-error.log ?

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #11 on: March 21, 2013, 12:38:36 PM »
Scusa i permessi in dettaglio sono :

drwxr-xr-x  www per /var/log/z-push/ e /var/lib/z-push/

Offline nicolatiana

  • *
  • 722
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #12 on: March 21, 2013, 01:14:11 PM »
Da me i prermessi della cartella sono rwxrwxrwx; proprietario e gruppo corretti www
 
Nicola
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline Stefano

  • *
  • 10,850
  • +2/-0
Re: Z-push su Sme 8 + SOGo
« Reply #13 on: March 21, 2013, 02:29:48 PM »
Da me i prermessi della cartella sono rwxrwxrwx; proprietario e gruppo corretti www
 
Nicola

quindi 777?
M A L E

755 dovrebbe essere sufficiente

Offline FrancescoC

  • ****
  • 226
  • +0/-0
Re: Z-push su Sme 8 + SOGo
« Reply #14 on: March 21, 2013, 04:04:09 PM »
Non mi funziona con nessuno dei due . Dovrò riprovare tutto da capo ?  :sad: