I decide to write this article for sharing my experience, while there is still spare time to write and my mood. let’s begin…
Why What I choose to install from SVN not to install from downloading tar.gz ? that’s very simple to answer. because :
- Install roundcube from SVN, for now always updated (that’s my opinion, and proved correct). I have to try install from tar.gz , and found some bugs and still not updated.
- and I have freer to updating anytime using svn. (masterpop3 suggestion
)
Server Requirements :
- Apache, Lighttpd (>=1.4.13 for SSL), or Cherokee Web server
- Directory on the Web server allowed to run scripts
- If using Apache, .htaccess support or configuration to override DirectoryIndex
- PHP version 5.2.1 or greater with
- PCRE (Perl-Compatible Regular Expressions)
- Session support
- Socket support
- MySQL, PostgreSQL, or SQLite database engine
- iconv (recommended)
- OpenSSL (recommended)
- Mbstring (optional)
- FileInfo (optional)
- Mcrypt (optional)
- php.ini options:
- error_reporting E_ALL & ~E_NOTICE (or lower)
- file_uploads on (for attachment upload features)
- memory_limit (increase as suitable to support large attachments)
- session.auto_start off
- magic_quotes_gpc off
- If using MySQL or PostgreSQL, a database server and database user with permission to create tables
- If using MySQL 5.0.2 or later, disable STRICT_TRANS_TABLES and STRICT_ALL_TABLES
- OpenSSL and Socket modules for PHP required to connect to secure IMAP or IMAPS, for secure SMTP and to use the spell checker
- Additionally, the CURL module for PHP is required for spell checking with TinyMCE (HTML WYSIWYG Editor).
- An IMAP server which supports IMAP 4 rev 1
- An SMTP server (recommended) or PHP configured for mail delivery
1. Install rouncube from svn as root (recommended)
~]# cd /var/www/ ~]# svn co https://svn.roundcube.net/trunk/roundcubemail . . A roundcubemail/plugins/example_addressbook/example_addressbook_backend.php A roundcubemail/plugins/http_authentication A roundcubemail/plugins/http_authentication/http_authentication.php U roundcubemail/plugins Checked out external at revision 3690. Checked out revision 3690.
2. Set permissions of directory
Set permissions of the temp and logs dir so that the web user can read/write to them
~]# cd /var/www/roundcubemail/ ~]# chown -R www-data:www-data temp/ logs/
3. Create database for roundcube
Create a database for storage of Roundcubemail data, replace $PASSWORD with the password you want the roundcube user to use to access mySQL
mysql> use mysql; mysql> create database roundcubemail; mysql> GRANT ALL PRIVILEGES ON roundcubemail.* to roundcube@localhost IDENTIFIED by '$PASSWORD'; mysql> flush privileges; mysql> quit
4. Import the inital Roundcubemail SQL
~]# mysql -p roundcubemail < /var/www/roundcubemail/SQL/mysql.initial.sql
5. Setting roundcube configuration
~]# cd /var/www/roundcubemail/config/ ~]# cp db.inc.php.dist db.inc.php ~]# cp main.inc.php.dist main.inc.php
edit roundcube database configuration file :
~]# vim db.inc.php [...] $rcmail_config['db_dsnw'] = 'mysql://roundcube:$PASSWORD@localhost/roundcubemail'; [...]
edit roundcubr main configuration file :
~]# vim main.inc.php [...] $rcmail_config['message_cache_lifetime'] = '30m'; [...] $rcmail_config['default_host'] = 'localhost'; [...] $rcmail_config['smtp_server'] = '%h'; [...] $rcmail_config['session_lifetime'] = 30; [...] $rcmail_config['create_default_folders'] = TRUE; [...]
6. RoundCube as our default Webmail.
if you won’t use default squirrelmail, you can delete alias webmail squirrelmail and change with roundcube.
~]# vim /etc/apache/conf.d/roundcubemail
Alias /webmail /var/www/roundcubemail
<Directory /var/www/roundcubemail>
Options +FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Restart apache service.
Open your browser point to http://www.yourdomain.tld/webmail
Done!
Refference :
http://fak3r.com/2005/11/15/howto-install-roundcube-webmail-from-svn-was-cvs-on-freebsd/ http://howtoforge.net/changing-from-squirrelmail-to-roundcube-on-your-ispconfig3-server
@masterpop3
Tags: howto, lucid, rouncubemail, subversion, ubuntu 585 views
[...] ./masterpop3 learning without headache ^@$%$@^ « HOWTO: Install Roundcubemail from SVN on Ubuntu Lucid 10.04 [...]