<?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>Avinesh's Blog &#187; linux</title>
	<atom:link href="http://www.avinesh.com/blog/index.php/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.avinesh.com/blog</link>
	<description>Life. Technology. Cars.</description>
	<lastBuildDate>Thu, 01 Oct 2009 20:08:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Upgrading Red Hat 9 to CentOS 4.5</title>
		<link>http://www.avinesh.com/blog/index.php/2008/04/14/upgrading-red-hat-9-to-centos-45/</link>
		<comments>http://www.avinesh.com/blog/index.php/2008/04/14/upgrading-red-hat-9-to-centos-45/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 02:52:23 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=79</guid>
		<description><![CDATA[It&#8217;s been a few months since I last posted an entry to my blog. Life has been busy. This blog has been busy, in terms of web traffic to my Anonymous Letters and Starbucks posts below. Time for a tech post. I had the privilege of upgrading an ancient Red Hat 9 Linux box to [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a few months since I last posted an entry to my blog.  Life has been busy.  This blog has been busy, in terms of web traffic to my Anonymous Letters and Starbucks posts below.</p>
<p>Time for a tech post.  I had the privilege of upgrading an ancient Red Hat 9 Linux box to CentOS 4.5.  Red Hat Linux has been EOL for a very long time, and was superceded by Fedora, which has had seven major releases.  That&#8217;s the equivalent of running Windows 3.1 <img src='http://www.avinesh.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Well, not quite <img src='http://www.avinesh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Anyhow, the box at hand appeared to be a custom web server.  I will outline the steps I used to successfully upgrade it to CentOS 4.5.</p>
<p>1. Download the CentOS 4.5 CD set or DVD image from www.centos.org.<br />
2. Put in CD 1 or the DVD image.<br />
3. Reboot the old Red Hat 9 box and ensure that the BIOS allows booting from the CD/DVD drive.<br />
4. Enter the following at the linux boot prompt and press Enter: <em>linux upgradeany</em><br />
5. The system will happily hum along while Red Hat 9 is upgraded to CentOS 4.5.<br />
6. If &#8216;yum&#8217; wasn&#8217;t installed, you will need to install it:<br />
<em>rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm<br />
rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm<br />
rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm<br />
rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm<br />
rpm -ivh http://centos.arcticnetwork.ca/4.5/os/i386/CentOS/RPMS/yum-2.4.3-3.el4.centos.noarch.rpm</em><br />
7. Now, run the following command and press Enter: <em>yum update</em><br />
8. Allow yum to run and update the required packages.  Reboot if yum downloads and installs a new kernel.<br />
9. Since the box in question had a custom Apache and PHP configuration, I reinstalled them manually:<br />
<em>yum install httpd<br />
yum install php<br />
yum install mysql<br />
yum install mysql-server<br />
yum install php-mysql</em><br />
10. I had to update the MySQL configuration to point to the correct socket:<br />
Update my.cnf:<br />
<em>socket=/var/lib/mysql/mysql.sock</em><br />
instead of<br />
socket=/tmp/mysql.sock<br />
and add the following to use your existing database passwords<br />
<em>old_passwords=1</em><br />
11. Copy any required PHP extensions to new system path:<br />
<em>cp -R /usr/local/lib/php/extensions/* /usr/lib/php4</em><br />
12. Edit /etc/php.ini:<br />
<em>error_reporting  =  E_ALL &#038; ~E_NOTICE<br />
extension=mysql.so</em><br />
13. Finally, set services to start up automatically:<br />
<em>chkconfig &#8211;level 345 httpd on<br />
chkconfig &#8211;level 345 mysqld on<br />
chkconfig &#8211;level 345 sendmail on</em><br />
14. There you have it.  The server should be happily running CentOS 4.5 now.  Remember to keep it up-to-date by running <em>yum update </em> regularly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2008/04/14/upgrading-red-hat-9-to-centos-45/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now Running Ubuntu Server 7.04</title>
		<link>http://www.avinesh.com/blog/index.php/2007/05/11/now-running-ubuntu-server-704/</link>
		<comments>http://www.avinesh.com/blog/index.php/2007/05/11/now-running-ubuntu-server-704/#comments</comments>
		<pubDate>Fri, 11 May 2007 17:53:06 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=70</guid>
		<description><![CDATA[I finally decided to upgrade my Ubuntu Server 6.10 install to the latest version, 7.04 (Feisty Fawn). Out of habit, I now wait a few weeks before upgrading to the latest version of anything to ensure any last minute bugs get worked out. Best of all, I upgraded the entire OS remotely using SSH. Upgrading [...]]]></description>
			<content:encoded><![CDATA[<p>I finally decided to upgrade my Ubuntu Server 6.10 install to the latest version, 7.04 (Feisty Fawn).  Out of habit, I now wait a few weeks before upgrading to the latest version of anything to ensure any last minute bugs get worked out.</p>
<p>Best of all, I upgraded the entire OS remotely using SSH.  Upgrading your OS remotely is usually not a good idea, but if you know what you&#8217;re doing, go for it!  Ensure you backup any custom/modified configuration files just in case you press a wrong key during the upgrade! <img src='http://www.avinesh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   The upgrade worked well, with the exception of recompiling eAccelerator (to work with PHP 5.2.2) and updating a line (see below) of code in WordPress to make everything work smoothly.</p>
<p>Immediately following the upgrade, I noticed that my WordPress blog was loading very slowly and I also noticed random strings of hexadecimal characters at the top of the main blog page.</p>
<p>If you upgrade your server to Ubuntu Server 7.04 and run WordPress 2.1.x, ensure that you change line 832 in wp-includes/functions.php to the following (all on one line):</p>
<blockquote><p>
@header($_SERVER["SERVER_PROTOCOL"].&#8221; &#8220;.$header.&#8221; &#8220;.$text, true, $header);
</p></blockquote>
<p>Once you make the above change, your blog should load normally.</p>
<p><strong>Update (5.15.2007):</strong></p>
<p>With WordPress 2.2 (released today), the aforementioned WordPress fix is now irrelevant.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2007/05/11/now-running-ubuntu-server-704/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Ubuntu &#8211; Part 2</title>
		<link>http://www.avinesh.com/blog/index.php/2007/05/08/configuring-ubuntu-part-2/</link>
		<comments>http://www.avinesh.com/blog/index.php/2007/05/08/configuring-ubuntu-part-2/#comments</comments>
		<pubDate>Wed, 09 May 2007 04:22:28 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=69</guid>
		<description><![CDATA[Opps. I just checked a few of my older blog posts and quickly realized I neglected to post part 2 of my &#8216;Configuring Ubuntu &#8211; Part 1&#8242; guide. Well, here it is! By default, Ubuntu Server installs MySQL and PHP. However, it doesn&#8217;t tweak the system for performance. If you run a WordPress blog on [...]]]></description>
			<content:encoded><![CDATA[<p>Opps. I just checked a few of my older blog posts and quickly realized I neglected to post part 2 of my &#8216;Configuring Ubuntu &#8211; Part 1&#8242; guide.</p>
<p>Well, here it is!</p>
<p>By default, Ubuntu Server installs MySQL and PHP.  However, it doesn&#8217;t tweak the system for performance.  If you run a WordPress blog on your server, you may not realize that your blog could run more efficiently.  WordPress relies on both PHP and MySQL.  PHP scripts need to be read from a server&#8217;s hard drive, parsed by the web server software and then executed.  Wouldn&#8217;t it be nice if the server could just skip the first two steps and just execute PHP scripts as quickly as plain HTML?</p>
<p>That&#8217;s where <a href="http://eaccelerator.net/" target="_blank">eAccelerator</a> comes in.  eAccelerator is a free, open-source PHP accelerator and cache.  I&#8217;ve been using it for nearly seven years on personal and commercial servers.  In other words, it&#8217;s very stable for a free product.</p>
<p>Let&#8217;s get started.<br />
<span id="more-69"></span></p>
<p>First of all, you need to ensure that you have the php5-dev package installed on your server.  It&#8217;s likely not installed, so let&#8217;s install it:</p>
<blockquote><p>
you@yourserver:~$ sudo apt-get install php5-dev
</p></blockquote>
<p>Next, download the latest build and extract it:</p>
<blockquote><p>
you@yourserver:~$ wget http://bart.eaccelerator.net/source/0.9.5.1/eaccelerator-0.9.5.1.tar.bz2<br />
you@yourserver:~$ tar -xvjf eaccelerator-0.9.5.1.tar.bz2<br />
you@yourserver:~$ cd eaccelerator-0.9.5.1
</p></blockquote>
<p>Time to compile eAcccelerator:</p>
<blockquote><p>
you@yourserver:~$ sudo find / -name phpize<br />
/usr/bin/phpize<br />
you@yourserver:~$ export PHP_PREFIX=&#8221;/usr/bin&#8221;<br />
you@yourserver:~$ $PHP_PREFIX/phpize<br />
you@yourserver:~$ ./configure &#8211;enable-eaccelerator=shared &#8211;with-php-config=$PHP_PREFIX/php-config<br />
you@yourserver:~$ sudo apt-get install make<br />
you@yourserver:~$ make
</p></blockquote>
<p>That was a mouthful, eh?  Next, we need to install the eAccelerator module we just created:</p>
<blockquote><p>
you@yourserver:~$ cd modules<br />
you@yourserver:~$ sudo cp eaccelerator.so /usr/lib/php5/20051025/
</p></blockquote>
<p>Edit your php.ini and paste the following block into it after the <em>extensions</em> block:</p>
<blockquote><p>
zend_extension=&#8221;/usr/lib/php5/20051025/eaccelerator.so&#8221;<br />
eaccelerator.shm_size=&#8221;4&#8243;<br />
eaccelerator.cache_dir=&#8221;/tmp/eaccelerator&#8221;<br />
eaccelerator.enable=&#8221;1&#8243;<br />
eaccelerator.optimizer=&#8221;1&#8243;<br />
eaccelerator.check_mtime=&#8221;1&#8243;<br />
eaccelerator.debug=&#8221;0&#8243;<br />
eaccelerator.filter=&#8221;"<br />
eaccelerator.shm_max=&#8221;0&#8243;<br />
eaccelerator.shm_ttl=&#8221;0&#8243;<br />
eaccelerator.shm_prune_period=&#8221;0&#8243;<br />
eaccelerator.shm_only=&#8221;1&#8243;<br />
eaccelerator.compress=&#8221;1&#8243;<br />
eaccelerator.compress_level=&#8221;7&#8243;
</p></blockquote>
<p>Almost done.  Create <em>/tmp/eaccelerator</em>:</p>
<blockquote><p>
you@yourserver:~$ mkdir /tmp/eaccelerator<br />
you@yourserver:~$ chmod 777 /tmp/eaccelerator
</p></blockquote>
<p>One more step!  We need to restart Apache for the changes to take effect:</p>
<blockquote><p>
you@yourserver:~$ sudo /etc/init.d/apache2 restart
</p></blockquote>
<p>There you have it.  Your PHP-based scripts and applications should run nearly 70% faster!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2007/05/08/configuring-ubuntu-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Ubuntu Server 6.06 to 6.10 (Edgy)</title>
		<link>http://www.avinesh.com/blog/index.php/2006/10/29/upgrading-ubuntu-server-606-dapper-lts-to-610-edgy/</link>
		<comments>http://www.avinesh.com/blog/index.php/2006/10/29/upgrading-ubuntu-server-606-dapper-lts-to-610-edgy/#comments</comments>
		<pubDate>Mon, 30 Oct 2006 00:37:25 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=58</guid>
		<description><![CDATA[On October 26, the Ubuntu team released a new version of Ubuntu, 6.10 (aka Edgy). I waited a couple of days for them to work out any last minute bugs, and decided to proceed with the upgrade today. In the Ubuntu 6.10 / Edgy release notes, Ubuntu recommends the following procedure to upgrade from Dapper [...]]]></description>
			<content:encoded><![CDATA[<p>On October 26, the Ubuntu team released a new version of Ubuntu, 6.10 (aka Edgy).  I waited a couple of days for them to work out any last minute bugs, and decided to proceed with the upgrade today.</p>
<p>In the Ubuntu 6.10 / Edgy release notes, <a href="https://wiki.ubuntu.com/EdgyReleaseNotes" target="_blank">Ubuntu</a> recommends the following procedure to upgrade from Dapper to Edgy:</p>
<blockquote><p># apt-get dist-upgrade &#038;&#038; apt-get dist-upgrade</p></blockquote>
<p>That will not work. Why? Because <em>sources.list</em> needs to be updated first (and <em>apt-get update</em> needs to be run beforehand).</p>
<p><span id="more-58"></span></p>
<p>Prepare to update sources.list by issuing the following command:</p>
<blockquote><p># sudo vi /etc/apt/sources.list</p></blockquote>
<p>Replace all instances of dapper with edgy. My updated <em>sources.list</em> looked as follows:</p>
<blockquote><p>deb <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> edgy main restricted<br />
deb-src <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> edgy main restricted</p>
<p>deb <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> edgy-updates main restricted<br />
deb-src <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> edgy-updates main restricted</p>
<p>deb <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> edgy-security main restricted<br />
deb-src <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> edgy-security main restricted</p></blockquote>
<p>Once you save the file, run the following string of commands:</p>
<blockquote><p># sudo apt-get update &#038;&#038; sudo apt-get dist-upgrade &#038;&#038; sudo apt-get dist-upgrade</p></blockquote>
<p>Go for coffee. Run around the block. Play a game. You get the picture. It will take awhile to download all of the required packages (255 in my case).</p>
<p>Now, run the following commands to ensure everything was installed correctly.? The last line deletes the downloaded files from apt&#8217;s cache, freeing up disk space.</p>
<blockquote><p># sudo apt-get -f install<br />
# sudo dpkg &#8211;configure -a<br />
# sudo apt-get clean</p></blockquote>
<p>Finally, cross your fingers and run the following command:</p>
<blockquote><p># sudo reboot</p></blockquote>
<p>Hopefully, everything worked and your Ubuntu server is running the latest release!</p>
<p>If asked to overwrite a modified configuration file, reply &#8216;N&#8217;. Otherwise, you might end up with a broken system. In my case, I also had to recompile eAccelerator 0.9.5-rc1 as it was compiled for the version of PHP 5 (5.1.2) included with Ubuntu Server 6.06.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2006/10/29/upgrading-ubuntu-server-606-dapper-lts-to-610-edgy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Ubuntu &#8211; Part 1</title>
		<link>http://www.avinesh.com/blog/index.php/2006/09/20/optimizing-ubuntu-part-1/</link>
		<comments>http://www.avinesh.com/blog/index.php/2006/09/20/optimizing-ubuntu-part-1/#comments</comments>
		<pubDate>Thu, 21 Sep 2006 05:08:22 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=54</guid>
		<description><![CDATA[Once I had Ubuntu Server 6.06.1 installed on my new web server, I quickly realized it needed several changes before I could put it online. Hence, this is the first installment in a series of blog entries to help others configure their systems. If you installed from a CD-ROM and have a working network connection [...]]]></description>
			<content:encoded><![CDATA[<p>Once I had Ubuntu Server 6.06.1 installed on my new web server, I quickly realized it needed several changes before I could put it online. Hence, this is the first installment in a series of blog entries to help others configure their systems.</p>
<p>If you installed from a CD-ROM and have a working network connection to your Ubuntu system, you should update the <em>sources.list</em> file used by <em>apt-get</em> so that your system won&#8217;t prompt you to insert the Ubuntu CD-ROM each time you install a new package:</p>
<p>1. Log in to your system via the console.<br />
2. Run the following command: <em>sudo vi /etc/apt/sources.list</em><br />
3. Add a # before the following line (use cursor keys to put cursor in front of the line and then press i, followed by #) :</p>
<blockquote><p>deb cdrom:[Ubuntu-Server 6.06.1 _Dapper &#8230; restricted</p></blockquote>
<p>4. Save <em>sources.list </em>by pressing &#8216;Esc&#8217;, followed by the following sequence of characters to write the file and exit: :wq</p>
<p><span id="more-54"></span></p>
<p>Next, update your system with the latest Ubuntu packages.  Having the latest packages ensures that your system remains secure.</p>
<p>Run <em>sudo apt-get update</em>, followed by <em>sudo apt-get upgrade</em>.  It may take awhile to download updated packages for your installation, depending on your Internet connection.</p>
<p>If you want to admin your server remotely, or via another box on your home network, type the following to install SSH: <em>sudo apt-get install ssh.</em></p>
<p>Ensure that the date on your server is correct by running <em>date</em>:</p>
<blockquote><p>you@yourserver:~$ date<br />
Wed Sep 20 14:12:54 PDT 2006</p></blockquote>
<p>Correct time zone, wrong time.  If the time zone is incorrect, you will need to run the <em>tzconfig</em> utility.</p>
<p>Check to see if the system is set to use UTC or not.</p>
<blockquote><p>you@yourserver:~$ cat /etc/default/rcS | grep &#8220;UTC&#8221;<br />
# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not.<br />
UTC=yes</p></blockquote>
<p>Since you probably want the server to return the time in your local time zone, change the line to read: <em>UTC=no</em></p>
<p>One more step. You&#8217;ll probably want to synchronize the system clock using an official source, provided that your time zone was set during installation.  If so, simply execute the following:</p>
<blockquote><p>you@yourserver:~$ sudo apt-get install ntp-simple ntp-server</p></blockquote>
<p>Ensure that your firewall permits communication over UDP port 123 and you&#8217;re set!</p>
<p>Check back in a couple of days for some more tips.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2006/09/20/optimizing-ubuntu-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bye Old Server.  Hello New Server.</title>
		<link>http://www.avinesh.com/blog/index.php/2006/09/12/bye-old-server-hello-new-server/</link>
		<comments>http://www.avinesh.com/blog/index.php/2006/09/12/bye-old-server-hello-new-server/#comments</comments>
		<pubDate>Tue, 12 Sep 2006 17:56:00 +0000</pubDate>
		<dc:creator>Avinesh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[memtest86]]></category>
		<category><![CDATA[seatools]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.avinesh.com/blog/?p=53</guid>
		<description><![CDATA[My web server was down for most of yesterday, for reasons out of my control. I shelled in only to see one error message upon restarting the Apache web service: Segmentation fault. I checked the last few lines of Apache&#8217;s error_log only to see many more errors related to the same problem. It&#8217;s one of [...]]]></description>
			<content:encoded><![CDATA[<p>My web server was down for most of yesterday, for reasons out of my control.</p>
<p>I shelled in only to see one error message upon restarting the Apache web service: <em>Segmentation fault</em>. I checked the last few lines of Apache&#8217;s <em>error_log</em> only to see many more errors related to the same problem. It&#8217;s one of most dreaded messages one can receive on a Linux box, aside from the dreaded &#8216;kernel panic&#8217;.</p>
<p>A segmentation fault usually means one of two things in the Linux world: a software fault or a hardware fault. So, I set out to determine what the underlying cause was.</p>
<p><span id="more-53"></span></p>
<p># apt-get update<br />
<em>Segmentation Fault</em></p>
<p>As a system package installation tool, <em>apt-get</em> usually runs without any errors (unless imposed by network issues). Perhaps, a corrupt filesystem was the culprit? I created a file in the root of the server, <em>forcefsck</em>, to force a file system scan on the next reboot. However, it turns out that it wasn&#8217;t such a good idea issuing the <em>reboot</em> command remotely, as the system was waiting for my input once I got home. It turns out there were multiple, soft disk errors waiting to be corrected. After correcting the file system errors, I ran <a href="http://www.memtest86.com/" target="_blank">MemTest86+</a> and also Seagate&#8217;s <a href="http://www.seagate.com/support/seatools/" target="_blank">SeaTools</a> to test the RAM and hard drive, respectively. Both turned out to be fine, with no errors. After some more software and hardware testing, the culprit was determined to be the motherboard. Argh! Over 10 GB of data needed to be backed up.</p>
<p>Four hours later (started at 7 PM, finished at 11 PM), the server was up and running on entirely new hardware (well, except for the hard drive). I decided to use <a href="http://www.ubuntu.com/server" target="_blank">Ubuntu</a> Server 6.06.1 LTS for the server operating system this time around. After a couple of minor obstacles (eg. compiling and installing eAccelerator 0.9.5-rc1), everything is running smoothly again <img src='http://www.avinesh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.avinesh.com/blog/index.php/2006/09/12/bye-old-server-hello-new-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
