<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>clicktx::Tech::Memo &#187; LINUX</title>
	<atom:link href="http://perl.no-tubo.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://perl.no-tubo.net</link>
	<description>perl、 MySQL、オープンソース系、ウェブ系ネタ。なぜか鯖管メモがほとんどを占めている...</description>
	<lastBuildDate>Mon, 23 Jan 2012 10:51:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/category/linux/feed/" />
		<item>
		<title>CentOS 5.5 php5.3.6からphp5.2.17へyumでダウングレード</title>
		<link>http://perl.no-tubo.net/2011/03/27/centos-5-5-php5-3-6%e3%81%8b%e3%82%89php5-2-17%e3%81%b8yum%e3%81%a7%e3%83%80%e3%82%a6%e3%83%b3%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89/</link>
		<comments>http://perl.no-tubo.net/2011/03/27/centos-5-5-php5-3-6%e3%81%8b%e3%82%89php5-2-17%e3%81%b8yum%e3%81%a7%e3%83%80%e3%82%a6%e3%83%b3%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89/#comments</comments>
		<pubDate>Sun, 27 Mar 2011 10:04:36 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[CentOS5.x]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[サーバ管理]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=1529</guid>
		<description><![CDATA[remiリポジトリでphp5.3をyumでインストールしたけど、php5.2で動いていたスクリプトが動かない。
困るのでphpをダウングレードする。
php関連パッケージを調べる。
# yum list installe [...]]]></description>
			<content:encoded><![CDATA[<p>remiリポジトリでphp5.3をyumでインストールしたけど、php5.2で動いていたスクリプトが動かない。<br />
困るのでphpをダウングレードする。</p>
<h3>php関連パッケージを調べる。</h3>
<pre># yum list installed | grep php*
php.i386                               5.3.6-1.el5.remi                installed
php-cli.i386                           5.3.6-1.el5.remi                installed
php-common.i386                        5.3.6-1.el5.remi                installed
php-gd.i386                            5.3.6-1.el5.remi                installed
php-imap.i386                          5.3.6-1.el5.remi                installed
php-ldap.i386                          5.3.6-1.el5.remi                installed
php-mbstring.i386                      5.3.6-1.el5.remi                installed
php-mcrypt.i386                        5.3.6-1.el5.remi                installed
php-mysql.i386                         5.3.6-1.el5.remi                installed
php-pdo.i386                           5.3.6-1.el5.remi                installed
php-pear.noarch                        1:1.9.2-3.el5.remi              installed
php-pgsql.i386                         5.3.6-1.el5.remi                installed
php-xml.i386                           5.3.6-1.el5.remi                installed</pre>
<p># yum remove php*<br />
だと、全てのパッケージが削除されない？ようなので、手動設定でパッケージを削除。</p>
<pre># yum remove php php-cli php-common php-gd php-imap php-ldap php-mbstring php-mcrypt php-mysql php-pdo php-pear php-pgsql php-xml</pre>
<p>※ /etc/php.ini は /etc/php.ini.rpmsave として保存される。<span id="more-1529"></span></p>
<h3>RPMのバージョンを確認</h3>
<li>32bit <a href="http://rpms.famillecollet.com/enterprise/5/olds/i386/">http://rpms.famillecollet.com/enterprise/5/olds/i386/</a></li>
<li>64bit <a href="http://rpms.famillecollet.com/enterprise/5/olds/x86_64/">http://rpms.famillecollet.com/enterprise/5/olds/x86_64/</a></li>
<p>remiにあるバージョンがphp5.2.17-1でした。<br />
RPMをダウンロードしてインストールする方法が紹介されているのだけれど、php-pdo をインストールする際にlibsqlite.so.0に依存していてインストール出来なかった。<br />
（php-mysql、php-pgsqlもphp-pdoに依存しているので両方インストール出来ない）<br />
という事で、yumのバージョン指定インストールで行ってみた。</p>
<h3>yumでバージョン指定してphpをインストール</h3>
<pre># yum install --enablerepo=remi php-common-5.2.17* php-cli-5.2.17* php-5.2.17*</pre>
<h3>php関連モジュールをインストール</h3>
<pre># yum install --enablerepo=remi php-gd-5.2.17* php-imap-5.2.17* php-ldap-5.2.17* php-mbstring-5.2.17* php-mcrypt-5.2.17* php-mysql-5.2.17* php-pdo-5.2.17* php-pgsql-5.2.17* php-xml-5.2.17*</pre>
<p>すんなりインストール完了。<br />
当然ですが、remiリポジトリが導入されていることが前提です。</p>
<h3>失敗編</h3>
<p>以下はRPMパッケージをダウンロードしてインストールしてみたときのメモです。</p>
<pre>wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-cli-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-common-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-gd-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-imap-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-ldap-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-mbstring-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-mcrypt-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-mysql-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-pdo-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-pgsql-5.2.17-1.el5.remi.i386.rpm
wget http://rpms.famillecollet.com/enterprise/5/olds/i386/php-xml-5.2.17-1.el5.remi.i386.rpm</pre>
<pre># rpm -ivh php-common-5.2.17-1.el5.remi.i386.rpm
# rpm -ivh php-cli-5.2.17-1.el5.remi.i386.rpm
# rpm -ivh php-5.2.17-1.el5.remi.i386.rpm
※順番通りにインストールしないと依存関係でインストール出来ない</pre>
<pre># rpm -ivh php-gd-5.2.17-1.el5.remi.i386.rpm
# rpm -ivh php-imap-5.2.17-1.el5.remi.i386.rpm
# rpm -ivh php-ldap-5.2.17-1.el5.remi.i386.rpm
# rpm -ivh php-mbstring-5.2.17-1.el5.remi.i386.rpm
# rpm -ivh php-mcrypt-5.2.17-1.el5.remi.i386.rpm
# rpm -ivh php-xml-5.2.17-1.el5.remi.i386.rpm
※順番はないと思われる</pre>
<pre># rpm -ivh php-pdo-5.2.17-1.el5.remi.i386.rpm
エラー: 依存性の欠如:
	libsqlite.so.0 は php-pdo-5.2.17-1.el5.remi.i386 に必要とされています</pre>
<p>sqliteに入っているらしい。<br />
バージョンを合わせる必要がある。<br />
※yumでインストールした時にsqlite2がインストールされたので、それに入っているのかも。当環境ではsqlite3のみがインストールされていたので。</p>
<p>ここで挫折。yumでのインストールに切り替える。</p>
<p>参考：<br />
<a href="http://www.kencom.biz/archives/2009/0824034550.php">php 5.3.0からphp 5.2.10にダウングレード &#8211; KENCOM.BIZ</a><br />
<a href="http://d.hatena.ne.jp/Loups-garous/20100911/1284213529">CentOS5.5でPHP5.3を5.2にダウングレードする &#8211; 見果てぬ夢</a></p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2011/03/27/centos-5-5-php5-3-6%e3%81%8b%e3%82%89php5-2-17%e3%81%b8yum%e3%81%a7%e3%83%80%e3%82%a6%e3%83%b3%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2011/03/27/centos-5-5-php5-3-6%e3%81%8b%e3%82%89php5-2-17%e3%81%b8yum%e3%81%a7%e3%83%80%e3%82%a6%e3%83%b3%e3%82%b0%e3%83%ac%e3%83%bc%e3%83%89/" />
	</item>
		<item>
		<title>speedyCGIのインストール</title>
		<link>http://perl.no-tubo.net/2010/12/24/speedycgi%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/</link>
		<comments>http://perl.no-tubo.net/2010/12/24/speedycgi%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 01:49:55 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[インストールメモ]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[rpmforge]]></category>
		<category><![CDATA[speedyCGI]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=1082</guid>
		<description><![CDATA[rpmforgeリポジトリを導入していればyumでインストール出来る。
yum install perl-CGI-SpeedyCGI
]]></description>
			<content:encoded><![CDATA[<p>rpmforgeリポジトリを導入していればyumでインストール出来る。</p>
<pre>yum install perl-CGI-SpeedyCGI</pre>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/12/24/speedycgi%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/12/24/speedycgi%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/" />
	</item>
		<item>
		<title>CentOS5.5 x86_64 環境で RaidMan を使う @IBM eserver X3550</title>
		<link>http://perl.no-tubo.net/2010/12/18/centos5-5-x86_64-%e7%92%b0%e5%a2%83%e3%81%a7-raidman-%e3%82%92%e4%bd%bf%e3%81%86-ibm-eserver-x3550/</link>
		<comments>http://perl.no-tubo.net/2010/12/18/centos5-5-x86_64-%e7%92%b0%e5%a2%83%e3%81%a7-raidman-%e3%82%92%e4%bd%bf%e3%81%86-ibm-eserver-x3550/#comments</comments>
		<pubDate>Sat, 18 Dec 2010 05:16:35 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[CentOS5.x]]></category>
		<category><![CDATA[サーバ管理]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Raid]]></category>
		<category><![CDATA[RaidMan]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=1057</guid>
		<description><![CDATA[かなり個人的メモ
環境
IBM eserver X3550(7978MAJ)
CentOS 5.5 インストール時にJAVAをインストール済み
Raid作成、RaidManインストール用CD
IBM ServerRaid [...]]]></description>
			<content:encoded><![CDATA[<p>かなり個人的メモ</p>
<h5>環境</h5>
<p>IBM eserver X3550(7978MAJ)<br />
CentOS 5.5 インストール時にJAVAをインストール済み</p>
<h5>Raid作成、RaidManインストール用CD</h5>
<p>IBM ServerRaid Suport CD v9.00J<br />
IBM serverRaid v9.00J マネージャ</p>
<h3>１）Raid1構成を作成</h3>
<p>IBM ServerRaid Suport CD v9.00J でCDブートして、Radi manager を起動し、Raid1構成を作成する。</p>
<h3>２）OSをインストール</h3>
<p>CentOS5.5をネットインストール。<br />
ftp.riken.jp<br />
/Linux/centos/5/os/x86_64</p>
<p>※OSインストールの際、JAVAを入れておくこと。</p>
<h3>３）RaidManをインストール</h3>
<p>OSインストールが終わったらリブート後、IBM serverRaid v9.00J マネージャCDにある、<br />
linux_x86_64/manager/RaidMan-9.0.x86_64.rpm<br />
をインストール。</p>
<pre>/usr/RaidMan/RaidMan.sh</pre>
<p>をコンソールから実行すると注意が出る。</p>
<p>CentOS5環境では libXp が必要とのこと。<br />
インストール出来るパッケージを調べる。</p>
<pre># yum list | grep libXp
libXpm.x86_64                            3.5.5-3                installed
libXpm.i386                              3.5.5-3                base
libXpm-devel.x86_64                      3.5.5-3                base
libXp.x86_64                             1.0.0-8.1.el5          base
libXp.i386                               1.0.0-8.1.el5          base
libXp-devel.i386                         1.0.0-8.1.el5          base
libXp-devel.x86_64                       1.0.0-8.1.el5          base
libXpm-devel.i386                        3.5.5-3                base</pre>
<p>目的のパッケージは libXp.i386 libXp.x86_64 なのでインストール。</p>
<pre># yum install libXp.i386 libXp.x86_64</pre>
<p>再度 /usr/RaidMan/RaidMan.sh を実行するとRaidManager が立ち上がった。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/12/18/centos5-5-x86_64-%e7%92%b0%e5%a2%83%e3%81%a7-raidman-%e3%82%92%e4%bd%bf%e3%81%86-ibm-eserver-x3550/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/12/18/centos5-5-x86_64-%e7%92%b0%e5%a2%83%e3%81%a7-raidman-%e3%82%92%e4%bd%bf%e3%81%86-ibm-eserver-x3550/" />
	</item>
		<item>
		<title>Linuxのswapパーティションの容量 仮想マシンの場合は？</title>
		<link>http://perl.no-tubo.net/2010/12/16/linux%e3%81%aeswap%e3%83%91%e3%83%bc%e3%83%86%e3%82%a3%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e5%ae%b9%e9%87%8f-%e4%bb%ae%e6%83%b3%e3%83%9e%e3%82%b7%e3%83%b3%e3%81%ae%e5%a0%b4%e5%90%88%e3%81%af%ef%bc%9f/</link>
		<comments>http://perl.no-tubo.net/2010/12/16/linux%e3%81%aeswap%e3%83%91%e3%83%bc%e3%83%86%e3%82%a3%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e5%ae%b9%e9%87%8f-%e4%bb%ae%e6%83%b3%e3%83%9e%e3%82%b7%e3%83%b3%e3%81%ae%e5%a0%b4%e5%90%88%e3%81%af%ef%bc%9f/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 05:40:00 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[仮想化]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=1026</guid>
		<description><![CDATA[Linux のswap領域の謎
OSをインストール際に悩むのがパーティションの容量設定。物理メモリが大量に搭載される昨今、通例の「メモリの2倍」をswapに適用すると8Gメモリなら16Gものディスクを消費してしまう。
物 [...]]]></description>
			<content:encoded><![CDATA[<h3>Linux のswap領域の謎</h3>
<p>OSをインストール際に悩むのがパーティションの容量設定。物理メモリが大量に搭載される昨今、通例の「メモリの2倍」をswapに適用すると8Gメモリなら16Gものディスクを消費してしまう。</p>
<p>物理マシンならまだしも、（それでもSCSIやSASなどのディスクを消費するのはどうかと思うが）仮想環境で仮想ディスクを使う場合、swap領域の確保の為にイメージディスクのサイズを大きくしなくてはならない。</p>
<p>サーバ用途として利用する場合、swapを使うような状態になるとほぼ運用できないくらいのパフォーマンスになってしまう。最低限のswap領域を確保しておけばいいのか調べてみる。</p>
<h3>最低500M？それとも物理メモリと同程度？</h3>
<h5>その１</h5>
<p>swap領域を最低500M確保しておけばいいという記事を見かけた。<br />
<a href="http://itpro.nikkeibp.co.jp/article/COLUMN/20090120/323146/">スワップ区画のサイズはどのぐらいに設定すべきでしょうか &#8211; Linux Q＆A：ITpro</a></p>
<blockquote><p>もっとも物理メモリー量そのままのサイズがスワップ区画に必要なわけではありません。/sys/power/image_sizeに設定されるサイズ（標準では500Mバイト）までメモリー・イメージをシュリンクしてからスワップ区画に書き出します。そのため，500Mバイトあれば十分です。</p></blockquote>
<h5>その２</h5>
<p><a href="http://www.oracle.co.jp/forum/thread.jspa?threadID=35006597&amp;tstart=0">linux DBサーバのswapの容量について（ORACLE）</a></p>
<p>Oracle Databaseの場合だが、このような記事も<br />
<a href="http://otndnld.oracle.co.jp/document/products/oracle11g/111/linux/E05714-04/pre_install.htm#CHDCEBFF">Oracle Databaseのインストール前の要件</a></p>
<blockquote><p>RAM	スワップ領域<br />
1024MB～2048MB	RAMのサイズの1.5倍<br />
2049MB～8192MB	RAMのサイズと同じ<br />
8192MB超	RAMのサイズの0.75倍</p></blockquote>
<p>それでも実メモリと同等程度のswap領域を確保する必要がありそう。</p>
<h5>その３</h5>
<p><a href="http://oshiete1.nifty.com/qa849704.html?order=DESC&amp;by=datetime">Linux での swap の容量について &#8211; @nifty教えて広場</a></p>
<blockquote><p>Linux ではそんなことはなく、メモリが多ければ swap なしでも問題なく動くとつい先ほどまで信じていたんですが、「Linux教科書 LIPCレベル1 (ISBN4-7981-0292-X)」という本を買って、swap に関する説明を見たら「スワップ領域は塔載メモリと同程度を確保します。」と書いてありました。</p></blockquote>
<p>このQ&amp;Aでの回答に</p>
<blockquote><p>OSの使用量＋同時稼動させるアプリの使用量の総和が実メモリ以下ならswapは要りません。ただ、そんな計算は事前にちゃんと出来ないでしょうから、最初はswapを作らないで、メモリ不足が出てから作るか、ある程度(2倍は要らないでしょうが)作っておいて使用量をモニタして不要そうなら削るか、どっちでもいいと思います。</p></blockquote>
<p>と、まぁ不足してから作るか、ちょっとだけ用意しておけばいいんじゃね？的な回答が。<br />
Linuxの場合、物理メモリが多ければswapは必要ないのだろうか？<span id="more-1026"></span></p>
<p>「物理メモリの2倍程度」ってのは昔の4Mとか8Mとか少ないメモリで稼働するUNIX系のOSから流れからきているらしい。稼働するアプリケーションによって異なるので一概に言えない・・・という前提があるようだ。</p>
<p>記事自体も古いものが多いので、いかんせん解決しない。</p>
<h3>仮想環境下でのswap</h3>
<p><a href="http://somenotes.seesaa.net/article/148933732.html">ServersMan@VPS swapが設定できない(泣: プログラミング関係ごちゃごちゃメモ</a><br />
こちらの記事中に</p>
<blockquote><p>ただ、ServersMan@VPS は標準のままではswapが全く設定されていないようです。</p></blockquote>
<p>のように書かれていたのでVPSで提供されている構成を調べてみる。</p>
<p>sakura 2G（自分でOSインストールすれば変更可？）<br />
ServersMan 無し</p>
<p>つまり、swap無しでも運用は可能という事でしょうか。<br />
当然割当メモリが少なければ動かせるサービスも限られるのでしょうけど。</p>
<p>しかし、VPSは安いなぁ。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/12/16/linux%e3%81%aeswap%e3%83%91%e3%83%bc%e3%83%86%e3%82%a3%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e5%ae%b9%e9%87%8f-%e4%bb%ae%e6%83%b3%e3%83%9e%e3%82%b7%e3%83%b3%e3%81%ae%e5%a0%b4%e5%90%88%e3%81%af%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/12/16/linux%e3%81%aeswap%e3%83%91%e3%83%bc%e3%83%86%e3%82%a3%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ae%e5%ae%b9%e9%87%8f-%e4%bb%ae%e6%83%b3%e3%83%9e%e3%82%b7%e3%83%b3%e3%81%ae%e5%a0%b4%e5%90%88%e3%81%af%ef%bc%9f/" />
	</item>
		<item>
		<title>仮想化 XenとKVM(Kernel-based Virtual Machine) どちらを使うか？</title>
		<link>http://perl.no-tubo.net/2010/11/20/%e4%bb%ae%e6%83%b3%e5%8c%96-xen%e3%81%a8kvmkernel-based-virtual-machine-%e3%81%a9%e3%81%a1%e3%82%89%e3%82%92%e4%bd%bf%e3%81%86%e3%81%8b%ef%bc%9f/</link>
		<comments>http://perl.no-tubo.net/2010/11/20/%e4%bb%ae%e6%83%b3%e5%8c%96-xen%e3%81%a8kvmkernel-based-virtual-machine-%e3%81%a9%e3%81%a1%e3%82%89%e3%82%92%e4%bd%bf%e3%81%86%e3%81%8b%ef%bc%9f/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 06:19:38 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[仮想化]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=934</guid>
		<description><![CDATA[KVMはCPUに影響される
エンジニアなら知っておきたい「仮想マシン」のしくみ v1.1 (hbstudy 17)
こちらのスライドの４９ページ、「CPUアーキテクチャに応じた仮想化技術の選択」によれば、Core i7  [...]]]></description>
			<content:encoded><![CDATA[<h3>KVMはCPUに影響される</h3>
<p><a href="http://www.slideshare.net/TakeshiHasegawa1/20101126hbstudy17">エンジニアなら知っておきたい「仮想マシン」のしくみ v1.1 (hbstudy 17)</a><br />
こちらのスライドの４９ページ、「CPUアーキテクチャに応じた仮想化技術の選択」によれば、Core i7 又は、Xeon 5500(Nehalem)以後ならKVM≒Xenのようだ。</p>
<p>パフォーマンスを気にするなら Core i7 又は、Xeon 5500(Nehalem)以前のCPUの場合、Xenが選択技となる。</p>
<p>KVMではCPUの仮想化技術支援機構を活用するためだろう。</p>
<p>古めのCPUを使っている以上は準仮想化を使ったほうがパフォーマンスがいいので選択技はXenとなりそう。当然のごとく準仮想化に対応したKernelの必要があるのだけれど。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/11/20/%e4%bb%ae%e6%83%b3%e5%8c%96-xen%e3%81%a8kvmkernel-based-virtual-machine-%e3%81%a9%e3%81%a1%e3%82%89%e3%82%92%e4%bd%bf%e3%81%86%e3%81%8b%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/11/20/%e4%bb%ae%e6%83%b3%e5%8c%96-xen%e3%81%a8kvmkernel-based-virtual-machine-%e3%81%a9%e3%81%a1%e3%82%89%e3%82%92%e4%bd%bf%e3%81%86%e3%81%8b%ef%bc%9f/" />
	</item>
		<item>
		<title>仮想化対応CPUか確認する Intel VT</title>
		<link>http://perl.no-tubo.net/2010/11/10/%e4%bb%ae%e6%83%b3%e5%8c%96%e5%af%be%e5%bf%9ccpu%e3%81%8b%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b-intel-vt/</link>
		<comments>http://perl.no-tubo.net/2010/11/10/%e4%bb%ae%e6%83%b3%e5%8c%96%e5%af%be%e5%bf%9ccpu%e3%81%8b%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b-intel-vt/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 09:48:28 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[サーバ管理]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[コマンド]]></category>
		<category><![CDATA[プロセッサ]]></category>
		<category><![CDATA[仮想化]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=899</guid>
		<description><![CDATA[仮想化するのに VMware とか KVM とか Xen とか様々な方法があるけど、最新の仮想化技術ではプロセッサに Intel VT といわれる仮想化支援機能が必要らしい。
つまりハードウェアが対応していないと利用でき [...]]]></description>
			<content:encoded><![CDATA[<p>仮想化するのに VMware とか KVM とか Xen とか様々な方法があるけど、最新の仮想化技術ではプロセッサに Intel VT といわれる仮想化支援機能が必要らしい。</p>
<p>つまりハードウェアが対応していないと利用できないということ。<br />
CPU の事なんか全くの無知なので、調べる術をメモ。</p>
<h3>CPUの情報を表示するコマンド</h3>
<pre>cat /proc/cpuinfo</pre>
<p>例えばこんなログが表示される</p>
<pre>processor	: 0
vendor_id	: GenuineIntel
cpu family	: 15
model		: 2
model name	: Intel(R) Xeon(TM) CPU 3.06GHz
stepping	: 9
cpu MHz		: 3061.967
cache size	: 512 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 2
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips	: 6124.17</pre>
<p>項目の意味はこちらなどで解説されていた。<br />
<a href="http://piro791.blog.so-net.ne.jp/2008-09-30-3">/proc/cpuinfoの中身</a><br />
<a href="http://piro791.blog.so-net.ne.jp/2010-07-22">/proc/cpuinfo 再調査編</a><br />
<span id="more-899"></span></p>
<h3>CPUに仮想化支援機能があるか確かめる</h3>
<p><a href="http://www.atmarkit.co.jp/flinux/rensai/kvm02/kvm02a.html">＠IT：KVMの導入と基本的な使い方</a> によれば、</p>
<blockquote><p>使用している機器にCPUの仮想化支援機能があるかどうか分からない場合は、/proc/cpuinfoを見てみるとよいでしょう。Intel VTの場合はvmxが、AMD-Vの場合はsvmがあるか否かが1つの判断基準となります。</p></blockquote>
<p>と言うことなので、以下のコマンドで確かめるとよい。</p>
<h4>Intelの場合</h4>
<pre>grep vmx /proc/cpuinfo</pre>
<h4>AMDの場合</h4>
<pre>grep svm /proc/cpuinfo</pre>
<p>CPUがサポートしていれば以下のようになるそう。</p>
<pre>kvm:~ # grep vmx /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc arch_perfmon pebs bts pni
monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc arch_perfmon pebs bts pni
monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc arch_perfmon pebs bts pni
monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc arch_perfmon pebs bts pni
monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr dca lahf_lm</pre>
<p>参考：<a href="http://www.ibm.com/developerworks/jp/linux/library/l-kvm-virtual-server/">KVM ベースの仮想サーバーを作成する</a></p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/11/10/%e4%bb%ae%e6%83%b3%e5%8c%96%e5%af%be%e5%bf%9ccpu%e3%81%8b%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b-intel-vt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/11/10/%e4%bb%ae%e6%83%b3%e5%8c%96%e5%af%be%e5%bf%9ccpu%e3%81%8b%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b-intel-vt/" />
	</item>
		<item>
		<title>エラーログ SCSI error :  return code = 0&#215;70000 について</title>
		<link>http://perl.no-tubo.net/2010/11/05/%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%ad%e3%82%b0-scsi-error-return-code-0x70000-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/</link>
		<comments>http://perl.no-tubo.net/2010/11/05/%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%ad%e3%82%b0-scsi-error-return-code-0x70000-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 10:51:51 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[centOS]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[RaidMan]]></category>
		<category><![CDATA[serverRaid]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=891</guid>
		<description><![CDATA[エラーログに
kernel: SCSI error : &#60;0 0 0 0&#62; return code = 0&#215;70000
というものが度々出るので気にはなっていたものの、放置していたけどようやく原因が [...]]]></description>
			<content:encoded><![CDATA[<p>エラーログに</p>
<blockquote><p>kernel: SCSI error : &lt;0 0 0 0&gt; return code = 0&#215;70000</p></blockquote>
<p>というものが度々出るので気にはなっていたものの、放置していたけど<del datetime="2011-02-15T23:55:44+00:00">ようやく原因が分かった気がするので</del>メモ。</p>
<p>エラーログが出るのはIBMのサーバ（ServeRAIDでRaid1とかRaid10）<br />
<del datetime="2011-02-15T23:55:44+00:00">エラーの原因は smartd のようだ。</del></p>
<p>バージョンによるようだけど、対応していないディスク（ATAとかでもらしい）例のエラーが出る様子。<br />
そういえばサービス起動で smartd はコケていた。</p>
<p>とりあえず smartd のサービスをスタートしないようにする対策。<br />
<span id="more-891"></span></p>
<h4>11/12追記</h4>
<p><a href="http://translate.google.co.jp/translate?hl=ja&amp;sl=en&amp;u=http://www.linuxquestions.org/questions/red-hat-31/scsi-error-0-0-0-0-return-code-%253D-0x70000-441688/&amp;ei=E9LcTLvUF4O6ugO3-tDXCQ&amp;sa=X&amp;oi=translate&amp;ct=result&amp;resnum=1&amp;ved=0CCQQ7gEwAA&amp;prev=/search%3Fq%3DSERVERAID%2B0x70000%26hl%3Dja%26safe%3Doff%26client%3Dsafari%26rls%3Den%26prmd%3Dfd">LinuxQuestions.org のフォーラム（日本語訳）</a></p>
<p>OSS Message Pedia<br />
<a href="http://ossmpedia.org/messages/linux/2.6.9-34.EL/14124.ja">http://ossmpedia.org/messages/linux/2.6.9-34.EL/14124.ja</a></p>
<p>によると、<br />
SCSI error : <span style="color: #008000;">host channel id lun</span> return code = <span style="color: #008000;">result</span></p>
<p>で、SCSI を調べてみる。</p>
<pre># cat /proc/scsi/scsi

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: IBM      Model: SERVERAID        Rev: 1.00
  Type:   Direct-Access                    ANSI SCSI revision: 02</pre>
<p>Raidコントローラーと思われるけどエラーコード 0&#215;70000 が不明のまま。</p>
<h4>2011-02-16追記</h4>
<p>「kernel serveraid 0&#215;70000」でググるとRed Hat Bugzilla – Full Text Bug Listingというサイトの記事がヒットする。<br />
<a href="https://partner-bugzilla.redhat.com/show_bug.cgi?format=multiple&#038;id=640011">Red Hat Bugzilla の該当記事</a><br />
kernelのバグ？</p>
<p>webminの初期画面、システム情報を表示したタイミングで<br />
kernel: SCSI error : &lt;0 0 0 0&gt; return code = 0&#215;70000<br />
のエラーコードがログに記録されていた。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/11/05/%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%ad%e3%82%b0-scsi-error-return-code-0x70000-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/11/05/%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%ad%e3%82%b0-scsi-error-return-code-0x70000-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/" />
	</item>
		<item>
		<title>centos4.8 に PostgreSQL8.4 をyumでインストール</title>
		<link>http://perl.no-tubo.net/2010/08/17/centos4-8-%e3%81%ab-postgresql8-4-%e3%82%92yum%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/</link>
		<comments>http://perl.no-tubo.net/2010/08/17/centos4-8-%e3%81%ab-postgresql8-4-%e3%82%92yum%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 03:34:39 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[CentOS4.x]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[インストールメモ]]></category>
		<category><![CDATA[centOS]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=597</guid>
		<description><![CDATA[PGDGレポジトリを追加する
純正レポジトリに postgresql を上書きされない様に無効化しておく。
/etc/yum.repos.d/CentOS-Base.repo を編集のうえ、[base]と[update] [...]]]></description>
			<content:encoded><![CDATA[<h3>PGDGレポジトリを追加する</h3>
<p>純正レポジトリに postgresql を上書きされない様に無効化しておく。<br />
/etc/yum.repos.d/CentOS-Base.repo を編集のうえ、[base]と[update]のそれぞれのセクションに、<br />
exclude=postgresql*<br />
を追記する。<br />
<span id="more-597"></span><br />
http://yum.pgsqlrpms.org/reporpms/repoview/letter_p.group.html<br />
から対象OS＆バージョンを選んでRPMをダウンロード&#038;インストール</p>
<pre>wget http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-centos-8.4-2.noarch.rpm
rpm -ivh pgdg-centos-8.4-2.noarch.rpm</pre>
<p>/etc/yum.repos.d/pgdg-84-centos.repo が作成される。</p>
<pre># cat /etc/yum.repos.d/pgdg-84-centos.repo
[pgdg84]
name=PostgreSQL 8.4 $releasever - $basearch
baseurl=http://yum.pgsqlrpms.org/8.4/redhat/rhel-$releasever-$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG

[pgdg84-source]
name=PostgreSQL 8.4 $releasever - $basearch - Source
failovermethod=priority
baseurl=http://yum.pgsqlrpms.org/srpms/8.4/redhat/rhel-$releasever-$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG</pre>
<p>必要なpostgresqlのパッケージをインストール＆アップデート。</p>
<pre># yum install postgresql postgresql-server postgresql-devel compat-postgresql-libs postgresql-libs postgresql-contrib</pre>
<blockquote><p>&#8211;&gt; Running transaction check<br />
&#8211;&gt; Processing Dependency: libpq.so.4 for package: perl-DBD-Pg<br />
&#8211;&gt; Finished Dependency Resolution<br />
Error: Missing Dependency: libpq.so.4 is needed by package perl-DBD-Pg</p></blockquote>
<p>エラーが出てインストール出来ない。</p>
<p><a href="http://blog.motoo.net/2009/03/13/172626">http://blog.motoo.net/2009/03/13/172626</a><br />
を見て、パッケージを削除しているので試す。</p>
<pre># yum remove perl-DBD-Pg</pre>
<p>再度インストールを試すと、どうやら成功した。</p>
<h3>データベースを初期化</h3>
<pre># service postgresql initdb</pre>
<p>/var/lib/pgsql/pgstartup.log を見てエラーが起きていないことを確認。<br />
前バージョンの古いデータがあると失敗する。</p>
<p>データディレクトリは /var/lib/pgsql/data<br />
設定ファイル /var/lib/pgsql/data/postgresql.conf</p>
<p>サービス開始</p>
<pre># service postgresql start</pre>
<p>自動起動の設定</p>
<pre># chkconfig postgresql on</pre>
<p>自動起動の確認（ランレベル2～5のonを確認）</p>
<pre># chkconfig --list postgresql
postgresql          	0:off	1:off	2:on	3:on	4:on	5:on	6:off</pre>
<p>参考：<a href="http://a98.jugem.jp/?eid=372">CentOS 5.3 に postgresql-8.4 をインストール | お試しlog4</a></p>
<p>認証方式<br />
デフォルトではパスワードによる接続は出来ない。<br />
postgresユーザー パスワードの設定<br />
/var/lib/pgsql/data/postgresql.conf<br />
/var/lib/pgsql/data/pg_hba.conf</p>
<p>参照：<a href="http://safe-linux.homeip.net/web/PostgreSQL/01-setup.html">PostgreSQL Server のセットアップ ～ CentOS-4.5</a></p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/08/17/centos4-8-%e3%81%ab-postgresql8-4-%e3%82%92yum%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/08/17/centos4-8-%e3%81%ab-postgresql8-4-%e3%82%92yum%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab/" />
	</item>
		<item>
		<title>Perl の環境変数 $ENV{PATH} の初期値はどこを参照しているのか？</title>
		<link>http://perl.no-tubo.net/2010/06/30/perl-%e3%81%ae%e7%92%b0%e5%a2%83%e5%a4%89%e6%95%b0-envpath-%e3%81%ae%e5%88%9d%e6%9c%9f%e5%80%a4%e3%81%af%e3%81%a9%e3%81%93%e3%82%92%e5%8f%82%e7%85%a7%e3%81%97%e3%81%a6%e3%81%84%e3%82%8b%e3%81%ae/</link>
		<comments>http://perl.no-tubo.net/2010/06/30/perl-%e3%81%ae%e7%92%b0%e5%a2%83%e5%a4%89%e6%95%b0-envpath-%e3%81%ae%e5%88%9d%e6%9c%9f%e5%80%a4%e3%81%af%e3%81%a9%e3%81%93%e3%82%92%e5%8f%82%e7%85%a7%e3%81%97%e3%81%a6%e3%81%84%e3%82%8b%e3%81%ae/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 04:08:37 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS4.x]]></category>
		<category><![CDATA[CentOS5.x]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=628</guid>
		<description><![CDATA[Perl の $ENV{PATH} は何処を参照しているのか？
例えば bayon を perl から使うのに Text::Bayon モジュールを利用したら
sh: bayon: command not found
と [...]]]></description>
			<content:encoded><![CDATA[<h3>Perl の $ENV{PATH} は何処を参照しているのか？</h3>
<p>例えば bayon を perl から使うのに Text::Bayon モジュールを利用したら<br />
sh: bayon: command not found<br />
と言うエラーログが残る。</p>
<p>コマンドが見つからない = パスが通っていない、と言う事なんだろうけど、apache を2.2 にしたらパスが変わったのか apache2.0 の時に使えた Lingua::JA::Summarize を使用するスクリプトも</p>
<p>sh: mecab: command not found</p>
<p>となる。</p>
<p>mecab も bayon も /usr/local/bin にインストールしてあるのだけれど、$ENV{PATH} を調べてみると、<br />
$ENV{PATH} = /sbin:/usr/sbin:/bin:/usr/bin<br />
となっており、/usr/local/bin にはパスが通っていない。</p>
<p>この 環境変数はどこを参照しているのかまさに以下のページのような迷い方をした。</p>
<blockquote><p>apacheの起動ユーザーにPATH通しときゃいいのか？とか、httpd.confにそういう設定が？とか、もしかしてPHP.iniにそんな設定が？とか思ってたんですが、全部ハズレ。</p></blockquote>
<p><a href="http://d.hatena.ne.jp/masahi6/20090720/1248081907">Apache2の環境変数PATHを設定する &#8211; masahilog</a></p>
<p>SetEnvやPassEnvディレクティブを追加してみたり、. bash_profile を変更したり、散々いろいろ試してみたけど、上記ページのおかげでヒントが得られたのでメモ。</p>
<blockquote><p>CentOS系（というかRedhat系、だろうか）は/etc/sysconfig/httpdがそれに該当するような。探しても調べてもenvvarsの影も形も無かったけど、/etc/init.d/httpdの冒頭箇所で/etc/sysconfig/httpdがあったらそれを評価してからhttpdが起動するようになってる。なんでこんな仕様なんだろうか。</p></blockquote>
<p>追記でこのように書かれていたのだけれど、/etc/rc.d/init.d/httpd を見てみると、 /etc/sysconfig/httpd のみではなく、 /etc/rc.d/init.d/functions も参照している。</p>
<p>/etc/rc.d/init.d/functions を見ると、ビンゴでした。</p>
<pre># Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH</pre>
<p>ここのパスを変更して、保存。</p>
<p>注意点としては、apache を再起動ではなく 停止してから起動する事。<br />
再起動では反映されませんでした。</p>
<p>ちなみに CentOS （4.x 5.x） での話ですので他のディストリビューションでは違うかもしれません。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/06/30/perl-%e3%81%ae%e7%92%b0%e5%a2%83%e5%a4%89%e6%95%b0-envpath-%e3%81%ae%e5%88%9d%e6%9c%9f%e5%80%a4%e3%81%af%e3%81%a9%e3%81%93%e3%82%92%e5%8f%82%e7%85%a7%e3%81%97%e3%81%a6%e3%81%84%e3%82%8b%e3%81%ae/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/06/30/perl-%e3%81%ae%e7%92%b0%e5%a2%83%e5%a4%89%e6%95%b0-envpath-%e3%81%ae%e5%88%9d%e6%9c%9f%e5%80%a4%e3%81%af%e3%81%a9%e3%81%93%e3%82%92%e5%8f%82%e7%85%a7%e3%81%97%e3%81%a6%e3%81%84%e3%82%8b%e3%81%ae/" />
	</item>
		<item>
		<title>centOS4.8 apache2.0.x を apache 2.2.15 へ yum でアップデート</title>
		<link>http://perl.no-tubo.net/2010/06/16/centos4-8-apache2-0-x-%e3%82%92-apache-2-2-15-%e3%81%b8-yum-%e3%81%a7%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88/</link>
		<comments>http://perl.no-tubo.net/2010/06/16/centos4-8-apache2-0-x-%e3%82%92-apache-2-2-15-%e3%81%b8-yum-%e3%81%a7%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 11:33:39 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS4.x]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[インストールメモ]]></category>
		<category><![CDATA[httpd]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=569</guid>
		<description><![CDATA[utterramblings レポジトリを使い apache を2.2.15 へ yum でアップデートする。
phpも5.2.13 へアップデートされる。
remiレポジトリでもいいけど PHPが5.3になってしまうの [...]]]></description>
			<content:encoded><![CDATA[<p>utterramblings レポジトリを使い apache を2.2.15 へ yum でアップデートする。<br />
phpも5.2.13 へアップデートされる。<br />
remiレポジトリでもいいけど PHPが5.3になってしまうので。<span id="more-569"></span></p>
<h2>utterramblingsレポジトリ追加</h2>
<pre># rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka</pre>
<p>/etc/yum.repos.d/CentOS-Base.repo の一番最後に追記する。</p>
<pre># vi /etc/yum.repos.d/CentOS-Base.repo

[utterramblings]
name=Jason Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
priority=1</pre>
<h2>apache をアップデート</h2>
<pre># yum --enablerepo=utterramblings update httpd</pre>
<p>設定ファイルはそのままでは使えないので適時修正する事。<br />
新しいファイル<br />
/etc/httpd/conf/httpd.conf.rpmnew<br />
/etc/httpd/conf.d/ssl.conf.rpmnew<br />
を元にして両方を修正。</p>
<h3>PHP関連のインストール</h3>
<p>php も5.2.13 にアップデートされるので関連するものをアップデートもしくはインストール。<br />
phpMyAdmin で</p>
<blockquote><p>mcrypt 拡張をロードできません。PHP の設定を確認してください</p></blockquote>
<p>と言うエラーが出るので php-mcrypt をアップデート。。</p>
<pre>yum --enablerepo=utterramblings update php-mcrypt</pre>
<h4>httpd-devel が必要だったのでインストール</h4>
<pre>yum --enablerepo=utterramblings install httpd-devel</pre>
<h4>DOMを使ってXMLを操作したいので php-xml をインストール</h4>
<pre>yum --enablerepo=utterramblings install php-xml</pre>
<p>参考：<a href="http://d.hatena.ne.jp/rytich/20100330/1269936570">http://d.hatena.ne.jp/rytich/20100330/1269936570</a><br />
5.3へのアップデートも書かれている。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/06/16/centos4-8-apache2-0-x-%e3%82%92-apache-2-2-15-%e3%81%b8-yum-%e3%81%a7%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/06/16/centos4-8-apache2-0-x-%e3%82%92-apache-2-2-15-%e3%81%b8-yum-%e3%81%a7%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88/" />
	</item>
	</channel>
</rss>

