<?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; cPanel</title>
	<atom:link href="http://www.johnbernardabella.com/tag/cpanel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnbernardabella.com</link>
	<description>A System Admin&#039;s Notebook, A Programmers Journal</description>
	<lastBuildDate>Sun, 05 Feb 2012 14:13:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Account Default Page For CPANEL/WHM</title>
		<link>http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/</link>
		<comments>http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 15:41:52 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cPanel Account Default page]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/?p=47</guid>
		<description><![CDATA[How to set-up default page for cpanel account? 1. Create a default page that you want to be the default page. 2. Copy your created page to /root/cpanel3-skel/public_html/ That&#8217;s all! Every time you create an account on WHM your default page will be create on accounts public_html folder. For reseller accounts that don&#8217;t have root [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>How to set-up default page for cpanel account?</p>
<p>1. Create a default page that you want to be the default page.</p>
<p>2. Copy your created page to /root/cpanel3-skel/public_html/</p>
<p>That&#8217;s all! Every time you create an account on WHM your default page will be create on accounts public_html folder.</p>
<p>For reseller accounts that don&#8217;t have root privileged, you should have /cpanel3-skel/ directory on your main account you can add public_html folder their.</p>
<div class="shr-publisher-47"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/account-default-page-for-cpanelwhm/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<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 [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><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>
<div class="shr-publisher-9"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/installing-roundcube-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

