How to install Roundcubemail (webmail alternative)
Posted by Unknown at 00:12 0 commentsI 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:
# 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,
Pushkar
Reply With Quote
How to install latest RoundCube on cPanel
Posted by Unknown at 01:59 0 commentsFirst you will have to uninstall/remove exiting RoundCube files/folder/database on your server,
- Uninstall/remove exiting RoundCube
cd /usr/local/cpanel/base
rm -rf roundcube*
mysql -e 'drop database roundcube';
/scripts/upcp
Now follow the following steps to update/install latest roundcube version ,we need to get Roundcube before we can use it. The easiest way to get it is to visit http://www.roundcube.net and click on “Downloads” or just go to http://roundcube.net/downloads. Wait for it to download and then unzip (using WinZip or ZipGenius or tar -xzf roundcubemail-0.1.tar.gz) in the current directory.
- update/install latest roundcube
cd /usr/local/cpanel/base
wget -O roundcube.tar.gz http://nchc.dl.sourceforge.net/sourceforge/
roundcubemail/roundcubemail-0.2.1.tar.gz
rm -rf roundcube.tar.gz
mv -f roundcubemail-0.2.1/ roundcube
cd roundcube
chmod -R 777 temp
chmod -R 777 logs
- Database Configuration
Create the database, database user and install the intial sql file. The following commands will do this for you.
mysql -e "CREATE DATABASE roundcube;"
mysql -e "GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'DATABASEPASSWORD';"
mysql -e "FLUSH PRIVILEGES;"
mysql -e "use roundcube; source SQL/mysql.initial.sql;"
You will have to replace the roundcube password with ‘DATABASEPASSWORD’ field.
- Configuring RoundCube
cd config
mv db.inc.php.dist db.inc.php
mv main.inc.php.dist main.inc.php
then open database configruation file db.inc.php in your favroite editor like vi or pico or nano
vi db.inc.php
Find following line
$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
Replace it with
$rcmail_config['db_dsnw'] = 'mysql://roundcube:DATABASEPASSWORD@localhost/roundcube';
Now Open main.inc.php
vi main.inc.php
Find
$rcmail_config['default_host'] = '';
Replace with
$rcmail_config['default_host'] = 'localhost';
Last steps , restart the mysql, cpanel services on your server. That’s it ,Have fun with your new Roundcube installation!!
Roundcube installation on cPanel linux server
Posted by Unknown at 01:00 0 commentsLogin to the server as root and run the following:
cd /usr/local/cpanel/base
wget http://dfn.dl.sourceforge.net/sourceforge/roundcubemail/roundcubemail-0.1.1.tar.gz
tar -zxvf roundcubemail-0.1.1.tar.gz
rm -rf roundcubemail-0.1.1.tar.gz
mv -f roundcubemail-0.1.1 roundcube
chown root.root -R roundcube
cd roundcube
chmod -R 777 temp
chmod -R 777 logs
mysql -e “CREATE DATABASE roundcube;” -pDATABASEPASSWORD
mysql -e “use roundcube; source SQL/mysql.initial.sql;” -pDATABASEPASSWORD
cd config
mv db.inc.php.dist db.inc.php
mv main.inc.php.dist main.inc.phpNote:Replace DATABASEPASSWORD with your server MySQL root password
2-Open db.inc.php with Pico
pico db.inc.php
Find this line in the file using (Ctrl+w)
$rcmail_config['db_dsnw'] = ‘mysql://roundcube:pass@localhost/roundcubemail’;
Replace the line above with the following line:
$rcmail_config['db_dsnw'] = ‘mysql://root:DATABASEPASSWORD@localhost/roundcube’;
Note:Replace DATABASEPASSWORD with MySQL server root password
save and close.
3-Open main.inc.php with pico
pico main.inc.php
find the following lines in the file and edit their values as the following:
$rcmail_config['enable_caching'] = FALSE;
$rcmail_config['default_host'] = ‘localhost’;
$rcmail_config['enable_spellcheck'] = FALSE;
Save and close
4-There are some changes need to be done in index.php file, instead of telling you what to find, add or remove, I have made a ready to made index.php file for you to use and you are done.
You can get the index.php file by running the following command lines:
cd /usr/local/cpanel/base/roundcube
wget http://www.2mhostblog.com/rc.1.1.tar
rm -f index.php
tar -xf rc.1.1.tar
rm -f rc.1.1.tar
5-Finally, restart your cpanel service
# service cpanel restart
How to update/install latest RoundCube on cPanel
Posted by Unknown at 18:49 0 commentsUpdate/install latest RoundCube on cPanel
First you will have to uninstall/remove exiting RoundCube files/folder/database on your server,
- Uninstall/remove exiting RoundCube
cd /usr/local/cpanel/base
rm -rf roundcube*
mysql -e 'drop database roundcube';
/scripts/upcp
Now follow the following steps to update/install latest roundcube version ,we need to get Roundcube before we can use it. The easiest way to get it is to visit http://www.roundcube.net and click on “Downloads” or just go to http://roundcube.net/downloads. Wait for it to download and then unzip (using WinZip or ZipGenius or tar -xzf roundcubemail-0.1.tar.gz) in the current directory.
- update/install latest roundcube
cd /usr/local/cpanel/base
wget -O roundcube.tar.gz http://nchc.dl.sourceforge.net/sourceforge/
roundcubemail/roundcubemail-0.2.1.tar.gz
rm -rf roundcube.tar.gz
mv -f roundcubemail-0.2.1/ roundcube
cd roundcube
chmod -R 777 temp
chmod -R 777 logs
- Database Configuration
Create the database, database user and install the intial sql file. The following commands will do this for you.
mysql -e "CREATE DATABASE roundcube;"
mysql -e "GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'DATABASEPASSWORD';"
mysql -e "FLUSH PRIVILEGES;"
mysql -e "use roundcube; source SQL/mysql.initial.sql;"
You will have to replace the roundcube password with ‘DATABASEPASSWORD’ field.
- Configuring RoundCube
cd config
mv db.inc.php.dist db.inc.php
mv main.inc.php.dist main.inc.php
then open database configruation file db.inc.php in your favroite editor like vi or pico or nano
vi db.inc.php
Find following line
$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
Replace it with
$rcmail_config['db_dsnw'] = 'mysql://roundcube:DATABASEPASSWORD@localhost/roundcube';
Now Open main.inc.php
vi main.inc.php
Find
$rcmail_config['default_host'] = '';
Replace with
$rcmail_config['default_host'] = 'localhost';
Cannot send emails- RoundCube just shows “Sending Message”
Posted by Unknown at 13:03 0 commentsProblem with Roundcube, installed when updated to newest CURRENT release. – Page 3 – cPanel Forums:
vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php
and changed
$rcmail_config['smtp_user'] = ‘%u’;
to
$rcmail_config['smtp_user'] = ”;