<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John Bernard Abella [blog] &#187; RoundCube</title>
	<atom:link href="http://www.johnbernardabella.com/tag/roundcube/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnbernardabella.com</link>
	<description>A System Admin's Notebook, A Progrmmers Journal</description>
	<lastBuildDate>Wed, 16 Jun 2010 13:27:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing RoundCube in cPanel</title>
		<link>http://www.johnbernardabella.com/installing-roundcube-in-cpanel/</link>
		<comments>http://www.johnbernardabella.com/installing-roundcube-in-cpanel/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 09:55:22 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[email interface]]></category>
		<category><![CDATA[Installing RoundCount in cPanel]]></category>
		<category><![CDATA[RoundCube]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/03/installing-roundcube-in-cpanel/</guid>
		<description><![CDATA[First make sure you know your mysql root password, you have to replace DATABASEPASSWORD to your mysql root password.
If you have already used RoundCube installation please make sure you remove any traces of it with,

cd /usr/local/cpanel/base
rm -rf roundcube*
mysql -p -e 'drop database roundcube';
chattr -i /usr/local/cpanel/base/frontend/x/webmaillogin.html
chattr -i /usr/local/cpanel/base/webmaillogin.cgi
/scripts/upcp


You will have to specify your root password when [...]]]></description>
			<content:encoded><![CDATA[<p>First make sure you know your mysql root password, you have to replace DATABASEPASSWORD to your mysql root password.</p>
<p>If you have already used RoundCube installation please make sure you remove any traces of it with,</p>
<p><code><br />
cd /usr/local/cpanel/base<br />
rm -rf roundcube*<br />
mysql -p -e 'drop database roundcube';<br />
chattr -i /usr/local/cpanel/base/frontend/x/webmaillogin.html<br />
chattr -i /usr/local/cpanel/base/webmaillogin.cgi<br />
/scripts/upcp<br />
</code></p>
<p></p>
<p>You will have to specify your root password when prompted.</p>
<p>Now lets download roundcube first and chmod the directorys</p>
<p><code><br />
cd /usr/local/cpanel/base<br />
wget -O roundcube.tar.gz http://heanet.dl.sourceforge.net/sourceforge/roundcubemail/<br />
roundcubemail-0.1-rc1.tar.gz<br />
tar -zxvf roundcube.tar.gz<br />
rm -rf roundcube.tar.gz<br />
mv -f roundcubemail-0.1-rc1 roundcube<br />
cd roundcube<br />
chmod -R 777 temp<br />
chmod -R 777 logs<br />
</code></p>
<p>Create the database and install the intial sql file. The following commands will do this for you.</p>
<p><code><br />
mysql -e "CREATE DATABASE roundcube;" -pDATABASEPASSWORD<br />
mysql -e "use roundcube; source SQL/mysql.initial.sql;" -pDATABASEPASSWORD<br />
</code></p>
<p>Now lets sort out the configuration</p>
<p><code><br />
cd config<br />
mv db.inc.php.dist db.inc.php<br />
mv main.inc.php.dist main.inc.php<br />
</code></p>
<p>Now open db.inc.php</p>
<p>nano db.inc.php</p>
<p>Find</p>
<p><code><br />
$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';<br />
</code></p>
<p>Replace with</p>
<p><code><br />
$rcmail_config['db_dsnw'] = 'mysql://root:DATABASEPASSWORD@localhost/roundcube';<br />
</code></p>
<p>Now Open main.inc.php</p>
<p>nano main.inc.php</p>
<p>Find</p>
<p><code><br />
$rcmail_config['default_host'] = '';<br />
</code></p>
<p>Replace with</p>
<p><code><br />
$rcmail_config['default_host'] = 'localhost';<br />
</code></p>
<p>Now we have to configure cPanel to show roundcube in the theme. Please note this is for the X theme(default) only!! If you use another theme please skip the next part and see below.</p>
<p><code><br />
cd /usr/local/cpanel/base/roundcube/skins/default/images/<br />
cp --reply=yes roundcube_logo.png /usr/local/cpanel/base/frontend/x/images/roundcube_logo.png<br />
cp --reply=yes roundcube_logo.png /usr/local/cpanel/base/webmail/x/images/roundcube_logo.png<br />
cd /usr/local/cpanel/base<br />
wget http://www.hostgeekz.com/files/hostgeekz/HGpatch-roundcube-0.1-rc1<br />
patch -p0 &lt; HGpatch-roundcube-0.1-rc1<br />
</code></p>
<p>**NOTE** If you receive a message stating</p>
<p>Reversed (or previously applied) patch detected! Assume -R?</p>
<p>please press N for No as this is because you previously installed roundcube</p>
<p>This will auto do all the necessary changes to roundcube and the X theme.</p>
<p>Once the patch is executed you may now access roundcube via http://yourip/webmail</p>
<p>&#8212;&#8211;</p>
<p>If you do not use the X theme please do the following</p>
<p><code><br />
cd /usr/local/cpanel/base<br />
wget http://www.hostgeekz.com/files/hostgeekz/HGpatch-roundcube-NON-X-0.1-rc1<br />
patch -p0 &lt; HGpatch-roundcube-NON-X-0.1-rc1<br />
</code></p>
<p>Then open your webmaillogin.html, please replace YOURTHEME with the name of your theme.</p>
<p><code><br />
nano /usr/local/cpanel/base/frontend/YOURTHEME/webmaillogin.html<br />
</code></p>
<p>and find</p>
<p><code>  </code></p>
<p>Add Below</p>
<p><code></code></p>
<p><a href="/roundcube/index.php"><img src="images/roundcube_logo.png" border="0" /></a><br />
<a href="/roundcube/index.php">RoundCube</a>&#8212;&#8212;</p>
<p>***UPDATE***<br />
Remember to chattr +i the files or add the patch to your /scripts/upcp.</p>
<p><code><br />
chattr +i /usr/local/cpanel/base/frontend/x/webmaillogin.html<br />
chattr +i /usr/local/cpanel/base/webmaillogin.cgi<br />
</code></p>
<p>If you are using cPanel 11 ensure to run the following fix.</p>
<p><code><br />
wget http://www.hostgeekz.com/files/hostgeekz/cpanel-11-fix.sh<br />
chmod 700 cpanel-11-fix.sh<br />
./cpanel-11-fix.sh<br />
rm -f cpanel-11-fix.sh<br />
</code></p>
<p>That&#8217;s it! You may now access roundcube via http://yourip/webmail</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;t=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Installing+RoundCube+in+cPanel+-+http://b2l.me/ccvhv+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel&amp;summary=First%20make%20sure%20you%20know%20your%20mysql%20root%20password%2C%20you%20have%20to%20replace%20DATABASEPASSWORD%20to%20your%20mysql%20root%20password.%0D%0A%0D%0AIf%20you%20have%20already%20used%20RoundCube%20installation%20please%20make%20sure%20you%20remove%20any%20traces%20of%20it%20with%2C%0D%0A%0D%0A%0D%0Acd%20%2Fusr%2Flocal%2Fcpanel%2Fbase%0D%0Arm%20-rf%20roundcube%2A%0D%0Amysql%20-p%20-e%20%27drop%20database%20rou&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;n=Installing+RoundCube+in+cPanel&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/installing-roundcube-in-cpanel/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel&amp;desc=First%20make%20sure%20you%20know%20your%20mysql%20root%20password%2C%20you%20have%20to%20replace%20DATABASEPASSWORD%20to%20your%20mysql%20root%20password.%0D%0A%0D%0AIf%20you%20have%20already%20used%20RoundCube%20installation%20please%20make%20sure%20you%20remove%20any%20traces%20of%20it%20with%2C%0D%0A%0D%0A%0D%0Acd%20%2Fusr%2Flocal%2Fcpanel%2Fbase%0D%0Arm%20-rf%20roundcube%2A%0D%0Amysql%20-p%20-e%20%27drop%20database%20rou" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;submitHeadline=Installing+RoundCube+in+cPanel&amp;submitSummary=First%20make%20sure%20you%20know%20your%20mysql%20root%20password%2C%20you%20have%20to%20replace%20DATABASEPASSWORD%20to%20your%20mysql%20root%20password.%0D%0A%0D%0AIf%20you%20have%20already%20used%20RoundCube%20installation%20please%20make%20sure%20you%20remove%20any%20traces%20of%20it%20with%2C%0D%0A%0D%0A%0D%0Acd%20%2Fusr%2Flocal%2Fcpanel%2Fbase%0D%0Arm%20-rf%20roundcube%2A%0D%0Amysql%20-p%20-e%20%27drop%20database%20rou&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;title=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;t=Installing+RoundCube+in+cPanel" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Installing+RoundCube+in+cPanel&amp;text=First%20make%20sure%20you%20know%20your%20mysql%20root%20password%2C%20you%20have%20to%20replace%20DATABASEPASSWORD%20to%20your%20mysql%20root%20password.%0D%0A%0D%0AIf%20you%20have%20already%20used%20RoundCube%20installation%20please%20make%20sure%20you%20remove%20any%20traces%20of%20it%20with%2C%0D%0A%0D%0A%0D%0Acd%20%2Fusr%2Flocal%2Fcpanel%2Fbase%0D%0Arm%20-rf%20roundcube%2A%0D%0Amysql%20-p%20-e%20%27drop%20database%20rou+-+http://www.johnbernardabella.com/installing-roundcube-in-cpanel/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/installing-roundcube-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
