(Solved) roundcube error 500 - ISPconfig 3, nginx, Debian Wheezy

Discussion in 'ISPConfig 3 Priority Support' started by inside83, Jan 26, 2015.

  1. inside83

    inside83 Member

    Hello,

    I was following this tutorial: https://www.howtoforge.com/using-roundcube-webmail-with-ispconfig-3-on-debian-wheezy-nginx
    on how to enable Roundcube as a webmail client on ISPconfig and it was working fine (except Autoreply where there was error 500).
    Then I changed timezone in Debian:
    Code:
    dpkg-reconfigure tzdata
    and in ISPconfig:
    Code:
    /usr/local/ispconfig/interface/lib/config.inc.php
    /usr/local/ispconfig/server/lib/config.inc.php
    and changed default language of the roundcube in
    Code:
    /etc/roundcube/main.inc.php
    from:
    Code:
    $rcmail_config['language'] = 'ar_AR';
    to
    Code:
    $rcmail_config['language'] = 'en_US';
    Now I'm getting error 500 when going to mydomain.com/webmail. It changes to mydomain.com/roundcube, so that tells me nginx directives are working.

    When I put nginx directives for squirrelmail - squirrelmail works fine.

    For the past three hours I've tried re-installing Roundcube, a lot of different nginx directives, adding directives to another domain, reverting changes I made regarding timezone and language, going through /var/log/nginx and /var/lib/roundcube/logs - nothing helped :/
     
    Last edited: Jan 26, 2015
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the global nginx error.log and the php-fpm error.log.
     
  3. inside83

    inside83 Member

    @till
    /var/log/nginx/error.log - empty
    /var/log/php5-fmp.log - empty
    /var/log/php5-fmp.log - empty
    /var/log/nginx/error.log.1
    Code:
    2015/01/25 19:08:03 [emerg] 21753#0: unexpected "}" in /etc/nginx/sites-enabled/100-subdomain.mydomain.com.vhost:141
    2015/01/25 19:08:03 [emerg] 21754#0: unexpected "}" in /etc/nginx/sites-enabled/100-subdomain.mydomain.com.vhost:141
    2015/01/26 03:17:59 [error] 1752#0: *9 open() "/usr/local/ispconfig/interface/web/webmail" failed (2: No such file or directory), client: 188.124.211.148, server: _, request: "GET /webmail HTTP/1.1", host: "vps2.mydomain.com:8080", referrer: "https://vps2.mydomain.com:8080/"
    I replaced my actual domain.com with "mydomain.com"
    /var/log/roundcube/errors
    http://paste.ofcode.org/DSEpctnaY8sxV4AJAQDXV4
     
  4. inside83

    inside83 Member

    @till
    I've fixed it.
    It was a new line in
    that I mistakenly put while editing it. It was shown only in the error.log of the website in the log directory of the website.
    Thank you very much!
     
  5. inside83

    inside83 Member

    @till
    I still have trouble with Autoreply option in Rouncube.
    I get error 500.
    This is what I found in access.log:
    Code:
    my.IP.add.ress - - [09/Mar/2015:02:13:59 +0100] "GET /skins/default/images/listheader.gif HTTP/1.1" 200 322 "http://webmail.domain.com/skins/default/common.css?s=1382826518" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
    my.IP.add.ress - - [09/Mar/2015:02:13:59 +0100] "GET /skins/default/images/buttons/bg.gif HTTP/1.1" 200 197 "http://webmail.domain.com/skins/default/common.css?s=1382826518" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
    my.IP.add.ress - - [09/Mar/2015:02:13:59 +0100] "GET /plugins/jqueryui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png HTTP/1.1" 200 178 "http://webmail.domain.com/plugins/jqueryui/css/smoothness/jquery-ui.min.css?s=1340305464" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
    my.IP.add.ress - - [09/Mar/2015:02:13:59 +0100] "GET /plugins/jqueryui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png HTTP/1.1" 200 101 "http://webmail.domain.com/plugins/jqueryui/css/smoothness/jquery-ui.min.css?s=1340305464" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
    my.IP.add.ress - - [09/Mar/2015:02:14:01 +0100] "GET /?_task=settings&_action=plugin.ispconfig3_autoreply&_framed=1 HTTP/1.1" 500 1851 "http://webmail.domain.com/?_task=settings&_action=plugin.ispconfig3_account" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
    
    Or the long version: http://paste.ofcode.org/MMrZs9DtJpHLQdGkDsDUsg
    Please help.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the global apache / nginx error.log for errors.
     
  7. inside83

    inside83 Member

    Both
    /var/www/clients/client1/web8/log/error.log and
    /var/log/nginx/error.log
    Have no records of an event in that time.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you can take a look at the php-fpm log file.
     
  9. inside83

    inside83 Member

    /var/log/php5-fpm.log
    Has no entry in that time.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Hmm, ok. Maybe you can change the php.ini of php-fpm to show php errors instead of just logging them, then restart php-fpm and try again. This should sow you the error message in the browser.
     
  11. inside83

    inside83 Member

    Could you, please, write a location of the files you are mentioning?
    Because when you write stuff like "change php.ini of php-fmp" i have to google it to find out where is php.ini of php-fmp.
    Please...
    So this would be
    /etc/php5/fpm/php.ini
    display_errors = On
    ?
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    The php-fpm php.ini is in /etc/php7/fpm/ folder.
     
  13. inside83

    inside83 Member

    Its still the same :(
    2015-03-11 17_50_01-_etc_php5_fpm_php.ini .png
     
  14. inside83

    inside83 Member

    Solved!
    Thanks to newbie: https://www.howtoforge.com/using-ro...spconfig-3-on-debian-wheezy-apache2/#comments
     

Share This Page