Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Mobile sync on cPanel server Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Dima
Newbie
Newbie


Joined: 27 March 2014
Location: Finland
Online Status: Offline
Posts: 14
Posted: 27 March 2014 at 5:04am | IP Logged Quote Dima

Hi all,
I just installed Webmail pro trial, all works except mobile sync.
I got "Server couldn't be reached" at my phone.
I tried to check server url from web browser, it asks username and password, when I enter it, it asks again and again.
In doc I found suggestion to add following:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>

I added this into .htaccess and now it accepts username and password, but as result I have following message in browser:
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotImplemented</s:exception>
<s:message>GET is only implemented on File objects</s:message>
<s:sabredav-version>1.8.6</s:sabredav-version>
</d:error>

Can anyone help me with settings, preferably without global setup, is it possible to setup sync via .htaccess?
Back to Top View Dima's Profile Search for other posts by Dima
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6088
Posted: 27 March 2014 at 5:13am | IP Logged Quote Igor

Just wanted to add that if anyone is aware of methods which allow to configure DAV setup in terms of cPanel, please let us know. We could really use information of such kind, and in return we're willing to offer a discount for purchasing a license.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Dima
Newbie
Newbie


Joined: 27 March 2014
Location: Finland
Online Status: Offline
Posts: 14
Posted: 27 March 2014 at 9:42am | IP Logged Quote Dima

At least I got sync work with my MacBook via DAV server, it synchronise calendar and contacts fine.
Back to Top View Dima's Profile Search for other posts by Dima
 
aplitec
Newbie
Newbie


Joined: 27 March 2014
Online Status: Offline
Posts: 7
Posted: 27 March 2014 at 10:12am | IP Logged Quote aplitec

Hi Dilma,

Can you please post here the steps to setup it ?

Thanks

Josep
Back to Top View aplitec's Profile Search for other posts by aplitec
 
Dima
Newbie
Newbie


Joined: 27 March 2014
Location: Finland
Online Status: Offline
Posts: 14
Posted: 27 March 2014 at 11:03am | IP Logged Quote Dima

Progress update:
Finished testing on Android, sync works fine and in both ways!
Now it works on Android and Apple laptop.

At Apple laptop, DAV Server url goes without 'http://' and without '/dav.php'
I don't have iPhone and can't test it now, need to find iPhone.
Tried Windows phone, no success yet, there is application for dav sync, I am trying to find guy who made this app, looks like problem in his app.


aplitec, I noticed only two corrections
1. In .htaccess I added following:
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    </IfModule>
2. file data/settings/config.php
added line in array
'labs.dav.use-browser-plugin' => true,
Back to Top View Dima's Profile Search for other posts by Dima
 
aplitec
Newbie
Newbie


Joined: 27 March 2014
Online Status: Offline
Posts: 7
Posted: 28 March 2014 at 8:53am | IP Logged Quote aplitec

Hi Dima,

thanks for sharing.
I made your changes and doesn't work for me.

Can you post the correct URL to sync ?
Or better. Can you post all the steps you made to sucessfully sync in Android ?
I have an iPhone to test too.

Thanks

Josep
Back to Top View aplitec's Profile Search for other posts by aplitec
 
aplitec
Newbie
Newbie


Joined: 27 March 2014
Online Status: Offline
Posts: 7
Posted: 01 April 2014 at 2:35am | IP Logged Quote aplitec

Hi Igor,

do you know how to apply the changes that Dima wrote ?
and what is the sync URL ?
can you make tests ?


Josep

Back to Top View aplitec's Profile Search for other posts by aplitec
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6088
Posted: 01 April 2014 at 2:49am | IP Logged Quote Igor

If I got this correctly, Dima has supplied those settings in .htaccess file placed under WebMail Pro directory. Typical sync URL looks like http://domain.com/webmail/dav.php/ - but honestly, I don't have any idea if it's going to work for cPanel. We plan to run tests on cPanel install provided to us by one of the customers, no ETA on this though.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Dima
Newbie
Newbie


Joined: 27 March 2014
Location: Finland
Online Status: Offline
Posts: 14
Posted: 01 April 2014 at 3:11am | IP Logged Quote Dima

Hi all, sorry I was busy that days.
Aplitec, as Igor mentioned I corrected .htaccess file, and data/settings/config.php file, you can see that changes in my post above.

In wabmail root folder you should edit or create .htaccess file and add following:
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    </IfModule>

Also in file data/settings/config.php
add line in array
'labs.dav.use-browser-plugin' => true, (check that comma properly plased)

It works fine with Android, you just need to setup davsync apps for calendar and contacts to your Android device, I don't remember names right now, I just took it from top in Android market. If you need names, let me know, I'll check it when I be home.
With Apple laptop it works fine as well, nothing special there, just setup accounts in Address book and Calendar.
It tried iPhone from shop, no success, but I didn't have enough time to play with it.

Aplitec, if you have more specific questions please let me know.


Igor, I can give you access to my test installation if you need it for investigation.
Back to Top View Dima's Profile Search for other posts by Dima
 
aplitec
Newbie
Newbie


Joined: 27 March 2014
Online Status: Offline
Posts: 7
Posted: 02 April 2014 at 12:11am | IP Logged Quote aplitec

Hi,

I already did the changes in the Webmail Pro folder, but is not working.
What is the URL ?
Putting https://www.mydomain.com:2096/cpsess1541930379/3rdparty/afterlogic/dav.php in a browser asks the user and password again and again.
Moreover this is a dinamic URL and can't use it.

Thanks

Josep
Back to Top View aplitec's Profile Search for other posts by aplitec
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6088
Posted: 02 April 2014 at 1:59am | IP Logged Quote Igor

I have a question for Dima as well: did you actually use cPanel installer for WebMail Pro, or you have set up regular package under specific domain?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Dima
Newbie
Newbie


Joined: 27 March 2014
Location: Finland
Online Status: Offline
Posts: 14
Posted: 03 April 2014 at 1:48am | IP Logged Quote Dima

Hi, I used regular package under subdomain, I can't install trial under cpanel I'll do it if I buy full license.

aplitec, did you added into config.php
'labs.dav.use-browser-plugin' => true, (check that comma properly plased) ? That fixed problem with password request loop for me.
Back to Top View Dima's Profile Search for other posts by Dima
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6088
Posted: 03 April 2014 at 2:06am | IP Logged Quote Igor

Quote:
Hi, I used regular package under subdomain, I can't install trial under cpanel I'll do it if I buy full license.


Actually, that shouldn't make any difference for installing under cPanel. Trial and licensed product is the same package, only license key is different, so you can install in trial mode and then replace a key upon purchasing a license.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Dima
Newbie
Newbie


Joined: 27 March 2014
Location: Finland
Online Status: Offline
Posts: 14
Posted: 03 April 2014 at 2:20am | IP Logged Quote Dima

Igor wrote:

Actually, that shouldn't make any difference for installing under cPanel. Trial and licensed product is the same package, only license key is different, so you can install in trial mode and then replace a key upon purchasing a license.

--
Regards,
Igor, AfterLogic Support

Technically yes, but this production environment and my customers currently use Webmail lite, I can't replace it before I made final decision to buy it. I am not sure yet, does it make sense to upgrade lite.
Back to Top View Dima's Profile Search for other posts by Dima
 
aplitec
Newbie
Newbie


Joined: 27 March 2014
Online Status: Offline
Posts: 7
Posted: 03 April 2014 at 5:53am | IP Logged Quote aplitec

Hi,

Dima, What URL are you using ?

Here are my config.php:
Code:

<?php

$aSieveDomains = array('imap.domain1.com', 'imap.domain2.com');

return array(

        'sieve' => false,
        'sieve.autoresponder' => true,
        'sieve.forward' => true,
        'sieve.filters' => true,
        'sieve.config.host' => '',
        'sieve.config.port' => 2000,
        'sieve.config.filters-folder-charset' => 'utf-8', // [utf7-imap, utf-8]
        'sieve.config.domains' => $aSieveDomains,
        'labs.dav.use-browser-plugin' => true,

);


and .htaccess
Code:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>


I used the cPanel installer.

Josep
Back to Top View aplitec's Profile Search for other posts by aplitec
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide