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

<channel>
	<title>experimental &#187; centos</title>
	<atom:link href="http://www.tajidyakub.com/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tajidyakub.com</link>
	<description>Experience the Experiment</description>
	<lastBuildDate>Sat, 10 Oct 2009 19:32:38 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reinstall Yum Package Manager &#8211; in CentOS</title>
		<link>http://www.tajidyakub.com/nix-basics/reinstall-yum-package-manager-in-centos-2009-10-11.html</link>
		<comments>http://www.tajidyakub.com/nix-basics/reinstall-yum-package-manager-in-centos-2009-10-11.html#comments</comments>
		<pubDate>Sat, 10 Oct 2009 19:32:38 +0000</pubDate>
		<dc:creator>Tajid Yakub</dc:creator>
				<category><![CDATA[Nix Basics]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Reinstall]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://www.tajidyakub.com/?p=39</guid>
		<description><![CDATA[Somehow in an unlucky moment(s) you'll find that your yum command stop working, I have experienced it a couple of time, never find out how it happen.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tajidyakub.com/wp-content/uploads/2009/10/yum-package-reinstall-centos.jpg"><img class="aligncenter size-full wp-image-40" title="yum-package-reinstall-centos" src="http://www.tajidyakub.com/wp-content/uploads/2009/10/yum-package-reinstall-centos.jpg" alt="yum-package-reinstall-centos" width="540" height="80" /></a></p>
<p>Somehow in an unlucky moment(s) you&#8217;ll find that your yum command stop working, I have experienced it a couple of time, never find out how it happen.</p>
<p><span id="more-39"></span>It is quite simple to re install yum in an rpm base linux distros, specifically CentOS in my case. What you need to do first is to download the source file (rpm) from CentOS repo.</p>
<p>Check your current kernel, make sure you download the correct package later;</p>
<pre class="brush: bash">uname -a
Linux xxx.yyy.com 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:21:56 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux</pre>
<p>Go to the correct repo url, and search for yum rpm link url. For x86_64 Kernel, go to http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/ (assuming that you are using the latest version of CentOS), copy the link of yum package, and download them into your server, you must at this point have wget installed.</p>
<pre class="brush: bash">cd /usr/local/src/
wget http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm</pre>
<p>Check yor current version of installed yum</p>
<pre class="brush: bash">rpm -qa | grep yum
yum-metadata-parser-1.1.2-2.el5
yum-updatesd-0.9-2.el5
yum-utils-1.1.16-13.el5.centos
yum-3.2.19-18.el5.centos
yum-fastestmirror-1.1.16-13.el5.centos</pre>
<p>The result confirmed that you have yum-3.2.19-18, erase it using rpm and no dependencies check option.</p>
<pre class="brush: bash">rpm -e --nodeps yum-3.2.19-18.el5.centos</pre>
<p>Reinstall with rpm from yum rpm you just downloaded;</p>
<pre class="brush: bash">rpm -ivh yum-3.2.19-18.el5.centos.noarch.rpm</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tajidyakub.com/nix-basics/reinstall-yum-package-manager-in-centos-2009-10-11.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indonesian CentOS 5.2 Repo (IIX and openIXP)</title>
		<link>http://www.tajidyakub.com/etcetera/indonesian-centos-52-repo-iix-openixp-2008-06-28.html</link>
		<comments>http://www.tajidyakub.com/etcetera/indonesian-centos-52-repo-iix-openixp-2008-06-28.html#comments</comments>
		<pubDate>Sat, 28 Jun 2008 04:32:04 +0000</pubDate>
		<dc:creator>Tajid Yakub</dc:creator>
				<category><![CDATA[Etcetera]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://tajidyakub.com/?p=14</guid>
		<description><![CDATA[For Indonesian CentOS user who search for fast IIX (Local) Repo to update ver.5.2 including x86_64, you could point your repo to http://mirror.lintaswave.net.id/centos/ .
Update
This repo is no longer available, use http://mirror.biz.net.id/ it is the best one available right now (IMO).
]]></description>
			<content:encoded><![CDATA[<p>For Indonesian CentOS user who search for fast IIX (Local) Repo to update ver.5.2 including x86_64, you could point your repo to <a title="CentOS Indonesian Repo" href="http://mirror.lintaswave.net.id/centos/" target="_blank">http://mirror.lintaswave.net.id/centos/</a> .</p>
<h2>Update</h2>
<p>This repo is no longer available, use <a href="http://mirror.biz.net.id/">http://mirror.biz.net.id/</a> it is the best one available right now (IMO).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tajidyakub.com/etcetera/indonesian-centos-52-repo-iix-openixp-2008-06-28.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation and Basic Configuration Apache, MySQL and PHP on CentOS 5.1 (64 bit)</title>
		<link>http://www.tajidyakub.com/web-servers/installation-and-basic-configuration-apache-mysql-and-php-on-centos-51-64-bit-2008-06-27.html</link>
		<comments>http://www.tajidyakub.com/web-servers/installation-and-basic-configuration-apache-mysql-and-php-on-centos-51-64-bit-2008-06-27.html#comments</comments>
		<pubDate>Thu, 26 Jun 2008 18:48:05 +0000</pubDate>
		<dc:creator>Tajid Yakub</dc:creator>
				<category><![CDATA[Web Database]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://tajidyakub.com/?p=11</guid>
		<description><![CDATA[These are the simple steps to Install and do basic configuration Apache 2.2.3, MySQL 5.0.22 and PHP on a base install CentOS 5.1 x86_64.

Required Pack
Install the required package using yum;


yum install gettext httpd mysql mysql-server perl

yum install php php-mysql php-xml php-imap php-mbstring php-mcrypt php-pecl-Fileinfo php-pecl-memcache php-pear-DB php-pear-File php-pear-Log php-pear-Mail-Mime php-pear-Auth-SASL php-pear-Date php-pear-HTTP-Request php-pear-Mail php-pear-Net-Sieve php-pear-Net-Socket [...]]]></description>
			<content:encoded><![CDATA[<p>These are the simple steps to Install and do basic configuration Apache 2.2.3, MySQL 5.0.22 and PHP on a base install CentOS 5.1 x86_64.</p>
<p><span id="more-11"></span></p>
<p><strong>Required Pack</strong></p>
<p>Install the required package using yum;</p>
<pre class="brush: bash">

yum install gettext httpd mysql mysql-server perl

yum install php php-mysql php-xml php-imap php-mbstring php-mcrypt php-pecl-Fileinfo php-pecl-memcache php-pear-DB php-pear-File php-pear-Log php-pear-Mail-Mime php-pear-Auth-SASL php-pear-Date php-pear-HTTP-Request php-pear-Mail php-pear-Net-Sieve php-pear-Net-Socket php-pear-Net-SMTP

yum install openssl perl-Net-SSLeay

yum install php-devel gcc
</pre>
<p><strong>Start the Service</strong></p>
<p>Start Apache and MySQL daemon, and add them to startup script so it will survive reboot.</p>
<pre class="brush: bash">

service httpd restart
chkconfig httpd on

service mysqld restart
chkconfig mysqld on
</pre>
<p><strong>Standard MySQL First Step After Install</strong></p>
<p>Run the mysql_secure script to do basic securing MySQL and give root password to your MySQL databases;</p>
<pre class="brush: bash">mysql_secure_installation</pre>
<p><strong>Apache and Basic Virtual Host Configuration</strong></p>
<p>Edit the apache configuration file to fit your requirement.</p>
<pre class="brush: bash">

vi /etc/httpd/conf/httpd.conf

###Modify

Listen vvv.xxx.yyy.zzz:80  &lt;--Put your IP Address here

###Add

&lt;Directory “/path/to/rootwwwdir/public_html”&gt;
Options Indexes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
AllowOverride None
&lt;/Directory&gt;

&lt;Directory “/path/to/rootwwwdir/public_html”&gt;
Options Indexes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
AllowOverride None
&lt;/Directory&gt;

Virtual Host Configuration

NameVirtualHost vvv.xxx.yyy.zzz:80

&lt;VirtualHost vvv.xxx.yyy.zzz:80&gt;
ServerAdmin hostmaster@magnet-id.com
DocumentRoot /path/to/rootwwwdir/public_html
ServerName virt1.magnet-id.com
ErrorLog logs/virt1.magnet-id.com-error_log
CustomLog logs/virt1.magnet-id.com-access_log common
&lt;/VirtualHost&gt;

&lt;VirtualHost vvv.xxx.yyy.zzz:80&gt;
ServerAdmin hostmaster@magnet-id.com
DocumentRoot /path/to/rootwwwdir/public_html
ServerName virt2.magnet-id.com
ErrorLog logs/virt2.magnet-id.com-error_log
CustomLog logs/virt2.magnet-id.com-access_log common
&lt;/VirtualHost&gt;

###Empty the file
/etc/httpd/conf.d/welcome.conf
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tajidyakub.com/web-servers/installation-and-basic-configuration-apache-mysql-and-php-on-centos-51-64-bit-2008-06-27.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Network Configuration in CentOS</title>
		<link>http://www.tajidyakub.com/networking/basic-network-configuration-in-centos-2008-06-27.html</link>
		<comments>http://www.tajidyakub.com/networking/basic-network-configuration-in-centos-2008-06-27.html#comments</comments>
		<pubDate>Thu, 26 Jun 2008 18:15:20 +0000</pubDate>
		<dc:creator>Tajid Yakub</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Nix Basics]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[IP Address]]></category>

		<guid isPermaLink="false">http://tajidyakub.com/?p=9</guid>
		<description><![CDATA[The file you have to keep an eye on CentOS for your box basic networking configuration is /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0 or /etc/sysconfig/network-scripts/ifcfg-eth0:x for the alias network Interface. Below are the example of output in My CentOS box, /24 IP Block assumed.

cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
BROADCAST=xxx.xxx.xxx.255
IPADDR=xxx.xxx.xxx.12
NETMASK=255.255.255.0
NETWORK=xxx.xxx.xxx.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

cat /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=xxx.magnet-id.com
GATEWAY=xxx.xxx.xxx.1
Put the resolver DNS IP Address on your /etc/resolv.conf (get them from your [...]]]></description>
			<content:encoded><![CDATA[<p>The file you have to keep an eye on CentOS for your box basic networking configuration is /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0 or /etc/sysconfig/network-scripts/ifcfg-eth0:x for the alias network Interface. Below are the example of output in My CentOS box, /24 IP Block assumed.</p>
<p><span id="more-9"></span></p>
<pre class="brush: bash">cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
BROADCAST=xxx.xxx.xxx.255
IPADDR=xxx.xxx.xxx.12
NETMASK=255.255.255.0
NETWORK=xxx.xxx.xxx.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

cat /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=xxx.magnet-id.com
GATEWAY=xxx.xxx.xxx.1</pre>
<p>Put the resolver DNS IP Address on your /etc/resolv.conf (get them from your ISP or Data Center)</p>
<pre class="brush: bash">cat /etc/resolv.conf

nameserver 117.103.57.4
nameserver 117.103.56.5</pre>
<p>If you want to make an alias IP Address, do this step;</p>
<p>Copy the ifcfg startup script</p>
<pre class="brush: bash">cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0</pre>
<p>Edit the newly created ifcfg script, customize to your other IP Address (aliased to the same network interface). Change the Device and IP Address Informations.<br />
Restart Network Service</p>
<pre class="brush: bash">service network restart</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tajidyakub.com/networking/basic-network-configuration-in-centos-2008-06-27.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Your Time Zone</title>
		<link>http://www.tajidyakub.com/nix-basics/change-your-time-zone-2008-06-26.html</link>
		<comments>http://www.tajidyakub.com/nix-basics/change-your-time-zone-2008-06-26.html#comments</comments>
		<pubDate>Thu, 26 Jun 2008 16:42:26 +0000</pubDate>
		<dc:creator>Tajid Yakub</dc:creator>
				<category><![CDATA[Nix Basics]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://tajidyakub.com/?p=3</guid>
		<description><![CDATA[From somewhere else, this is the easiest way I found to change your Box&#8217;s Time Zone
cp /usr/share/zoneinfo/Asia/Jakarta /etc/localtime
That is if your box ran CentOS and you want the Time Zone in WIT (GMT+7)
]]></description>
			<content:encoded><![CDATA[<p>From somewhere else, this is the easiest way I found to change your Box&#8217;s Time Zone</p>
<pre class="brush: bash">cp /usr/share/zoneinfo/Asia/Jakarta /etc/localtime</pre>
<p>That is if your box ran CentOS and you want the Time Zone in WIT (GMT+7)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tajidyakub.com/nix-basics/change-your-time-zone-2008-06-26.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
