29 April 2008
Roundcube installation on cPanel server
Posted by admin under: Guides .
cPanel 11.23 introduces full support for the Roundcube, you can use your WHM > Tweak settings to enable roundcube in cpanel :)
NOTE: This post is not important in anyway to shared hosting clients, however I found the information is usefull and I thought to share it.
To who doesn’t know, RoundCube is a nice web 2.0 and Ajax based webmail client .
We have tried Roundcube in many servers now and we will install it in all servers before the end of May 2008.
There is only one article about how to install roundcube on cpanel server, I think it became outdated and need to be refined, here is what we do to setup rouncube 0.1.1 on cpanel server.
1-Login 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.php
Note: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
And you are done, login your webmail and have fun.
One Comment so far...
admin Says:
23 May 2008 at 5:03 pm.
You may ask, where I find the MySQL root password? honestly, I did not know and I got a nice tip from a friend.
MySQL root password can be found in this file:
/root/.my.cnf