Round Cube webmail with ISPConfig

Discussion in 'General' started by Hagforce, Mar 22, 2007.

  1. Hagforce

    Hagforce New Member

    Hello

    I`m running ISPConfig on my server.
    Some people have problems logging in to uebimiau at port 81.
    So I added webmail.domain.com in ISPConfig an put a Round Cube install there.
    I followed the install guide but all I get is a blanck page...

    Anyone got experiense in installing Round Cube on a ISPConfig installation?
     
  2. Hans

    Hans Moderator Moderator

  3. Hagforce

    Hagforce New Member

    Thank you Hans.

    But I don`t even get in to the login page.... I get nothing.

    The mysql database is working, and the tables is there.

    :confused:
     
  4. Hans

    Hans Moderator Moderator

    Check if there is still a .htaccess file within your RoundCube's webX/web

    It is not visible, so remove it with the command:

    rm .htaccess

    And try again to login.

    If you use the Maildir format, make sure it enabled on your server!
     
    Last edited: Mar 22, 2007
  5. Hagforce

    Hagforce New Member

    Nope, I deleted that one.

    I also tried to delete it all, and did it over again (including the sql db) but just the same.
     
  6. Hans

    Hans Moderator Moderator

    Did you enable php Safe mode for that web?
    If so, turn it off and try again...
     
  7. Hagforce

    Hagforce New Member

    Nope, sorry, php safe mode is off.
    Realy strange, I get nothing.
     
  8. Hans

    Hans Moderator Moderator

    If you still have a blank page carefully check you have entered the MySql username correctly in db.inc.php.
     
  9. Hagforce

    Hagforce New Member

    I got:

    Code:
    */
    
    mysql://roundcubeuser:hGhGGFD546311@localhost/roundcube
    
    // PEAR database DSN for read/write operations
    // format is db_provider://user:password@host/databse
    // currentyl suported db_providers: mysql, sqlite
    
    $rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
    // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';
    // sqlite example: 'sqlite://./sqlite.db?mode=0646';
    
    // PEAR database DSN for read only operations (if empty write database will be used)
    // useful for database replication
    $rcmail_config['db_dsnr'] = '';
    
    // database backend to use (only db or mdb2 are supported)
    $rcmail_config['db_backend'] = 'db';
    
    in my db.inc.php, and the mysql login is correct and tested from command line.
     
  10. Hans

    Hans Moderator Moderator

    I still see the default line, which is:

    $rcmail_config['db_dsnw'] = 'mysql://roundcube: pass@localhost/roundcubemail';

    You should change that into:

    $rcmail_config[’db_dsnw’]=’mysql:// web1_u1:mysqlpassword@localhost/web1_db1’;

    Explanation:
    "web1_u1" is the mysqluser for the website (in this example =web1).
    "mysqlpassword" is the password for mysql user web1_u1.
    "web1_db1" is the databasename for web1.

    All as defined within ISPConfig under the "Options" tab, where you can define the database for your website.
     
  11. Hagforce

    Hagforce New Member

    Thank you for your time Hans.

    That did the trick.
    I had missunderstod the install instructions :eek:
     
  12. Hans

    Hans Moderator Moderator

    Great :)

    Happy RoundCube!
     
  13. Hagforce

    Hagforce New Member

    This is a realy nice webmail program!
    All it needs is a calendar....

    Just one problem with my installation now, I can`t send attachments, it won`t send mails I add attachments to.

    Any ideas on this?
     
  14. edge

    edge Active Member Moderator

    Hagforce,

    Now you have roundcube up and running, could you please have a look at the "Folders" option in Roundcube? (It's in Personal settings > Folders)

    I've installed Roundcube on two servers (one with the "Hans" way, and one with the ISPconfig package way)

    Both version on both servers are showing more Foldernames than needed (have a look at the image)

    Does this also showup in your install?

    Problem (with my Roundcube installs) is that a user (admin or not) can delete folders that should really not be deleted!

    [​IMG]
     
  15. Hans

    Hans Moderator Moderator

    @Hagforce,

    Please have a look here:

    http://www.howtoforge.com/forums/
    showthread.php?t=9421&highlight=roundcube+attachment

    Also check the values of php_value "upload_max_filesize", "upload_max_filesize" within your php.ini file.

    Within your RoundCube web, RoundCube has its own logfiles.
    Do you see any errors there?

    @Edge,
    You can configure that within RoundCube's configuration file called main.inc.php

    Do not worry about deleted "default" folders. They are created automaticly again, when mail arrives. :)

    Within your main.inc.php have a look to these lines, in the last line you can set permissions for the default folders by using TRUE or FALSE:
    The first line defines the default path, folders from there are displayed. You should check that as well.


    // only list folders within this path
    $rcmail_config['imap_root'] = '';

    // store draft message is this mailbox
    // leave blank if draft messages should not be stored
    $rcmail_config['drafts_mbox'] = 'Drafts';

    // store spam messages in this mailbox
    $rcmail_config['junk_mbox'] = 'Junk';

    // store sent message is this mailbox
    // leave blank if sent messages should not be stored
    $rcmail_config['sent_mbox'] = 'Sent';

    // move messages to this folder when deleting them
    // leave blank if they should be deleted directly
    $rcmail_config['trash_mbox'] = 'Trash';

    // display these folders separately in the mailbox list.
    // these folders will automatically be created if they do not exist
    $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');

    // protect the default folders from renames, deletes, and subscription changes
    $rcmail_config['protect_default_folders'] = TRUE;
     
    Last edited: Mar 23, 2007
  16. edge

    edge Active Member Moderator

    Thank you Hans, but I can still delete stuff than is in folders like /web and /bin and /etc, and they do not get re-created when an email arrives!

    My $rcmail_config['protect_default_folders'] is set to TRUE (same problem when set to FALSE)

    Also.. How does your your $rcmail_config['imap_root'] look like?
     
  17. Hans

    Hans Moderator Moderator

    Hi Edge,

    The values are the same as shown above, so it is set to true.
    I've noticed that non-administrator-users can NOT change the default folders 'INBOX', 'Drafts', 'Sent', 'Junk', 'Trash',
    But if i wait for a while, they can. I do not know why this happens, but i do not worry because if they delete those folders, they are created again by RoundCube.

    If i was you, try to find out, why you have so many folders.
    At the moment i am quiet busy, but i try to help you with finding a solution soon.
     
  18. edge

    edge Active Member Moderator

    Okay.. I think I found the problem

    Lets say we have a user: web42_demo (not an admin account!)

    As test I have set in main.inc.php:

    $rcmail_config['imap_root'] = 'webmail';
    (note webmail can be any name)

    Now Roundcube will create the following folder:
    "/var/www/web_42/user/web42_demo/webmail"

    Within the /webmail folder 4 files are created (as it should).
    Drafts
    Junk
    Sent
    Trash

    If I leave "$rcmail_config['imap_root'] = '';" empty
    The 4 files are created in "/var/www/web_42/user/web42_demo/"
    In "/var/www/web_42/user/web42_demo/" there are allready (a lot of) files and folders, and when requesting the "Foldes" option within Roundcube, they are listed aswell.

    When I use an admin account to login with $rcmail_config['imap_root'] = 'webmail'; set, I still see all the files/folders!

    I'll be doing some more testing later today
     
    Last edited: Mar 23, 2007
  19. Hagforce

    Hagforce New Member

    Another Round Cube question....

    How do I change the charset for one language?

    In index.inc in locallization there is this field, but how is it used?

    $rcube_charsets = array(

    );
     
  20. Hagforce

    Hagforce New Member

    And how do I enable users to login with their e-mail address also?
    (that`s what theyre used to in uebimiau)
     

Share This Page