RoundCube Generates 500 Internal Server Error

Discussion in 'HOWTO-Related Questions' started by botxo, Mar 16, 2017.

  1. botxo

    botxo New Member

    Hi all,

    I had faced with an issue similar to this a few month ago.

    https://www.howtoforge.com/community/threads/problem-loging-into-roundcube.75070/

    Finally I get to solve this(I'm not sure if was the best solution) But I got it working. Since I solved this, I have faced this 500 internal server problem.

    I have no idea why it happen neither how to solve it.

    When it occurs
    :
    It happen in the roundCube web app when:
    - I do a click bait(too much continuous clicks) in the links of the app or the mails.
    - Sometimes when I delete the mails(sometimes I can't and other times yes, but after a few deletions it happens).
    - When I delete the emails also sometimes appear a roundcube error message about forbidden.
    Additional Info:
    When RoundCube generates the error it also happen on ISPconfig but not in the websites hosted on it.
    I run RoundCube on SSL and in the ISPConfig port(If not it doesn't work - blank page).
    The 500 Internal error it's solved by itself in a unknown lapse of time or by restarting httpd service.
    During the error the favicon changes from roundcube to ispConfig.
    Log Info:
    In "/var/log/roundcubemail/errors"
    Code:
    [date timezone] PHP Notice:  No suitable function found for UTF-8 encoding in /usr/share/roundcubemail/program/lib/Roundcube/rcube_charset.php on line 276
    
    In '/var/log/httpd/modsec_audit.log'
    Code:
    --03cec826-A--
    [16/Mar/2017:22:25:18 +0100] WMsCvt808feb5o-VBnp4NgAAAAE MyIp 43304 ServerIp ISPPort
    --03cec826-B--
    GET /webmail/?_task=mail&_caps=pdf%3D1%2Cflash%3D1%2Ctif%3D0&_uid=28&_mbox=INBOX&_action=show HTTP/1.1
    Host: myweb.es:ISPport
    User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Referer: https://myweb.es:ISPport/webmail/?_task=mail&_caps=pdf%3D1%2Cflash%3D1%2Ctif%3D0&_uid=29&_mbox=INBOX&_action=show
    Cookie: _coockie
    Connection: keep-alive
    Cache-Control: max-age=0
    
    --03cec826-F--
    HTTP/1.1 403 Forbidden
    Strict-Transport-Security: max-age=15768000
    Content-Length: 210
    Keep-Alive: timeout=5, max=87
    Connection: Keep-Alive
    Content-Type: text/html; charset=iso-8859-1
    
    --03cec826-H--
    Apache-Error: [file "mod_evasive24.c"] [line 248] [level 3] client denied by server configuration: %s
    Stopwatch: 1489699518044994 544 (- - -)
    Stopwatch2: 1489699518044994 544; combined=6, p1=0, p2=0, p3=0, p4=0, p5=6, sr=0, sw=0, l=0, gc=0
    Producer: ModSecurity for Apache/2.7.3 (http://www.modsecurity.org/).
    Server: Apache
    
    --03cec826-Z--
    
    --33251f4f-H--
    Apache-Error: [file "mod_autoindex.c"] [line 2318] [level 3] AH01276: Cannot serve directory %s: No matching DirectoryIndex (%s) found, and server-generated directory index forbidden by Options directive
    Stopwatch: 1489699802191431 1609 (- - -)
    Stopwatch2: 1489699802191431 1609; combined=19, p1=4, p2=13, p3=0, p4=0, p5=2, sr=0, sw=0, l=0, gc=0
    Producer: ModSecurity for Apache/2.7.3 (http://www.modsecurity.org/).
    Server: Apache
    Engine-Mode: "ENABLED"
    
    --33251f4f-Z--
    
    --aba68408-A--
    [16/Mar/2017:22:26:01 +0100] WMsC6XQH6zyxh45hn0goZQAAAAg ::1 34922 ::1 80
    --aba68408-B--
    GET / HTTP/1.1
    Host: localhost
    User-Agent: Mozilla/5.0 (ISPConfig monitor)
    Accept: application/xml,application/xhtml+xml,text/html
    Connection: Close
    
    --aba68408-F--
    In '/var/log/httpd/error_log'
    Code:
    [date] [autoindex:error] [pid 17146] [client ::1:35782] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
    
    [date] [:error] [pid 22870] [client meIp:43563] client denied by server configuration: /usr/share/roundcubemail/
    
    [date] [:error] [pid 22870] [client meI:43563] client denied by server configuration: /usr/share/roundcubemail/, referer: https://myweb.es:ISPPort/webmail/?_task=mail&_mbox=INBOX
    
    Not sure about this one
    
    [date] [pagespeed:error] [pid 22870] [mod_pagespeed 1.11.33.4-0 @22870] Slow ReadFile operation on file /var/cache/mod_pagespeed/v3/myweb.es/https,3A/,2Fwww.myweb.es/img/image.svg,: 165.638ms; configure SlowFileLatencyUs to change threshold\n
    
    Thanks and greeting all.
     
    Last edited: Mar 17, 2017
  2. botxo

    botxo New Member

    No idea how to solve? any other log I may offer to receive help?
    Thanks.
     
  3. Hi,
    Do you use SuExec or suPHP? Try to check the logs for the same? If so, please disable it/use another PHP mode?
     
  4. botxo

    botxo New Member

    Hello,
    ModPhp is used on the websites. Anyways I only can access over the ispconfig port, so I suppose That it using the same technology than ISPConfig manager.

    Thanks and greetings.
     

Share This Page