DirectAdmin Forums

Go Back   DirectAdmin Forums > Modifications / Add-ons > How-To Guides

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2005, 05:27 PM
vandal vandal is offline
Verified User
 
Join Date: Oct 2003
Location: Calgary, AB
Posts: 696
How to install Roundcubemail (webmail alternative)

WARNING: This application is ALPHA software. Use at your own risk

I found roundcube mail while searching projects on freshmeat. Already in Alpha stage is runs very nice, has a great template system and uses xhtml/css 2 (although the xhtml could be strict and much better) the default template is great. It currently lacks a search but that is coming in the future.

http://www.roundcube.net/

So lets get started.
=============================

1) Create a mysql db via direct admin. I called mine admin_webmail (you should all know how to do this!)

2) Download and unpack the package:
Code:
 

cd /var/www/html

wget http://easynews.dl.sourceforge.net/s...0051007.tar.gz

tar xvfz roundcube_webmail_0.1-20051007.tar.gz
3) Ensure proper permissions of the folders:

Code:
chown -R root.root roundcubemail

cd roundcubemail

chown -R apache logs temp
4) Import their SQL file:

Code:
cd SQL

//replace the following with the database username and password you created in step 1

mysql -u admin_webmail -p
Enter Password: *******
Once in, import their SQL file:
Code:
use admin_webmail

SOURCE mysql.initial.sql
now the import should be complete.

5) Setup db config variables

Code:
cd ../config/

nano db.inc.php
all you have to do here is change the "$rcmail_config['db_dsnw'] = " config information, mine looks like this:

Code:
$rcmail_config['db_dsnw'] = 'mysql://admin_webmail:myPasswordHere@localhost/admin_webmail';
the format is: mysql://<database user>:<password>@host/database_name

save that file and close it.

6) Setup the application config:

Code:
nano main.inc.php
find this line:

Code:
$rcmail_config['enable_caching'] = TRUE;
Replace with:

Code:
$rcmail_config['enable_caching'] = FALSE;
next find:

Code:
$rcmail_config['default_host'] = '';
replace with:

Code:
$rcmail_config['default_host'] = 'localhost';
7) *optional* you may want to setup an apache alias, you can overwrite your current webmail one with the following:

Edit httpd.conf:

Code:
nano /etc/httpd/conf/httpd.conf
Find this line:

Code:
Alias /webmail /var/www/html/webmail/
Replace with:

Code:
Alias /webmail /var/www/html/roundcubemail/
then restart apache
Code:
/usr/sbin/service httpd restart
You are done!

Login @ http://www.domain.com/webmail/


Questions, Comments, Typos, Suggestions, Praise post here please and I will update this main thread.

Thanks,

Justin
Reply With Quote
  #2  
Old 10-10-2005, 03:50 PM
vandal vandal is offline
Verified User
 
Join Date: Oct 2003
Location: Calgary, AB
Posts: 696
Anyone else try this out yet? Would love to hear some feedback or thoughts.

Justin
Reply With Quote
  #3  
Old 10-11-2005, 04:08 AM
getUP getUP is offline
Verified User
 
Join Date: Sep 2005
Posts: 296
Looks pretty good. We'll set it up asap.

Straight forward howto. Everyone should be able to get this running smoothly. I don't see any hard bits
Reply With Quote
  #4  
Old 10-16-2005, 08:22 AM
ViAdCk ViAdCk is offline
Verified User
 
Join Date: Feb 2005
Posts: 39
Works a charm. Thanks for the how-to
Reply With Quote
  #5  
Old 10-27-2005, 07:24 AM
sander815 sander815 is offline
Verified User
 
Join Date: Jul 2003
Posts: 474
is there a way you can add this to the webmail clients in DA control panel?
Reply With Quote
  #6  
Old 10-27-2005, 01:13 PM
resolveit resolveit is offline
Verified User
 
Join Date: Mar 2004
Posts: 762
Quote:
Originally posted by sander815
is there a way you can add this to the webmail clients in DA control panel?
Edit your favorite skin
__________________
Onno Vrijburg

SpamBlocker Plugin - Manage SpamBlocker for DirectAdmin
InvoicingManager Plugin - The easiest way to manage billing for your DirectAdmin customers
DAToolkit Plugin - The missing tools from DirectAdmin
Reply With Quote
  #7  
Old 12-01-2005, 03:32 PM
nikdahl nikdahl is offline
Verified User
 
Join Date: Mar 2005
Location: Seattle, WA, USA
Posts: 66
Thanks for the how-to..

Just finished integrating it into our skin.

Can't wait to see where the development of this project takes it. They are off to a great start.
Reply With Quote
  #8  
Old 12-23-2005, 09:08 AM
hehachris's Avatar
hehachris hehachris is offline
Verified User
 
Join Date: Nov 2004
Location: Hong Kong
Posts: 593
imap is needed with php, right?
Reply With Quote
  #9  
Old 12-23-2005, 09:18 AM
hehachris's Avatar
hehachris hehachris is offline
Verified User
 
Join Date: Nov 2004
Location: Hong Kong
Posts: 593
finally i installed

but this error msg always occurs when logging in

"Your session is invalid or expired Username"

the login info is 100% correct
Reply With Quote
  #10  
Old 12-25-2005, 08:16 PM
servertweak's Avatar
servertweak servertweak is offline
Verified User
 
Join Date: Feb 2005
Posts: 293
works great , thank you
__________________
ServerTweak Networks, LLC ServerTweak.com
ServerTweak.com: Premium Services, Powered by Customers.
Fremont & Los Angeles Locations | RAID 10 Dedicated Servers | Colocation | IP Transit | 1/4 - Full Cab & Cages sales
Reply With Quote
  #11  
Old 12-26-2005, 12:39 PM
quackweb quackweb is offline
Verified User
 
Join Date: Nov 2003
Location: Morrison, Colorado
Posts: 183
Awsome How-To, thanks! Would like to see this as a standard webmail application in DirectAdmin as it becomes more stable.
__________________
Topher Lazarz
President
Foxcore Hosting Corporation, Morrison, Colorado
Shared Hosting | Reseller Accounts | Dedicated Servers | Colocation | Internet Access
Reply With Quote
  #12  
Old 12-27-2005, 08:32 PM
servertweak's Avatar
servertweak servertweak is offline
Verified User
 
Join Date: Feb 2005
Posts: 293
question

is anybody having problems sending out email from this program ?
__________________
ServerTweak Networks, LLC ServerTweak.com
ServerTweak.com: Premium Services, Powered by Customers.
Fremont & Los Angeles Locations | RAID 10 Dedicated Servers | Colocation | IP Transit | 1/4 - Full Cab & Cages sales
Reply With Quote
  #13  
Old 01-12-2006, 08:02 PM
Cutia Cutia is offline
Verified User
 
Join Date: Jul 2004
Posts: 41
Possible to add for all users?

Hi, I installed this excellent webmail client in my user area using the site's own instructions and I'm wondering if its possible to install this client for all my users (I'm admin as well as reseller and user)? Can I just do a single install somehow or do I have to install each time a new user is made?
Reply With Quote
  #14  
Old 01-12-2006, 11:05 PM
hehachris's Avatar
hehachris hehachris is offline
Verified User
 
Join Date: Nov 2004
Location: Hong Kong
Posts: 593
Re: Possible to add for all users?

Quote:
Originally posted by Cutia
Hi, I installed this excellent webmail client in my user area using the site's own instructions and I'm wondering if its possible to install this client for all my users (I'm admin as well as reseller and user)? Can I just do a single install somehow or do I have to install each time a new user is made?
Roundcube uses IMAP
so you wont need to add account to it manually
Reply With Quote
  #15  
Old 01-12-2006, 11:54 PM
Cutia Cutia is offline
Verified User
 
Join Date: Jul 2004
Posts: 41
Re: Re: Possible to add for all users?

Quote:
Originally posted by hehachris
Roundcube uses IMAP
so you wont need to add account to it manually
Thats not quite what I meant I think. What I want is to be able to install Roundcube once somewhere on my server and for it to be available to all server users, like squirrelmail is.

I want each user on my server to be able to login to www.theirdomain.com/roundcube

Is it possible?

Last edited by Cutia; 01-13-2006 at 12:00 AM.
Reply With Quote
  #16  
Old 01-13-2006, 02:27 AM
Cutia Cutia is offline
Verified User
 
Join Date: Jul 2004
Posts: 41
Ok, I decided to install as per the instructions above and I get this error on the login page:

PHP Code:
Warningsession_start(): Cannot send session cache limiter headers already sent (output started at /var/www/html/roundcubemail/config/main.inc.php:166in /var/www/html/roundcubemail/program/include/main.inc on line 78 
And this on the page if I try and log in:

PHP Code:
WarningCannot modify header information headers already sent by (output started at /var/www/html/roundcubemail/config/main.inc.php:166in /var/www/html/roundcubemail/index.php on line 132 
Funny thing is it works perfectly if installed in my normal user account. Any help appreciated.
Reply With Quote
  #17  
Old 01-13-2006, 03:24 AM
hehachris's Avatar
hehachris hehachris is offline
Verified User
 
Join Date: Nov 2004
Location: Hong Kong
Posts: 593
Re: Re: Re: Possible to add for all users?

Quote:
Originally posted by Cutia
Thats not quite what I meant I think. What I want is to be able to install Roundcube once somewhere on my server and for it to be available to all server users, like squirrelmail is.

I want each user on my server to be able to login to www.theirdomain.com/roundcube

Is it possible?
1, install in some where (eg /var/www/html)
2, modify your httpd.conf, add Alias /rcmail /path/to/rcmail
3, restart apache

then all domain.com/rcmail will work
Reply With Quote
  #18  
Old 01-13-2006, 03:27 AM
Cutia Cutia is offline
Verified User
 
Join Date: Jul 2004
Posts: 41
Quote:
1, install in some where (eg /var/www/html)
2, modify your httpd.conf, add Alias /rcmail /path/to/rcmail
3, restart apache

then all domain.com/rcmail will work
Thanks bro, already worked that out but thanks for posting. Help always appreciated.

Ok, mostly sorted now... seems as if the CVS version I was using was broken as I installed the standard version off the website and it works fine now.

Only problem I'm getting is each time a user logs in for the first time database errors are printed out, even though the user is still entered correctly into the database. Hopefully this'll get sorted with future versions.
Reply With Quote
  #19  
Old 01-21-2006, 10:12 AM
torp torp is offline
Verified User
 
Join Date: Jul 2004
Location: Oslo
Posts: 158
Installed, and it's working. Thanks for great howto, and a great tip.

I have an error in the background when browsing mail however:

Quote:
Warning: fopen(./logs/errors): failed to open stream: No such file or directory in /var/www/html/roundcubemail-0.1-20051021/program/include/bugs.inc on line 67
DB Error in /var/www/html/roundcubemail-0.1-20051021/program/include/rcube_db.inc (129): DB Error: unknown error

Warning: fopen(./logs/errors): failed to open stream: No such file or directory in /var/www/html/roundcubemail-0.1-20051021/program/include/bugs.inc on line 67
I have directory ./logs and the file 'errors' is owned and writable by apache.

...only issue so far, however

Edited: Error appears when viewing big mailboxes only. I tested with mailbox with 50 emails, and there was no error.

Note: I have caching turned on

Last edited by torp; 01-22-2006 at 06:59 AM.
Reply With Quote
  #20  
Old 01-22-2006, 07:02 AM
torp torp is offline
Verified User
 
Join Date: Jul 2004
Location: Oslo
Posts: 158
For anyone interested - this issue seems to be fixed in CVS: http://lists.roundcube.net/mail-arch...ev/2006/01/25/

Apparently quite a few bugs have been fixed in the CVS version. I'm using it now, and it seems more stable to me.

Last edited by torp; 01-22-2006 at 07:33 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[RELEASE] Ruby on Rails Direct Admin Plugin vandal 3rd Party Software 84 04-13-2007 03:44 AM
How-To: Horde Webmail koh How-To Guides 5 04-01-2006 01:58 PM
How-To: Install Horde Webmail james99 How-To Guides 52 12-12-2005 10:31 AM
SNMP is not supported by your PHP installation. deltaned General Technical Discussion & Troubleshooting 6 04-03-2005 10:50 AM
How To: Install DA on FreeBSD existenz How-To Guides 16 08-04-2004 04:07 PM


All times are GMT -7. The time now is 07:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
DirectAdmin © 2007 JBMC Software