Roundcube issue redirect

Discussion in 'Installation/Configuration' started by trexen, Jan 9, 2012.

  1. trexen

    trexen Member

    Hi,

    Got tha latest ISPC and i change from Squirrelmail to roundcube, but when i create a new site and the try to connect to www.customersdomain.com/webmail i get "ERROR 500 - Internal Server Error!"

    is there any solution that i can do so all site a add get a rewrite or what it called and have /webmail after there domain.com ?



    Another question:
    is there any tutorial ore best practce to migrate from ISPC v2 to v3
    i got lost of Joomla installations and wordpress.

    Regards
    Marcus
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the error.log of the affeted website and post the exact error message from there.
     
  3. cbj4074

    cbj4074 Member

    Please tail your Apache log for the site in question, e.g.:

    and see what message is logged when you navigate to the webmail URL and post the contents here.

    Yes. You can add something like the following to /etc/apache2/httpd.conf:

    (comment-out the rewrite rules if you don't have SSL enabled on the domain)

    Code:
    Alias /webmail /usr/share/roundcube
    <Location /webmail>
    Order allow,deny
    allow from all
    # Require SSL for Webmail.
    RewriteCond %{HTTPS} !=on
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
    <IfModule suphp_module>
      suPHP_Engine Off
      AddHandler php5-script	.php
    </IfModule>
    php_admin_value open_basedir "/usr/share/php:/etc/roundcube/:/usr/share/roundcube:/var/log/roundcube:/var/lib/roundcube"
    </Location>
    
    Have you searched these forums, or the Web in general yet?
     
  4. trexen

    trexen Member

    Sorry for waisting your time, i was playing whit "http://bugs.web-wack.at/projects/isp3-roundcube/documents" to get the plugins working.

    no luck

    I installed the roundcube under /var/www/webmail directly acording to a howto om howtoforge and not under /usr/share/roundcube

    i dont user https://

    the /etc/apache2/httpd.conf code wont work in my case, should i reinstall roundcube and get it correct installed?
    I only got 1 user in the new system and its ok.

    thanks
     
  5. cbj4074

    cbj4074 Member

    That's okay, it's not a waste of anyone's time.

    I wouldn't bother with the Roundcube plug-in for ISPConfig until you have Roundcube working on its own.

    It's okay if you installed Roundcube to a different location. You just need to modify the paths in your Apache configuration accordingly.

    However, I recommend that you remove Roundcube from /var/www/webmail and instead use your operating system's package manager to install Roundcube. If you are using Debian (includes Ubuntu), you would simply run the following command:

    Code:
    apt-get install roundcube
    
    The primary reason I suggest this is that I don't know which directories to tell you to add to PHP's open_basedir directive in the Apache configuration. If you use the package manager to install Roundcube, you should be able to cut-and-paste from the configuration I've provided.

    If you don't use SSL on your server, you should. Even if you use a self-signed certificate, that is much better than no certificate at all.

    If you can't or won't for whatever reason, then simply remove those lines from the configuration:

    Code:
    Alias /webmail /var/www/webmail
    <Location /webmail>
    Order allow,deny
    allow from all
    <IfModule suphp_module>
      suPHP_Engine Off
      AddHandler php5-script	.php
    </IfModule>
    php_admin_value open_basedir "/usr/share/php:/etc/roundcube/:/var/www/roundcube:/var/log/roundcube:/var/lib/roundcube"
    </Location>
    
     

Share This Page