<?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/"
	>

<channel>
	<title>GNUSYS Knowledge Base</title>
	<atom:link href="http://gnusys.net/kb/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://gnusys.net/kb</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Wed, 17 Jun 2009 03:07:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrade MySQL to MySQL 5.1 in a Cpanel server</title>
		<link>http://gnusys.net/kb/index.php/2009/06/upgrade-mysql-to-mysql-51-in-a-cpanel-server/</link>
		<comments>http://gnusys.net/kb/index.php/2009/06/upgrade-mysql-to-mysql-51-in-a-cpanel-server/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 03:07:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[cpanel]]></category>

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

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

		<guid isPermaLink="false">http://gnusys.net/kb/?p=142</guid>
		<description><![CDATA[First ascertain the current version of mysql installed, the system architecture and OS release

 rpm -qa&#124;grep -i mysql
MySQL-devel-5.0.81-0.glibc23
MySQL-shared-5.0.81-0.glibc23
MySQL-client-5.0.81-0.glibc23
MySQL-server-5.0.81-0.glibc23
MySQL-bench-5.0.81-0.glibc23
arch
x86_64
 cat /etc/redhat-release
CentOS release 5.3 (Final)

Next step is to download the latest MySQL 5.1 community release matching the OS and architecture from
http://dev.mysql.com/downloads/mysql/5.1.html#downloads

wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.35-0.rhel5.x86_64.rpm/from/http://mirror.csclub.uwaterloo.ca/mysql/
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.35-0.rhel5.x86_64.rpm/from/http://mirror.csclub.uwaterloo.ca/mysql/
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-shared-community-5.1.35-0.rhel5.x86_64.rpm/from/http://mirror.csclub.uwaterloo.ca/mysql/
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-community-5.1.35-0.rhel5.x86_64.rpm/from/http://mirror.csclub.uwaterloo.ca/mysql/

The download folder should look something like

 ls
./   MySQL-client-community-5.1.35-0.rhel5.x86_64.rpm  MySQL-server-community-5.1.35-0.rhel5.x86_64.rpm
../ [...]]]></description>
			<content:encoded><![CDATA[<p>First ascertain the current version of mysql installed, the system architecture and OS release<br />
<code><br />
 rpm -qa|grep -i mysql<br />
MySQL-devel-5.0.81-0.glibc23<br />
MySQL-shared-5.0.81-0.glibc23<br />
MySQL-client-5.0.81-0.glibc23<br />
MySQL-server-5.0.81-0.glibc23<br />
MySQL-bench-5.0.81-0.glibc23</p>
<p>arch<br />
x86_64</p>
<p> cat /etc/redhat-release<br />
CentOS release 5.3 (Final)<br />
</code></p>
<p>Next step is to download the latest MySQL 5.1 community release matching the OS and architecture from<br />
http://dev.mysql.com/downloads/mysql/5.1.html#downloads</p>
<p><code><br />
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.35-0.rhel5.x86_64.rpm/from/http://mirror.csclub.uwaterloo.ca/mysql/</p>
<p>wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-client-community-5.1.35-0.rhel5.x86_64.rpm/from/http://mirror.csclub.uwaterloo.ca/mysql/</p>
<p>wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-shared-community-5.1.35-0.rhel5.x86_64.rpm/from/http://mirror.csclub.uwaterloo.ca/mysql/</p>
<p>wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-devel-community-5.1.35-0.rhel5.x86_64.rpm/from/http://mirror.csclub.uwaterloo.ca/mysql/<br />
</code></p>
<p>The download folder should look something like<br />
<code><br />
 ls<br />
./   MySQL-client-community-5.1.35-0.rhel5.x86_64.rpm  MySQL-server-community-5.1.35-0.rhel5.x86_64.rpm<br />
../  MySQL-devel-community-5.1.35-0.rhel5.x86_64.rpm   MySQL-shared-community-5.1.35-0.rhel5.x86_64.rpm<br />
</code></p>
<blockquote><p>
! FOLLOWING STEPS ARE VERY IMPORTANT</p></blockquote>
<p>We must backup the current mysql setup as best as possible !.<br />
<code><br />
cp -pvr /var/lib/mysql /var/lib/mysql.original.jun17<br />
mysqldump --add-drop-database --all-databases > mysql.backup.jun17.sql</p>
<p>cp -p /etc/my.cnf /etc/my.cnf.original.jun17<br />
cp -p /root/.my.cnf /root/.my.cnf.original.jun17<br />
cp -p /etc/init.d/mysql /etc/init.d/mysql.original.jun17<br />
</code></p>
<p>Now we remove the current MySQL rpm&#8217;s<br />
<code><br />
rpm -e MySQL-bench-5.0.81-0.glibc23<br />
rpm -e MySQL-devel-5.0.81-0.glibc23<br />
rpm -e MySQL-client-5.0.81-0.glibc23<br />
rpm -e MySQL-server-5.0.81-0.glibc23<br />
rpm -e MySQL-shared-5.0.81-0.glibc23<br />
</code></p>
<p>Install the new MySQL rpm&#8217;s<br />
<code><br />
rpm -Uvh MySQL-server-community-5.1.35-0.rhel5.x86_64.rpm<br />
rpm -Uvh MySQL-client-community-5.1.35-0.rhel5.x86_64.rpm<br />
rpm -Uvh MySQL-shared-community-5.1.35-0.rhel5.x86_64.rpm<br />
rpm -Uvh MySQL-devel-community-5.1.35-0.rhel5.x86_64.rpm<br />
</code></p>
<p>Copy over the original mysql init script<br />
<code><br />
cp -p /etc/init.d/mysql /etc/init.d/mysql.bad<br />
cp -p /etc/init.d/mysql.original.jun17 /etc/init.d/mysql<br />
</code></p>
<p>start mysql<br />
<code><br />
/etc/init.d/mysql start<br />
</code></p>
<p>If there is a problem ,check the mysql error log for details</p>
<p>Run the following command to complete the mysql upgrade<br />
<code><br />
mysql_upgrade<br />
</code></p>
<blockquote><p>
DESCRIPTION<br />
       mysql_upgrade should be executed each time you upgrade MySQL. It supersedes the older<br />
       mysql_fix_privilege_tables script, which should no longer be used.</p>
<p>       mysql_upgrade checks all tables in all databases for incompatibilities with the current version of MySQL<br />
       Server. If a table is found to have a possible incompatibility, it is checked. If any problems are found,<br />
       the table is repaired.  mysql_upgrade also upgrades the system tables so that you can take advantage of new<br />
       privileges or capabilities that might have been added.
</p></blockquote>
<p>Thats it.</p>
<p>Now your php mysql module is broken .So it is very important that you recompile either php alone or use easyapache3 to recompile apache and php with a forced rebuild of php !</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/06/upgrade-mysql-to-mysql-51-in-a-cpanel-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MySQL master slave replication of multiple databases</title>
		<link>http://gnusys.net/kb/index.php/2009/06/mysql-master-slave-replication-of-multiple-databases/</link>
		<comments>http://gnusys.net/kb/index.php/2009/06/mysql-master-slave-replication-of-multiple-databases/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 05:44:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://gnusys.net/kb/?p=139</guid>
		<description><![CDATA[On the master server :
We have to enable networking ;if it is skipped. Enable binary logging and start a binary log of all databases 
Add the following to the my.cnf file and restart MySQL

server-id       = 1
log-bin=mysql-bin
binlog-do-db=gnusys_kb
binlog-do-db=gnusys_wiki
binlog-do-db=powerdns

create a user on the master with replication slave privileges on all databases from [...]]]></description>
			<content:encoded><![CDATA[<p>On the master server :</p>
<p>We have to enable networking ;if it is skipped. Enable binary logging and start a binary log of all databases </p>
<p>Add the following to the my.cnf file and restart MySQL</p>
<p><code><br />
server-id       = 1<br />
log-bin=mysql-bin<br />
binlog-do-db=gnusys_kb<br />
binlog-do-db=gnusys_wiki<br />
binlog-do-db=powerdns<br />
</code></p>
<p>create a user on the master with replication slave privileges on all databases from the slaves IP address<br />
<code><br />
GRANT REPLICATION SLAVE ON *.* TO '*****************'@'ip.ip.ip.ip' IDENTIFIED BY '********';<br />
</code></p>
<p>The next step is to have identical data on both master and slave server .This can be accomplished by preventing all writes on the master for some time and take a snapshot of the databases on the master using mysqldump and restore all of them on the slave<br />
<code><br />
FLUSH TABLES WITH READ LOCK;<br />
</code></p>
<p>Keep this prompt running;inoder that the lock is active</p>
<p>mysqldump db1 &#8211;lock-all-tables > db1.june14.sql<br />
mysqldump gnusys_kb &#8211;lock-all-tables > powerdns.june14.sql<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p></code><br />
and on the slave server restore the databases.</p>
<p>The next step is to get some vital information from the master to initiate replication on the slave.On masters mysql prompt run<br />
<code></p>
<p>SHOW MASTER STATUS;<br />
+------------------+----------+---------------------------------------------------------------+------------------+<br />
| File             | Position | Binlog_Do_DB                                                  | Binlog_Ignore_DB |<br />
+------------------+----------+---------------------------------------------------------------+------------------+<br />
| mysql-bin.000001 |  1547443 | gnusys_kb,gnusys_wiki,powerdns,gnusys_kb,gnusys_wiki,powerdns |                  |<br />
+------------------+----------+---------------------------------------------------------------+------------------+<br />
1 row in set (0.00 sec)<br />
</code></p>
<p>add the following to the my.cnf of the slave server<br />
<code><br />
#Mysql slave settings<br />
server-id       = 2<br />
master-host=174.136.4.248<br />
master-user=******************<br />
master-password=*********<br />
master-connect-retry=60<br />
replicate-do-db=gnusys_kb<br />
replicate-do-db=gnusys_wiki<br />
replicate-do-db=powerdns<br />
</code></p>
<p>Restart slave mysql </p>
<p>Now we remote the write lock on the master.On masters mysql prompt which we kept running<br />
<code><br />
 UNLOCK TABLES;<br />
</code></p>
<p>On the slaves mysql prompt run the following<br />
<code><br />
SLAVE STOP;</p>
<p>CHANGE MASTER TO MASTER_HOST='ip.ip.ip.ip', MASTER_USER='*********',MASTER_PASSWORD='*****', MASTER_LOG_FILE='mysql-bin.000001', MASTER_LOG_POS=98;</p>
<p>START SLAVE;<br />
quit;<br />
</code></p>
<p> Thats it!.</p>
<p>The status of master can be known from<br />
<code><br />
SHOW MASTER STATUS;<br />
</code></p>
<p>and slave can be known by<br />
<code><br />
SHOW SLAVE STATUS;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/06/mysql-master-slave-replication-of-multiple-databases/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing SVN on Cpanel with mod_dav_svn support</title>
		<link>http://gnusys.net/kb/index.php/2009/04/installing-svn-on-cpanel-with-mod_dav_svn-support/</link>
		<comments>http://gnusys.net/kb/index.php/2009/04/installing-svn-on-cpanel-with-mod_dav_svn-support/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 18:23:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Apache]]></category>

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

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

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

		<guid isPermaLink="false">http://79.99.65.167/kb/?p=134</guid>
		<description><![CDATA[This howto helps to install SVN (subversion  ) on a cpanel server
Since Cpanel compiles httpd from source ; it is best we compile svn also from source and install the mod_dav_svn apache2 module along with it. Please note that you must have apache2.0 inoder for this to work
Step1 - mod_dav_svn requires mod_dav to be present.So [...]]]></description>
			<content:encoded><![CDATA[<p>This howto helps to install SVN (subversion  ) on a cpanel server</p>
<p>Since Cpanel compiles httpd from source ; it is best we compile svn also from source and install the mod_dav_svn apache2 module along with it. Please note that you must have apache2.0 inoder for this to work</p>
<p>Step1 - mod_dav_svn requires mod_dav to be present.So ensure that you have selected dav in your easyapache 3 configuration</p>
<p>This can be confirmed by</p>
<p><code>===============================</p>
<p>/usr/local/apache/bin/httpd -l|grep dav<br />
mod_dav.c<br />
mod_dav_fs.c<br />
mod_dav_lock.c</p>
<p>===============================</code></p>
<p>Next we have to download subversion source. I have used the latest source at the time of writing; so please use what is latest now<br />
<code><br />
cd /usr/local/src</p>
<p>wget http://subversion.tigris.org/downloads/</p>
<p>tar -xvjf subversion-1.6.1.tar.bz2</p>
<p>wget http://www.sqlite.org/sqlite-amalgamation-3.6.11.tar.gz</p>
<p>tar -xvzf sqlite-amalgamation-3.6.11.tar.gz</p>
<p>mkdir /usr/local/src/subversion-1.6.1/sqlite-amalgamation</p>
<p>cp sqlite-3.6.11/sqlite3.c /usr/local/src/subversion-1.6.1/sqlite-amalgamation/sqlite3.c</p>
<p>cd /usr/local/src/subversion-1.6.1</p>
<p>./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apache/bin/apr-1-config --with-apr-util=/home/cpeasyapache/src/httpd-2.2.11/srclib/apr-util</p>
<p>make<br />
make install</p>
<p></code></p>
<p>Please note that you must substitute the correct directories in configure line above suitable to your system. The system i had was using httpd-2.2.11</p>
<p>The make install step will add the LoadModule line in httpd.conf.For clarity purpose of cpanels ea3 system.we remove those lines from httpd.conf and add it in</p>
<p>WHM - Apache Setup - Include Editor - Pre-Main Include</p>
<p>and save the configuration</p>
<p>Thats it !.The next step would be to configure apache as per your requirement and according to the documentation of including custom edits in cpanels ea3 system:<br />
http://svnbook.red-bean.com/en/1.1/ch06s04.html<br />
http://www.cpanel.net/documentation/easyapache/customdirectives.html</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/04/installing-svn-on-cpanel-with-mod_dav_svn-support/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Change upload size in phpMyAdmin ( Cpanel )</title>
		<link>http://gnusys.net/kb/index.php/2009/04/change-upload-size-in-phpmyadmin-cpanel/</link>
		<comments>http://gnusys.net/kb/index.php/2009/04/change-upload-size-in-phpmyadmin-cpanel/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 16:29:02 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://79.99.65.167/kb/?p=125</guid>
		<description><![CDATA[Change the post_max_size value to your choice in the file /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini which is the php.ini for phpMyAdmin and restart Cpanel.   
]]></description>
			<content:encoded><![CDATA[<p>Change the post_max_size value to your choice in the file /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini which is the php.ini for phpMyAdmin and restart Cpanel.  <img src='http://gnusys.net/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/04/change-upload-size-in-phpmyadmin-cpanel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Difference between AddType and AddHandler</title>
		<link>http://gnusys.net/kb/index.php/2009/04/difference-between-addtype-and-addhandler/</link>
		<comments>http://gnusys.net/kb/index.php/2009/04/difference-between-addtype-and-addhandler/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 16:04:23 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://79.99.65.167/kb/?p=121</guid>
		<description><![CDATA[AddType handler specifies how the client (eg:- browser) has to deal with a particular data stream . The AddHandler on the other hand maps a handler to the file extension telling the server what to do with it.
AddType application/x-httpd-php4 .php4
AddHandler application/x-httpd-php4 .php4
The above two  lines looks similar except for the difference in AddType and AddHandler [...]]]></description>
			<content:encoded><![CDATA[<p><strong>AddType</strong> handler specifies how the <strong>client</strong> (eg:- browser) has to deal with a particular data stream . The AddHandler on the other hand maps a handler to the file extension telling the <strong>server</strong> what to do with it.</p>
<p>AddType application/x-httpd-php4 .php4<br />
AddHandler application/x-httpd-php4 .php4</p>
<p>The above two  lines looks similar except for the difference in AddType and AddHandler directive names, but we can differentiate between them by their use ie AddType is for the client and AddHandler is for server to understand.If you ask how browsers actually deal with the content type you set in your AddType directive, then the answer is :- Gecko ( Gecko is a layout engine used by Firefox ) based browsers (like Firefox) follow the standard closely so they will handle a file according to the content type in your Apache configuration. This means your image will show up as text if you wrongly assigned the text/plain content type. Internet Explorer is more flexible and tries to <strong>guess</strong> the mime type for misconfigured web servers showing a wrongly defined images as, well, an image</p>
<p>Security Aspects :-</p>
<p>Some content types, such as executable programs, are inherently unsafe. For this reason these MIME types are usually restricted in terms of what actions a web browser will take when given content of that type. An executable program should not be executed on the user&#8217;s computer and at most should cause a dialog to appear <strong>asking the user</strong> if they wish to download the file.</p>
<p>MIME type guessing has led to security exploits in Internet Explorer which were based upon a malicious author incorrectly reporting a MIME type of a dangerous file as a safe type. This bypassed the normal download dialog resulting in Internet Explorer <strong>guessing</strong> that the content was an executable program and then running it on the user&#8217;s computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/04/difference-between-addtype-and-addhandler/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to choose a MPM module</title>
		<link>http://gnusys.net/kb/index.php/2009/04/how-to-choose-an-mpm-module/</link>
		<comments>http://gnusys.net/kb/index.php/2009/04/how-to-choose-an-mpm-module/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 12:54:48 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://79.99.65.167/kb/?p=116</guid>
		<description><![CDATA[This is not an indepth topic but i will explain the difference between a prefork MPM and worker MPM. ( reference:- apache.org )
Before you start reading anything about MPM, multi threading etc first thing you need to understand is the difference between a  Process and a Thread and then everything would turn out to be [...]]]></description>
			<content:encoded><![CDATA[<p>This is not an indepth topic but i will explain the difference between a prefork MPM and worker MPM. ( reference:- apache.org )</p>
<p>Before you start reading anything about MPM, multi threading etc first thing you need to understand is the difference between a  Process and a Thread and then everything would turn out to be simple. A single process can have multiple threads that share global data and address space with other threads running in the same process, and therefore can operate on the same data set easily. Processes do not share address space and a different mechanism must be used if they are to share data.</p>
<p>If we consider running a word processing program to be a process, then the auto-save and spell check features that occur in the background are different threads of that process which are all operating on the same data set (your document).</p>
<p><strong>Process </strong></p>
<p>In computing, a <strong>process</strong> is an instance of a computer program that is being sequentially executed by a computer system that has the ability to run several computer programs concurrently.</p>
<p><strong>Thread</strong></p>
<p>A single process may contain several executable programs (threads) that work together as a coherent whole. One thread might, for example, handle error signals, another might send a message about the error to the user, while a third thread is executing the actual task</p>
<p>So the main difference between prefork MPM and worker MPM is :-</p>
<ul>
<li>The  worker MPM uses multiple child         processes with many threads each.  Each thread handles         one connection at a time. By using threads to serve     requests, it is able to serve a large number of requests with     less system resources than a process-based server.  Yet it     retains much of the stability of a process-based server by     keeping multiple processes available, each with many threads. Worker generally is a good         choice for high-traffic servers because it has a smaller         memory footprint than the prefork MPM.</li>
<li>The  prefork MPM uses multiple child         processes with one thread each.  Each process handles         one connection at a time.  On many systems, prefork is         comparable in speed to worker, but it uses more memory.         Prefork&#8217;s threadless design has advantages over worker         in some situations: it can be used with non-thread-safe         third-party modules, and it is easier to debug on platforms         with poor thread debugging support. <img src='http://gnusys.net/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/04/how-to-choose-an-mpm-module/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CPUUNITS value in VPS</title>
		<link>http://gnusys.net/kb/index.php/2009/04/cpuunits-value-in-vps/</link>
		<comments>http://gnusys.net/kb/index.php/2009/04/cpuunits-value-in-vps/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 15:08:05 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://79.99.65.167/kb/?p=111</guid>
		<description><![CDATA[cpuunits is not dependent on RAM or vice versa . Normal allocation is 5000 pcs
CPUUNITS=&#8221;5000&#8243;
Analysis of a vps
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
vzcpucheck
Current CPU utilization: 227090
Power of the node: 781118
What this says is that node has 781000~ cpuunits available with the processors which it has there. What your host should do, is figure out how many VPSs your host is [...]]]></description>
			<content:encoded><![CDATA[<p>cpuunits is not dependent on RAM or vice versa . Normal allocation is 5000 pcs</p>
<p>CPUUNITS=&#8221;5000&#8243;<br />
Analysis of a vps<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
vzcpucheck<br />
Current CPU utilization: 227090<br />
Power of the node: 781118</p>
<p>What this says is that node has 781000~ cpuunits available with the processors which it has there. What your host should do, is figure out how many VPSs your host is planning to run on the server, for example in such a case with 800000 cpuunits it would be acceptable to run certain number of VPSs with 5000, and other higher plans with 7500 or 10000 cpuunits.</p>
<p> <img src='http://gnusys.net/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/04/cpuunits-value-in-vps/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quota problem on VPS</title>
		<link>http://gnusys.net/kb/index.php/2009/04/quota-problem-on-vps/</link>
		<comments>http://gnusys.net/kb/index.php/2009/04/quota-problem-on-vps/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 15:04:52 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://79.99.65.167/kb/?p=108</guid>
		<description><![CDATA[Scenario:- edquota: Can&#8217;t write quota for 32063 on /dev/vzfs: No such process
Resetting quota for &#60;user&#62; to 0 Meg&#8230;.Done
This is used for tracking quota for all your files in the system. The more files you have in your system, the more quotaugidlimit is required . quotaugidlimit is used to track the numer of group and users [...]]]></description>
			<content:encoded><![CDATA[<p>Scenario:- edquota: Can&#8217;t write quota for 32063 on /dev/vzfs: No such process<br />
Resetting quota for &lt;user&gt; to 0 Meg&#8230;.Done</p>
<p>This is used for tracking quota for all your files in the system. The more files you have in your system, the more quotaugidlimit is required . quotaugidlimit is used to track the numer of group and users with quotas. As you add more users and groups it gets near the limit.</p>
<p>This command will show you current usage of second-level quotas in a VE #101, you may run it on a hardware node:<br />
wc -l /vz/root/101/etc/{passwd,group}<br />
95 /vz/root/101/etc/passwd<br />
107 /vz/root/101/etc/group<br />
202 total</p>
<p>You may increase QUOTAUGIDLIMIT parameter using &#8216;vzctl&#8217; utility on a node:<br />
# vzctl set 101 &#8211;save &#8211;quotaugidlimit 210</p>
<p>where 101 is the VPS node id</p>
<p>To apply changes it is required to restart VE:<br />
# vzctl restart 101</p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/04/quota-problem-on-vps/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Add exim interface IP</title>
		<link>http://gnusys.net/kb/index.php/2009/04/add-exim-interface-ip/</link>
		<comments>http://gnusys.net/kb/index.php/2009/04/add-exim-interface-ip/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 14:55:32 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://79.99.65.167/kb/?p=104</guid>
		<description><![CDATA[Consider your mail server IP got blocked in many spam databases and instead of waiting for the spam database authorities to remove it ( while you have given the IP unblock request ) you can change the mail server IP which exim uses so that email traffic is open again. We can use the &#8220;interface&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Consider your mail server IP got blocked in many spam databases and instead of waiting for the spam database authorities to remove it ( while you have given the IP unblock request ) you can change the mail server IP which exim uses so that email traffic is open again. We can use the &#8220;interface&#8221; option in exim configuration file for this purpose.</p>
<p>Stop exim<br />
# /etc/init.d/exim stop</p>
<p>Edit your exim configuration file.<br />
# vi /etc/exim.con or take Exim configuration Editor at WHM<br />
go to &#8220;remote_smtp&#8221; section under &#8220;TRANSPORTS CONFIGURATION&#8221;.</p>
<p>By default it would look like below:<br />
Quote:<br />
remote_smtp:<br />
driver = smtp<br />
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}<br />
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}}</p>
<p>Remove or comment line containing &#8220;interface&#8221; and &#8220;helo_data&#8221; and add new &#8220;interface&#8221; to match with that of your new IP address. It should look like as follows:<br />
Quote:<br />
remote_smtp:<br />
driver = smtp<br />
interface = 79.99.65.167  # Your new Mail server IP address.</p>
<p>Now save your changes and exit out from your exim configuration file.</p>
<p>Note : Dont forget to set read only attributes on exim configuration file, so that it wont get reset to default automatically ( It  might get removed in new Cpanel/WHM versions but if you have used the &#8220;Exim configuration editor&#8221; option under WHM this change will remain intact over further updates).</p>
<p>And if you are setting an attribute you can do it using following command:<br />
# chattr +aui /etc/exim.conf</p>
<p>Start exim service on your server.<br />
# service exim restart or /etc/init.d/exim restart</p>
<p>Setting a reverse DNS for this new IP address to point a valid FQDN would be a good idea and we recommend this. Now<br />
try sending a test email and you will find that, it was sent using this new IP address configured under your exim configuration.</p>
<p> <img src='http://gnusys.net/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/04/add-exim-interface-ip/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Horde Session Handler error</title>
		<link>http://gnusys.net/kb/index.php/2009/04/horde-session-handler-error/</link>
		<comments>http://gnusys.net/kb/index.php/2009/04/horde-session-handler-error/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 14:44:31 +0000</pubDate>
		<dc:creator>manu suresh</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://79.99.65.167/kb/?p=100</guid>
		<description><![CDATA[Error:- Can’t find file: ‘horde_sessionhandler.MYI’
If you get this error, you’ve most likely done a file-based MySQL backup restore, and the InnoDB files are not present. The horde_sessionhandler table is an InnoDB table but not a MyISAM.
To fix this first you will need to stop mysql
# /etc/init.d/mysqld stop
Then remove the innoDB table
# rm /var/lib/mysql/horde/horde_sessionhandler.frm
Then start MySQL
# [...]]]></description>
			<content:encoded><![CDATA[<p>Error:- Can’t find file: ‘horde_sessionhandler.MYI’</p>
<p>If you get this error, you’ve most likely done a file-based MySQL backup restore, and the InnoDB files are not present. The horde_sessionhandler table is an InnoDB table but not a MyISAM.</p>
<p>To fix this first you will need to stop mysql<br />
# /etc/init.d/mysqld stop</p>
<p>Then remove the innoDB table<br />
# rm /var/lib/mysql/horde/horde_sessionhandler.frm</p>
<p>Then start MySQL</p>
<p># /etc/init.d/mysqld start</p>
<p>Now re-create the table:<br />
# mysql -u admin -p`cat /etc/psa/.psa.shadow`<br />
mysql&gt;CREATE TABLE horde_sessionhandler (session_id VARCHAR(32) NOT NULL, session_lastmodified INT NOT NULL, session_data LONGBLOB, PRIMARY KEY (session_id)) ENGINE = InnoDB;<br />
GRANT SELECT, INSERT, UPDATE, DELETE ON horde_sessionhandler TO horde@localhost;</p>
<p> <img src='http://gnusys.net/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://gnusys.net/kb/index.php/2009/04/horde-session-handler-error/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
