[sync] Activesync with NGINX and PHP7.1: error 500

Andreas Schneider as at schneider-pc.ch
Thu Dec 21 07:41:17 UTC 2017


  ----- Nachricht von Alex <alex9434 at gmail.com> ---------
  Datum: Thu, 21 Dec 2017 15:33:20 +0800
    Von: Alex <alex9434 at gmail.com>
Betreff: Re: [sync] Activesync with NGINX and PHP7.1: error 500
     An: as at it64.ch

> On Mon, Dec 18, 2017 at 6:17 PM, Andreas Schneider <as at it64.ch> wrote:
>
>> _----- Nachricht von Alex <alex9434 at gmail.com> ---------
>>   Datum: Sun, 17 Dec 2017 13:54:35 +0800
>>     Von: Alex <alex9434 at gmail.com>
>> Betreff: Re: [sync] Activesync with NGINX and PHP7.1: error 500
>>      An: sync at lists.horde.org_
>>
>>> _On Sun, Dec 17, 2017 at 11:21 AM, Alex <alex9434 at gmail.com> wrote:_
>>>
>>>> _Hello. I cannot get NGINX and PHP7.1 to work with activesync (everything
>>>> else is working with horde). Here is the relevant part from my  
>>>> NGINX config:
>>>>
>>>> location /Microsoft-Server-ActiveSync {
>>>>     alias /usr/local/share/horde/rpc.php;
>>>>     fastcgi_split_path_info ^(.+\.php)(/.+)$;
>>>>     fastcgi_param SERVER_NAME $host;
>>>>     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
>>>>     fastcgi_pass unix:/var/run/php/php7.1-fpm.sock[1];
>>>> }
>>>>
>>>> When I open the page  
>>>> "mydomain.tld/Microsoft-Server-ActiveSync[2]" I get the
>>>> message:
>>>> "Trying to access the ActiveSync endpoint from a browser. Not Supported."
>>>>
>>>> So something seems to be working. However I cannot connect with my phone
>>>> (android and iphone). The ActiveSync tester gives the following message:
>>>> "Failed to detect ActiveSync [HTTP Status: 500]"
>>>>
>>>> Does anybody have an idea? Please help!_
>>>
>>> _I also tried the example on  
>>> https://wiki.horde.org/webserver/nginx?version=3.
>>> Unfortunately that did not work either. Any idea how to debug and  
>>> get amore meaningful error message?_
>>
>>  
>>
>> _----- Ende der Nachricht von Alex <alex9434 at gmail.com> -----
>>
>> Hi Alex
>>
>> For nginx debug show here  
>> https://www.digitalocean.com/community/questions/how-to-fix-an-unknown-internal-server-error-500-nginx-is-giving-me
>>
>> Or show my config .. https://web-horde.org/w/marc.info/?l=horde-sync&r=1&w=2
>>
>> Good Luck_
>>
>>  
>
>      _Thank you for your reply. However both tipps unfortunately did  
> not help. Your nginx config that you mentioned in the post is  
> largely identical to the configuration from the horde wiki that I  
> have already  
> tried: https://wiki.horde.org/webserver/nginx?version=3. To be  
> double sure, i tested your EXACT config but still got the same  
> issue. I assume the error is more related to PHP 7.1 than to NGINX  
> because everything seems to work on PHP 5.6. Are you still on PHP  
> 5.6?_
>       
>      _Unfortunately the tipp from the first post also did not help.  
> When I add the statement fastcgi_intercept_errors    on; to the  
> NGINX config, the error log still remains empty._
>       
>      _Any other ideas how I can remove or at least debug the issue?_

_----- Ende der Nachricht von Alex <alex9434 at gmail.com> -----_

Yes im on 5.6


Links:
------
[1]
[2] http://mydomain.tld/Microsoft-Server-ActiveSync


More information about the sync mailing list