<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>[How2CentOS] CentOS Tutorials</title>
	
	<link>http://www.how2centos.com</link>
	<description>CentOS Tutorials</description>
	<lastBuildDate>Tue, 08 May 2012 09:01:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/how2centos" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="how2centos" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">how2centos</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>CentOS 6 Puppet Install</title>
		<link>http://www.how2centos.com/centos-6-puppet-install/</link>
		<comments>http://www.how2centos.com/centos-6-puppet-install/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 12:51:05 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 6 Tutorials]]></category>
		<category><![CDATA[CentOS 6.2 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2473</guid>
		<description><![CDATA[Puppet is a system for automating system administration tasks. Its automation saves you countless hours of frustration, monotony and reinventing the wheel. It lets you perform administrative task from a central systems to any number of systems running any variant of operating system. For a more complete description visit Puppet Labs. Installing the Puppet CentOS<a href="http://www.how2centos.com/centos-6-puppet-install/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/hO6vuncBb0j-VAEAv85sbavY1cI/0/da"><img src="http://feedads.g.doubleclick.net/~a/hO6vuncBb0j-VAEAv85sbavY1cI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/hO6vuncBb0j-VAEAv85sbavY1cI/1/da"><img src="http://feedads.g.doubleclick.net/~a/hO6vuncBb0j-VAEAv85sbavY1cI/1/di" border="0" ismap="true"></img></a></p><p><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="CentOS 6 Logo" width="42" height="40" class="alignleft size-full wp-image-225"/> Puppet is a system for automating system administration tasks. Its automation saves you countless hours of frustration, monotony and reinventing the wheel. It lets you perform administrative task from a central systems to any number of systems running any variant of operating system.</p>
<p>For a more complete description visit <a href="http://reductivelabs.com/trac/puppet/wiki/AboutPuppet">Puppet Labs.</a></p>
<h2>Installing the Puppet CentOS 6 packages</h2>
<h3>Install the Puppet Repository</h3>
<blockquote><p># vi /etc/yum.repos.d/puppet.repo</p></blockquote>
<p>
<blockquote>[puppetlabs]<br />name=Puppet Labs Packages<br />baseurl=http://yum.puppetlabs.com/el/$releasever/products/$basearch/<br />enabled=1<br />gpgcheck=1<br />gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs</p></blockquote>
<h3>Install the EPEL x86_64 YUM Repository</h3>
<blockquote><p># rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm</p></blockquote>
<h3>Install the Puppet Master packages</h3>
<blockquote><p>
# yum install puppet-server
</p></blockquote>
<h3>Install the Puppet Client packages</h3>
<blockquote><p>
# yum install puppet
</p></blockquote>
<p><span id="more-2473"></span></p>
<h2>A Simple Manifest: Managing Ownership of a File</h2>
<p>Step 1: Create a minimal manifest file called site.pp in /etc/puppet/manifests with the following content:</p>
<blockquote><p>
# vi /etc/puppet/manifests/site.pp
</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;"># /etc/puppet/manifests/site.pp
&nbsp;
import &quot;classes/*&quot;
&nbsp;
node default {
    include sudo
 }</pre></td></tr></table></div>

<p>Step 2: Next create the sudo.pp class in /etc/puppet/manifests/classes/ with the following content:</p>
<blockquote><p>
# vi /etc/puppet/manifests/classes/sudo.pp
</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;"># /etc/puppet/manifests/classes/sudo.pp
&nbsp;
class sudo {
    file { &quot;/etc/sudoers&quot;:
        owner =&gt; &quot;root&quot;,
        group =&gt; &quot;root&quot;,
        mode  =&gt; 440,
    }
}</pre></td></tr></table></div>

<p>This class which will ensure that the owner, group, and mode of the /etc/sudoers file will be set consistently across all systems that belong to that class.</p>
<p>Step 3: Start the Puppet Master service and enable startup on boot </p>
<blockquote><p>
# service puppet-server start<br />
# chkconfig puppet-server on
</p></blockquote>
<h3>Configuring Puppet</h3>
<p>Configure the puppet client to connect to the server and enable logging. Edit the file /etc/sysconfig/puppet and uncomment the PUPPET_LOG and PUPPET_SERVER line specifying the servers address.</p>
<blockquote><p>
# vi /etc/sysconfig/puppet
</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;"># The puppetmaster server
PUPPET_SERVER=PuppetMaster
&nbsp;
# If you wish to specify the port to connect to do so here
#PUPPET_PORT=8140
&nbsp;
# Where to log to. Specify syslog to send log messages to the system log.
PUPPET_LOG=/var/log/puppet/puppet.log
&nbsp;
# You may specify other parameters to the puppet client here
#PUPPET_EXTRA_OPTS=--waitforcert=500</pre></td></tr></table></div>

<p>The client will automatically pull configuration from the server every 30 minutes, start it as a service and enable startup on boot</p>
<blockquote><p>
# service puppet start<br />
# chkconfig puppet on
</p></blockquote>
<h3>Sign the SSL key request from the Puppet Client</h3>
<p>In order for the two systems to communicate securely we need to create signed SSL certificates. You should be logged into both the <em>Puppet Master</em> and <em>Puppet</em> machines for this next step. </p>
<blockquote><p>
# puppetca &#45;&#45;list<br />
server2.example.co.za
</p></blockquote>
<blockquote><p>
# puppetca &#45;&#45;sign server2.example.co.za<br />
Signed server2.example.co.za
</p></blockquote>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/ZUGTBfrkfdE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/centos-6-puppet-install/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install Percona XtraDB Cluster on CentOS 6.2</title>
		<link>http://www.how2centos.com/install-percona-xtradb-cluster-on-centos-6-2/</link>
		<comments>http://www.how2centos.com/install-percona-xtradb-cluster-on-centos-6-2/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 19:04:44 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 6 Tutorials]]></category>
		<category><![CDATA[CentOS 6.2 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2442</guid>
		<description><![CDATA[Percona XtraDB Cluster is a new high availability and high scalability solution for MySQL users. XtraDB Cluster integrates Percona Server with the Galera library of high availability solutions in a single product package. Percona XtraDB is an enhanced version of the InnoDB storage engine for MySQL and MariaDB. It has much faster performance than InnoDB<a href="http://www.how2centos.com/install-percona-xtradb-cluster-on-centos-6-2/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/lw4RVhF7_AWDBsNPyzWah1wrM6w/0/da"><img src="http://feedads.g.doubleclick.net/~a/lw4RVhF7_AWDBsNPyzWah1wrM6w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/lw4RVhF7_AWDBsNPyzWah1wrM6w/1/da"><img src="http://feedads.g.doubleclick.net/~a/lw4RVhF7_AWDBsNPyzWah1wrM6w/1/di" border="0" ismap="true"></img></a></p><p><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="CentOS 6 Logo" width="42" height="40" class="alignleft size-full wp-image-225"/> <a href="http://www.percona.com/software/percona-xtradb-cluster/" target="_blank">Percona XtraDB Cluster</a> is a new high availability and high scalability solution for MySQL users. XtraDB Cluster integrates <a href="http://www.percona.com/software/percona-xtradb-cluster/" target="_blank">Percona </a>Server with the Galera library of high availability solutions in a single product package. Percona XtraDB is an enhanced version of the InnoDB storage engine for MySQL and MariaDB. It has much faster performance than InnoDB and better scalability on modern hardware.</p>
<p>This tutorial is how to setup a 3-node XtraDB cluster, assuming you are running CentOS Linux 6.2 64-bit.</p>
<h3>Install Percona’s CentOS 6 repositories:</h3>
<blockquote><p>
# rpm -Uhv http://repo.percona.com/testing/centos/6/os/noarch/percona-testing-0.0-1.noarch.rpm<br />
# rpm -Uhv http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm
</p></blockquote>
<h3>Install Percona XtraDB Cluster packages:</h3>
<blockquote><p>
# yum install Percona-XtraDB-Cluster-server Percona-XtraDB-Cluster-client
</p></blockquote>
<p><span id="more-2442"></span><br />
XtraDB Cluster requires a couple of TCP ports to operate. Easiest way:</p>
<blockquote><p>
# service iptables stop
</p></blockquote>
<p>If you want to open only specific ports, you need to open 3306, 4444, 4567, 4568 ports. </p>
<p>For example for 4567 port (substitute 10.0.0.1 by your IP):</p>
<blockquote><p>
# iptables -A INPUT -i eth0 -p tcp -m tcp &#8211;source 10.0.0.1/24 &#8211;dport 4567 -j ACCEPT
</p></blockquote>
<p>Now repeat on all XtraDB cluster nodes</p>
<h3>Create /etc/my.cnf files</h3>
<p>On the first XtraDB Cluster node (assume IP 10.0.0.10):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqld<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">datadir</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>data
<span style="color: #007800;">user</span>=mysql
&nbsp;
<span style="color: #007800;">binlog_format</span>=ROW
&nbsp;
<span style="color: #007800;">wsrep_provider</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>libgalera_smm.so
&nbsp;
<span style="color: #007800;">wsrep_cluster_address</span>=gcomm:<span style="color: #000000; font-weight: bold;">//</span>
&nbsp;
<span style="color: #007800;">wsrep_slave_threads</span>=<span style="color: #000000;">2</span>
<span style="color: #007800;">wsrep_cluster_name</span>=trimethylxanthine
<span style="color: #007800;">wsrep_sst_method</span>=rsync
<span style="color: #007800;">wsrep_node_name</span>=node1
&nbsp;
<span style="color: #007800;">innodb_locks_unsafe_for_binlog</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">innodb_autoinc_lock_mode</span>=<span style="color: #000000;">2</span></pre></td></tr></table></div>

<p>On the second XtraDB Cluster node:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqld<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">datadir</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>data
<span style="color: #007800;">user</span>=mysql
&nbsp;
<span style="color: #007800;">binlog_format</span>=ROW
&nbsp;
<span style="color: #007800;">wsrep_provider</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>libgalera_smm.so
&nbsp;
<span style="color: #007800;">wsrep_cluster_address</span>=gcomm:<span style="color: #000000; font-weight: bold;">//</span>10.0.0.10
&nbsp;
<span style="color: #007800;">wsrep_slave_threads</span>=<span style="color: #000000;">2</span>
<span style="color: #007800;">wsrep_cluster_name</span>=trimethylxanthine
<span style="color: #007800;">wsrep_sst_method</span>=rsync
<span style="color: #007800;">wsrep_node_name</span>=node2
&nbsp;
<span style="color: #007800;">innodb_locks_unsafe_for_binlog</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">innodb_autoinc_lock_mode</span>=<span style="color: #000000;">2</span></pre></td></tr></table></div>

<p>On the third XtraDB Cluster node:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>mysqld<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">datadir</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>data
<span style="color: #007800;">user</span>=mysql
&nbsp;
<span style="color: #007800;">binlog_format</span>=ROW
&nbsp;
<span style="color: #007800;">wsrep_provider</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64<span style="color: #000000; font-weight: bold;">/</span>libgalera_smm.so
&nbsp;
<span style="color: #007800;">wsrep_cluster_address</span>=gcomm:<span style="color: #000000; font-weight: bold;">//</span>10.0.0.10
&nbsp;
<span style="color: #007800;">wsrep_slave_threads</span>=<span style="color: #000000;">2</span>
<span style="color: #007800;">wsrep_cluster_name</span>=trimethylxanthine
<span style="color: #007800;">wsrep_sst_method</span>=rsync
<span style="color: #007800;">wsrep_node_name</span>=node3
&nbsp;
<span style="color: #007800;">innodb_locks_unsafe_for_binlog</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">innodb_autoinc_lock_mode</span>=<span style="color: #000000;">2</span></pre></td></tr></table></div>

<p>Start mysqld on the first node:</p>
<blockquote><p>
# service mysql start
</p></blockquote>
<p>When all nodes are in SYNCED stage your cluster is ready!</p>
<p>Connect to database on any node and create database:</p>
<blockquote><p>
# mysql<br />
> CREATE DATABASE how2centos_test;
</p></blockquote>
<p>The new database will be propagated to all nodes.</p>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/MpURrzLqloY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/install-percona-xtradb-cluster-on-centos-6-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download CentOS 6.2 iso</title>
		<link>http://www.how2centos.com/download-centos-6-2-iso/</link>
		<comments>http://www.how2centos.com/download-centos-6-2-iso/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 17:10:19 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 6.2 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2427</guid>
		<description><![CDATA[CentOS 6.2 Downloads You can download CentOS 6.2 via the web/ftp server or via BitTorrent (recommended) client. CentOS 6.2 DVD ISO downloads Download CentOS 6.2 32 bit DVD ISO CentOS-6.2-i386-bin-DVD1.iso and CentOS-6.2-i386-bin-DVD2.iso Download CentOS 6.2 64 bit DVD ISO CentOS-6.2-x86_64-bin-DVD1.iso and CentOS-6.2-x86_64-bin-DVD2.iso CentOS 6.2 DVD ISO Torrents Torrent files for the DVD&#8217;s are available at<a href="http://www.how2centos.com/download-centos-6-2-iso/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/mIj-nA7XJprVVzfzrmriE-CKImM/0/da"><img src="http://feedads.g.doubleclick.net/~a/mIj-nA7XJprVVzfzrmriE-CKImM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mIj-nA7XJprVVzfzrmriE-CKImM/1/da"><img src="http://feedads.g.doubleclick.net/~a/mIj-nA7XJprVVzfzrmriE-CKImM/1/di" border="0" ismap="true"></img></a></p><p><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="CentOS Logo" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /></p>
<h3>CentOS 6.2 Downloads</h3>
<p>You can download CentOS 6.2 via the web/ftp server or via BitTorrent (recommended) client.</p>
<h3>CentOS 6.2 DVD ISO downloads</h3>
<ul>
<li>Download CentOS 6.2 32 bit DVD ISO <a target="_blank"  href="http://ftp.wa.co.za/pub/centos/6.2/isos/i386/CentOS-6.2-i386-bin-DVD1.iso">CentOS-6.2-i386-bin-DVD1.iso</a> and <a href="http://ftp.wa.co.za/pub/centos/6.2/isos/i386/CentOS-6.2-i386-bin-DVD2.iso">CentOS-6.2-i386-bin-DVD2.iso</a></li>
<li>Download CentOS 6.2 64 bit DVD ISO <a  target="_blank" href="http://ftp.wa.co.za/pub/centos/6.2/isos/x86_64/CentOS-6.2-x86_64-bin-DVD1.iso">CentOS-6.2-x86_64-bin-DVD1.iso</a> and <a href="http://ftp.wa.co.za/pub/centos/6.2/isos/x86_64/CentOS-6.2-x86_64-bin-DVD2.iso">CentOS-6.2-x86_64-bin-DVD2.iso</a></li>
</ul>
<h3>CentOS 6.2 DVD ISO Torrents</h3>
<p>Torrent files for the DVD&#8217;s are available at the following location:</p>
<ul>
<li><a href="http://ftp.wa.co.za/pub/centos/6.2/isos/i386/CentOS-6.2-i386-bin-DVD1to2.torrent">Download CentOS 64 i386 torrent file</a></li>
<li><a href="http://ftp.wa.co.za/pub/centos/6.2/isos/x86_64/CentOS-6.2-x86_64-bin-DVD1to2.torrent">Download CentOS 64 x86_64 torrent file</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/5RM4z0RxBE4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/download-centos-6-2-iso/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CentOS Warning: RPMDB altered outside of yum</title>
		<link>http://www.how2centos.com/centos-warning-rpmdb-altered-outside-of-yum/</link>
		<comments>http://www.how2centos.com/centos-warning-rpmdb-altered-outside-of-yum/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 12:07:47 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 5.5 Tutorials]]></category>
		<category><![CDATA[CentOS 5.6 Tutorials]]></category>
		<category><![CDATA[CentOS 5.7 Tutorials]]></category>
		<category><![CDATA[CentOS 6 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2312</guid>
		<description><![CDATA[Yum is an automatic updater and package installer/remover for rpm-based systems. It automatically computes dependencies and figures out what things should occur in order to safely install, remove, and update rpm packages. Yum also efficiently and easily retrieves information on any package installed or available in a repository to the installer. When trying to update<a href="http://www.how2centos.com/centos-warning-rpmdb-altered-outside-of-yum/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/zOymCGjz1LABCJTmQa_iGGXmDxU/0/da"><img src="http://feedads.g.doubleclick.net/~a/zOymCGjz1LABCJTmQa_iGGXmDxU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zOymCGjz1LABCJTmQa_iGGXmDxU/1/da"><img src="http://feedads.g.doubleclick.net/~a/zOymCGjz1LABCJTmQa_iGGXmDxU/1/di" border="0" ismap="true"></img></a></p><p><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="CentOS 6 Logo" width="42" height="40" class="alignleft size-full wp-image-225"/> Yum is an automatic updater and package installer/remover for rpm-based systems. It automatically computes dependencies and figures out what things should occur in order to safely install, remove, and update rpm packages. Yum also efficiently and easily retrieves information on any package installed or available in a repository to the installer.</p>
<p>When trying to update your server via the yum command you might see the following error / warning message:</p>
<p>Warning: RPMDB altered outside of yum.</p>
<blockquote><p>
# yum install nethogs<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
 * base: mirror.cogentco.com<br />
 * epel: mirror.cogentco.com<br />
 * extras: mirror.vcu.edu<br />
 * ius: mirror.rackspace.com<br />
 * updates: centos.aol.com<br />
Setting up Install Process<br />
Resolving Dependencies<br />
&#8211;> Running transaction check<br />
&#8212;> Package nethogs.x86_64 0:0.8.0-1.el6 set to be updated<br />
&#8211;> Finished Dependency Resolution</p>
<p>Dependencies Resolved</p>
<pre>
====================================================================
 Package       Arch            Version          Repository     Size
====================================================================
Installing:
 nethogs      x86_64           0.8.0-1.el6      epel          28 k

Transaction Summary
====================================================================
Install       1 Package(s)
Upgrade       0 Package(s)
</pre>
<p>Total download size: 28 k<br />
Installed size: 53 k<br />
Is this ok [y/N]: y<br />
Downloading Packages:<br />
nethogs-0.8.0-1.el6.x86_64.rpm                                   |  28 kB     00:00<br />
Running rpm_check_debug<br />
Running Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction</p>
<h4>Warning: RPMDB altered outside of yum.</h4>
<p>  Installing     : nethogs-0.8.0-1.el6.x86_64                                       1/1</p>
<p>Installed:<br />
  nethogs.x86_64 0:0.8.0-1.el6</p>
<p>Complete!
</p></blockquote>
<h3>How do you fix this problem?</h3>
<blockquote><p>
# yum clean all
</p></blockquote>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/o5fDQ7YzaBI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/centos-warning-rpmdb-altered-outside-of-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS Change Timezone</title>
		<link>http://www.how2centos.com/centos-change-timezone/</link>
		<comments>http://www.how2centos.com/centos-change-timezone/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 15:22:32 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 5.5 Tutorials]]></category>
		<category><![CDATA[CentOS 5.6 Tutorials]]></category>
		<category><![CDATA[CentOS 5.7 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2269</guid>
		<description><![CDATA[After installing CentOS we sometimes see that the date is not in our desired timezone, instead it defaulted to the PST timezone. Correcting your timezone is an easy operation, so here is a quick guide to change your CentOS timezone configuration file. Firstly you&#8217;ll need to know your timezone and/or country, a list can be<a href="http://www.how2centos.com/centos-change-timezone/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/cJ-5WXkg_AnQ-mx4ksLWNU_vRpY/0/da"><img src="http://feedads.g.doubleclick.net/~a/cJ-5WXkg_AnQ-mx4ksLWNU_vRpY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cJ-5WXkg_AnQ-mx4ksLWNU_vRpY/1/da"><img src="http://feedads.g.doubleclick.net/~a/cJ-5WXkg_AnQ-mx4ksLWNU_vRpY/1/di" border="0" ismap="true"></img></a></p><p><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="CentOS 6 Logo" width="42" height="40" class="alignleft size-full wp-image-225"/> After installing CentOS we sometimes see that the date is not in our desired timezone, instead it defaulted to the PST timezone.</p>
<p>Correcting your timezone is an easy operation, so here is a quick guide to change your CentOS timezone configuration file. </p>
<p>Firstly you&#8217;ll need to know your timezone and/or country, a list can be found in /usr/share/zoneinfo/</p>
<p>The more generic procedure to change the timezone is to create a symlink to file /etc/localtime</p>
<blockquote><p>
# ln -sf /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime
</p></blockquote>
<p>OR you can copy and replace the current localtime setting</p>
<blockquote><p>
# cp /usr/share/zoneinfo/Africa/Johannesburg /etc/localtime
</p></blockquote>
<p>To verify that your timezone is changed use the date command:</p>
<blockquote><p>
# date
</p></blockquote>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/dQtOZsyjuoE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/centos-change-timezone/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Remove all i386 packages from CentOS 5 x86_64</title>
		<link>http://www.how2centos.com/removing-all-i386-packages-from-centos-5-x86_64-server/</link>
		<comments>http://www.how2centos.com/removing-all-i386-packages-from-centos-5-x86_64-server/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 09:27:55 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 5.5 Tutorials]]></category>
		<category><![CDATA[CentOS 5.6 Tutorials]]></category>
		<category><![CDATA[CentOS 5.7 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2261</guid>
		<description><![CDATA[A quick solution to duplicate packet installation. This tutorial will show you how to remove all i386 packages from CentOS 5 x86_64 server # yum remove \*.i\?86]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/2BtHgwHr7V3mWMPA7ZJ8B34ATfc/0/da"><img src="http://feedads.g.doubleclick.net/~a/2BtHgwHr7V3mWMPA7ZJ8B34ATfc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2BtHgwHr7V3mWMPA7ZJ8B34ATfc/1/da"><img src="http://feedads.g.doubleclick.net/~a/2BtHgwHr7V3mWMPA7ZJ8B34ATfc/1/di" border="0" ismap="true"></img></a></p><p><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="CentOS 6 Logo" width="42" height="40" class="alignleft size-full wp-image-225" /> A quick solution to duplicate packet installation. This tutorial will show you how to remove all i386 packages from CentOS 5 x86_64 server</p>
<blockquote><p>
# yum remove \*.i\?86
</p></blockquote>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/KnbBV-Te83U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/removing-all-i386-packages-from-centos-5-x86_64-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>BIOS and Firmware Updates Using Dell Linux Repository</title>
		<link>http://www.how2centos.com/bios-and-firmware-updates-using-dell-linux-repository/</link>
		<comments>http://www.how2centos.com/bios-and-firmware-updates-using-dell-linux-repository/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 13:08:51 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 5.6 Tutorials]]></category>
		<category><![CDATA[CentOS 5.7 Tutorials]]></category>
		<category><![CDATA[CentOS 6 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2243</guid>
		<description><![CDATA[You can update your CentOS 6 system to the latest version or to a specific version of the BIOS and firmware available in the Dell Linux online repository. You can inventory your CentOS 6 system, scan the repository for matching firmware with newer version using repository management software such as yum. Firmware-tools are used to<a href="http://www.how2centos.com/bios-and-firmware-updates-using-dell-linux-repository/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/agUanLt1g_bxwM4nenyQB1OKo0o/0/da"><img src="http://feedads.g.doubleclick.net/~a/agUanLt1g_bxwM4nenyQB1OKo0o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/agUanLt1g_bxwM4nenyQB1OKo0o/1/da"><img src="http://feedads.g.doubleclick.net/~a/agUanLt1g_bxwM4nenyQB1OKo0o/1/di" border="0" ismap="true"></img></a></p><p><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="CentOS 6 Logo" width="42" height="40" class="alignleft size-full wp-image-225" /> You can update your CentOS 6 system to the latest version or to a specific version of the BIOS and firmware available in the Dell Linux online repository. You can inventory your CentOS 6 system, scan the repository for matching firmware with newer version using repository management software such as yum.</p>
<p>Firmware-tools are used to update BIOS and firmware on your system. Using a repository management software, you can easily update your BIOS and firmware to the latest or specific versions on your system.</p>
<h3>Setting Up/Bootstrapping the Repository</h3>
<p>To setup/bootstrap the Dell Linux online repository on your CentOS 6 sever, run the following command at the command prompt:</p>
<blockquote><p>
# wget &#45;q &#45;O &#45; http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
</p></blockquote>
<p>The system is configured to access the Dell Linux online repository using supported repository management software. The Dell GPG keys and libsmbios (BIOS library) are also installed.</p>
<h3>Installing Firmware Tools</h3>
<blockquote><p>
# yum install dell_ft_install
</p></blockquote>
<h3>Downloading Applicable Firmware</h3>
<blockquote><p>
# yum install $(bootstrap_firmware)
</p></blockquote>
<p>You can also inventory your system for the list of existing versions of BIOS and firmware using the following command:</p>
<blockquote><p>
# inventory_firmware
</p></blockquote>
<h3>Updating BIOS and Firmware Using CLI</h3>
<p>Run the following command to inventory the system and scan the repository for new versions of components:</p>
<blockquote><p>
# update_firmware
</p></blockquote>
<p>This command provides information about the existing versions of components on your system and the list of component versions that are available to be installed.</p>
<p>To install all applicable BIOS and firmware updates on your system, run the following command:</p>
<blockquote><p>
# update_firmware &#45;&#45;yes
</p></blockquote>
<p>Once the devices are updated, the &#8220;Execution Success&#8221; message is displayed.</p>
<h3>Automatically Update Firmware</h3>
<p>By default, installing a BIOS or firmware RPM does not apply the update to the hardware. The update is manually applied using the update_firmware command. However, you can automatically update the hardware during RPM installation by configuring the /etc/firmware/firmware.conf file.</p>
<p>To automatically install BIOS and firmware updates, ensure that rpm_mode is set to auto in the firmware.conf file as shown:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>main<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Automatically install BIOS updates when an RPM BIOS Update file is installed</span>
<span style="color: #666666; font-style: italic;"># values: 'auto', 'manual'</span>
<span style="color: #666666; font-style: italic;"># default: 'manual'</span>
<span style="color: #007800;">rpm_mode</span>=auto</pre></td></tr></table></div>

<h3>Viewing Log Information</h3>
<blockquote><p>
# cat /var/log/firmware-updates.log
</p></blockquote>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/4wxkRNSbJ7E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/bios-and-firmware-updates-using-dell-linux-repository/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CentOS 6 Channel Bonding</title>
		<link>http://www.how2centos.com/centos-6-channel-bonding/</link>
		<comments>http://www.how2centos.com/centos-6-channel-bonding/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 09:10:29 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 6 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2229</guid>
		<description><![CDATA[CentOS 6 Channel Bonding allows administrators to bind multiple network interfaces together into a single channel using the bonding kernel module and a special network interface called a channel bonding interface. Channel bonding enables two or more network interfaces to act as one, simultaneously increasing the bandwidth and providing redundancy. CentOS 6 Channel Bonding Channel<a href="http://www.how2centos.com/centos-6-channel-bonding/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/MhP3FP3BYtY2QVZY5W9Xfc7a5Z4/0/da"><img src="http://feedads.g.doubleclick.net/~a/MhP3FP3BYtY2QVZY5W9Xfc7a5Z4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MhP3FP3BYtY2QVZY5W9Xfc7a5Z4/1/da"><img src="http://feedads.g.doubleclick.net/~a/MhP3FP3BYtY2QVZY5W9Xfc7a5Z4/1/di" border="0" ismap="true"></img></a></p><p><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="centos" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" />CentOS 6 Channel Bonding allows administrators to bind multiple network interfaces together into a single channel using the bonding kernel module and a special network interface called a channel bonding interface. Channel bonding enables two or more network interfaces to act as one, simultaneously increasing the bandwidth and providing redundancy.</p>
<h3>CentOS 6 Channel Bonding</h3>
<p>Channel bonding (also known as &#8220;Ethernet bonding&#8221;) is a computer networking arrangement in which two or more network interfaces on a host computer are combined for redundancy or increased throughput.</p>
<p><strong>mode=0 (Balance-rr)</strong> &#8211; This mode provides load balancing and fault tolerance.<br />
<strong>mode=1 (active-backup)</strong> &#8211; This mode provides fault tolerance.<br />
<strong>mode=2 (balance-xor)</strong> &#8211; This mode provides load balancing and fault tolerance.<br />
<strong>mode=3 (broadcast)</strong> &#8211; This mode provides fault tolerance.<br />
<strong>mode=4 (802.3ad)</strong> &#8211; This mode provides load balancing and fault tolerance.<br />
<strong>mode=5 (balance-tlb)</strong> &#8211; Prerequisite: Ethtool support in the base drivers for retrieving the speed of each slave.<br />
<strong>mode=6 (balance-alb)</strong> &#8211; Prerequisite: Ethtool support in the base drivers for retrieving the speed of each slave.<br />
<span id="more-2229"></span><br />
<strong>Note:</strong> Always append extra configuration in case of a rollback.</p>
<h3>Configuring Channel Bonding</h3>
<blockquote><p>
# cd /etc/sysconfig/network-scripts/
</p></blockquote>
<blockquote><p>
# vi ifcfg-bond0
</p></blockquote>
<p>We&#8217;ll be using mode=6 (balance-alb)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">DEVICE</span>=bond0
<span style="color: #007800;">USERCTL</span>=no
<span style="color: #007800;">BOOTPROTO</span>=none
<span style="color: #007800;">ONBOOT</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">IPADDR</span>=10.0.0.10
<span style="color: #007800;">NETMASK</span>=255.255.0.0
<span style="color: #007800;">NETWORK</span>=10.0.0.0
<span style="color: #007800;">BONDING_OPTS</span>=<span style="color: #ff0000;">&quot;miimon=100 mode=balance-alb&quot;</span>
<span style="color: #007800;">TYPE</span>=Unknown
<span style="color: #007800;">IPV6INIT</span>=no</pre></td></tr></table></div>

<blockquote><p>
# vi ifcfg-eth0
</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">DEVICE</span>=eth0
<span style="color: #007800;">BOOTPROTO</span>=none
<span style="color: #007800;">ONBOOT</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">MASTER</span>=bond0
<span style="color: #007800;">SLAVE</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">USERCTL</span>=no</pre></td></tr></table></div>

<blockquote><p>
# vi ifcfg-eth1
</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">DEVICE</span>=eth1
<span style="color: #007800;">BOOTPROTO</span>=none
<span style="color: #007800;">ONBOOT</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">MASTER</span>=bond0
<span style="color: #007800;">SLAVE</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">USERCTL</span>=no</pre></td></tr></table></div>

<blockquote><p>
# vi ifcfg-eth2
</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">DEVICE</span>=eth2
<span style="color: #007800;">BOOTPROTO</span>=none
<span style="color: #007800;">ONBOOT</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">MASTER</span>=bond0
<span style="color: #007800;">SLAVE</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
<span style="color: #007800;">USERCTL</span>=no</pre></td></tr></table></div>

<p>Due to the fact that /etc/modprobe.conf has been deprecated in CentOS 6, the process of bonding network interfaces has changed a bit.</p>
<p>Now instead of defining your bond in your /etc/modprobe.conf, you define it in /etc/modprobe.d/bonding.conf</p>
<blockquote><p>
# vi /etc/modprobe.d/bonding.conf
</p></blockquote>
<p>Append the following onto the end out your modprobe config file</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> bond0 bonding</pre></td></tr></table></div>

<blockquote><p>
# servive network restart
</p></blockquote>
<p><script type="text/javascript">var amzn_wdgt= { widgetType:"SearchAndAdd", searchIndex:"All", title:"CentOS 6 Books", width:"555", height:"200", keywords:"centos 6 linux", shuffleProducts:"true", showBorder:"off", marketPlace:"US", widget:"Carousel", tag:"wp-amazon-associate-20" };</script><script type="text/javascript" src="http://wms.assoc-amazon.com/20070822/US/js/swfobject_1_5.js"></script></p>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/fOuVC9SQ9ck" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/centos-6-channel-bonding/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Disable SELinux CentOS 6</title>
		<link>http://www.how2centos.com/disable-selinux-centos-6/</link>
		<comments>http://www.how2centos.com/disable-selinux-centos-6/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 15:33:13 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 6 Tutorials]]></category>
		<category><![CDATA[CentOS 6.2 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2219</guid>
		<description><![CDATA[You need to be aware that by disabling SELinux you will be removing a security mechanism on your CentOS system. Think about this carefully, and if your system is on the Internet and accessed by the public, then think about it some more. Applications should be fixed to work with SELinux, rather than disabling the<a href="http://www.how2centos.com/disable-selinux-centos-6/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/T9WkMDnp3Mv2D7kISqausDDOGe4/0/da"><img src="http://feedads.g.doubleclick.net/~a/T9WkMDnp3Mv2D7kISqausDDOGe4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/T9WkMDnp3Mv2D7kISqausDDOGe4/1/da"><img src="http://feedads.g.doubleclick.net/~a/T9WkMDnp3Mv2D7kISqausDDOGe4/1/di" border="0" ismap="true"></img></a></p><p>You need to be aware that by disabling SELinux you will be removing a security mechanism on your CentOS system. Think about this carefully, and if your system is on the Internet and accessed by the public, then think about it some more. </p>
<p>Applications should be fixed to work with SELinux, rather than disabling the OS security mechanism.</p>
<p>You could even switch to Permissive mode where every operation is allowed. Operations that would be denied are allowed and a message is logged identifying that it would be denied.</p>
<p><strong>If you really need to disable SELinux on CentOS 6 please consider the following:</strong></p>
<p><img src="http://www.how2centos.com/wp-content/uploads/2010/11/warning.gif" alt="SELinux Warning" title="warning" width="412" height="130" class="aligncenter size-full wp-image-1640" /></p>
<blockquote><p>
# vi /etc/selinux/config
</p></blockquote>
<p>Change SELINUX=enforcing</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;"># This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted</pre></td></tr></table></div>

<p>to SELINUX=disabled</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;"># This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted</pre></td></tr></table></div>

<p>This will disable SELinux on your next reboot. </p>
<p>To diable SELinux, without having to reboot, you can use the setenforce command like so:</p>
<blockquote><p>
# setenforce 0
</p></blockquote>
<p>This will revert to enforcing once you reboot<br />
<span id="more-2219"></span><br />
<script type="text/javascript">var amzn_wdgt= { widgetType:"SearchAndAdd", searchIndex:"All", title:"SELinux Books", width:"555", height:"200", keywords:"selinux", shuffleProducts:"true", showBorder:"off", marketPlace:"US", widget:"Carousel", tag:"wp-amazon-associate-20" };</script><script type="text/javascript" src="http://wms.assoc-amazon.com/20070822/US/js/swfobject_1_5.js"></script></p>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/oFXLnmKg1YM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/disable-selinux-centos-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing PHP 5.3 on CentOS 5.7</title>
		<link>http://www.how2centos.com/installing-php-5-3-on-centos-5-7/</link>
		<comments>http://www.how2centos.com/installing-php-5-3-on-centos-5-7/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 11:33:35 +0000</pubDate>
		<dc:creator>How2CentOS</dc:creator>
				<category><![CDATA[CentOS 5.7 Tutorials]]></category>

		<guid isPermaLink="false">http://www.how2centos.com/?p=2208</guid>
		<description><![CDATA[The assumption for installing PHP 5.3 on CentOS 5.7 tutorial is that you are running as root and have a basic understanding of the software required but if you follow this tutorial you should be able to complete the task successfully. Lets begin by installing yum-priorities to enforce ordered protection of repositories, by associating priorities<a href="http://www.how2centos.com/installing-php-5-3-on-centos-5-7/"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Q-YmYbkz5UcyQuE6vn4bEcF5DLg/0/da"><img src="http://feedads.g.doubleclick.net/~a/Q-YmYbkz5UcyQuE6vn4bEcF5DLg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Q-YmYbkz5UcyQuE6vn4bEcF5DLg/1/da"><img src="http://feedads.g.doubleclick.net/~a/Q-YmYbkz5UcyQuE6vn4bEcF5DLg/1/di" border="0" ismap="true"></img></a></p><p><img src="http://www.how2centos.com/wp-content/uploads/2009/05/php.gif" alt="php" title="php" width="75" height="40" class="alignleft size-full wp-image-226" /><img src="http://www.how2centos.com/wp-content/uploads/2009/05/centos.gif" alt="centos" title="centos" width="42" height="40" class="alignleft size-full wp-image-225" /> The assumption for installing PHP 5.3 on CentOS 5.7 tutorial is that you are running as root and have a basic understanding of the software required but if you follow this tutorial you should be able to complete the task successfully.</p>
<p>Lets begin by installing yum-priorities to enforce ordered protection of repositories, by associating priorities to repositories.</p>
<blockquote><p>
# yum install yum-priorities
</p></blockquote>
<h3>Installing PHP 5.3 on CentOS 5.7 x86_64</h3>
<h3>Install the EPEL x86_64 YUM Repository</h3>
<blockquote><p># rpm -Uvh http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm</p></blockquote>
<h3>Install the IUS x86_64 YUM Repository</h3>
<blockquote><p># rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm</p></blockquote>
<blockquote><p>
# yum install php53u php53u-common php53u-devel
</p></blockquote>
<blockquote><p>
# php -v<br />
PHP 5.3.8 (cli) (built: Aug 23 2011 06:33:32)<br />
Copyright (c) 1997-2011 The PHP Group<br />
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
</p></blockquote>
<h3>Installing PHP 5.3 on CentOS 5.7 i386</h3>
<h3>Install the EPEL i386 YUM Repository</h3>
<blockquote><p># rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm</p></blockquote>
<h3>Install the IUS i386 YUM Repository</h3>
<blockquote><p># rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-10.ius.el5.noarch.rpm</p></blockquote>
<blockquote><p>
# yum install php53u php53u-common php53u-devel
</p></blockquote>
<blockquote><p>
# php -v<br />
PHP 5.3.8 (cli) (built: Aug 23 2011 06:33:32)<br />
Copyright (c) 1997-2011 The PHP Group<br />
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
</p></blockquote>
<img src="http://feeds.feedburner.com/~r/how2centos/~4/ohp5RiNadEI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.how2centos.com/installing-php-5-3-on-centos-5-7/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching 19/55 queries in 0.027 seconds using memcached
Object Caching 1181/1241 objects using memcached

Served from: www.how2centos.com @ 2012-05-08 11:01:46 -->

