<?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>おじさんの備忘録-番外編- &#187; CentOS5</title>
	<atom:link href="http://www.dxcode.com/archives/category/linux/centos5/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dxcode.com</link>
	<description>個人的なメモ書き</description>
	<lastBuildDate>Fri, 13 Jan 2012 23:57:25 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>CentOS ディスク管理 温度確認</title>
		<link>http://www.dxcode.com/archives/2011/05141558.html</link>
		<comments>http://www.dxcode.com/archives/2011/05141558.html#comments</comments>
		<pubDate>Fri, 13 May 2011 22:49:18 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[ハードディスク]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=1558</guid>
		<description><![CDATA[hddtempを利用してディスクの温度確認 標準では組込まれていないのでyumでインストール # yum install hddtemp 結果 Running Transaction Installing : hddte [...]]]></description>
			<content:encoded><![CDATA[<p>hddtempを利用してディスクの温度確認<br />
標準では組込まれていないのでyumでインストール</p>
<pre> # yum install hddtemp</pre>
<p>結果</p>
<blockquote><p>Running Transaction<br />
  Installing     : hddtemp                                                            1/1<br />
Installed:<br />
  hddtemp.x86_64 0:0.3-0.16.beta15.el5<br />
Complete!</p></blockquote>
<p>確認コマンドは</p>
<pre># hddtemp /dev/sda
/dev/sda: WDC WD5000AAKX-001CA0: 36°C
# hddtemp /dev/sdb
/dev/sdb: WDC WD5000AAKX-001CA0: 33°C</pre>
<p>全く問題のないレベル</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2011/05141558.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS freshclamでエラー</title>
		<link>http://www.dxcode.com/archives/2011/04211513.html</link>
		<comments>http://www.dxcode.com/archives/2011/04211513.html#comments</comments>
		<pubDate>Wed, 20 Apr 2011 23:13:38 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Clam AntiVirus]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=1513</guid>
		<description><![CDATA[Clam AntiVirusでウィルス定義ファイルのアップデート時にディレクトリが作成出来ない旨のエラー報告 /etc/cron.daily/freshclam: ERROR: Can&#8217;t create te [...]]]></description>
			<content:encoded><![CDATA[<p>Clam AntiVirusでウィルス定義ファイルのアップデート時にディレクトリが作成出来ない旨のエラー報告</p>
<blockquote><p>/etc/cron.daily/freshclam:</p>
<p>ERROR: Can&#8217;t create temporary directory /var/lib/clamav/clamav-127e4f74c448a184bb1406e05ae5d746</p></blockquote>
<p>cat /var/log/clamav/freshclam.log で確認してみると</p>
<pre>--------------------------------------
ERROR: Can't create temporary directory /var/lib/clamav/clamav-127e4f74c448a184bb1406e05ae5d746
Hint: The database directory must be writable for UID 101 or GID 105
--------------------------------------</pre>
<p>下記サイトを参考に</p>
<pre>chown 101:105 /var/lib/clamav
chmod 755 /var/lib/clamav</pre>
<p>で対処したところエラーはなくなった。</p>
<p><a title="trouble running freshclam" href="http://www.gossamer-threads.com/lists/clamav/users/31104">trouble running freshclam</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2011/04211513.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.5 IPV6を無効化</title>
		<link>http://www.dxcode.com/archives/2011/04111441.html</link>
		<comments>http://www.dxcode.com/archives/2011/04111441.html#comments</comments>
		<pubDate>Mon, 11 Apr 2011 07:21:15 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[サーバ]]></category>
		<category><![CDATA[最適化]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=1441</guid>
		<description><![CDATA[デフォルトで有効になっているが使用しないので無効化する。 IPv6の確認 = inet6項目があり有効になっている。 # ifconfig -a eth0 Link encap:Ethernet HWaddr 00:21 [...]]]></description>
			<content:encoded><![CDATA[<p>デフォルトで有効になっているが使用しないので無効化する。<br />
IPv6の確認 = inet6項目があり有効になっている。</p>
<pre># ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:21:85:A1:85:1F
          inet addr:192.168.1.90  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2001:a41d:dfff:43e:221:85ff:fea1:851f/64 Scope:Global
          inet6 addr: fe80::221:85ff:fea1:851f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:281012 errors:0 dropped:0 overruns:0 frame:0
          TX packets:179985 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:307430591 (293.1 MiB)  TX bytes:21257735 (20.2 MiB)
          Memory:feb40000-feb60000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:5355 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5355 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:994907 (971.5 KiB)  TX bytes:994907 (971.5 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)</pre>
<p>/etc/sysconfig/network にある NETWORKING_IPV6 の値を no に変更</p>
<pre># vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=centos.webmint.net
GATEWAY=192.168.1.1</pre>
<p>/etc/modprobe.confファイルにalias ipv6 off  と options ipv6 disable=1 を追加</p>
<pre># vi /etc/modprobe.conf
alias eth0 e1000e
alias scsi_hostadapter ahci
alias snd-card-0 snd-hda-intel
alias ipv6 off
options ipv6 disable=1
options snd-card-0 index=0
options snd-hda-intel index=0
remove snd-hda-intel { /usr/sbin/alsactl store 0 &gt;/dev/null 2&gt;&amp;1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel
</pre>
<p>chkconfig ip6tables off  コマンドを実行</p>
<pre># chkconfig ip6tables off</pre>
<p>サーバの再起動後 ifconfig -a コマンドで確認</p>
<pre># ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:21:85:A1:85:1F
          inet addr:192.168.1.90  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:114 errors:0 dropped:0 overruns:0 frame:0
          TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14992 (14.6 KiB)  TX bytes:15330 (14.9 KiB)
          Memory:feb40000-feb60000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2575 (2.5 KiB)  TX bytes:2575 (2.5 KiB)</pre>
<p>eth0のinet6項目及びsit0がなくなり無効化されているのが確認できた。</p>
<p>参考サイト »» <a title="IPv6の無効化" href="http://www.server-memo.net/linux-setting/ipv6-no.html">IPv6の無効化</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2011/04111441.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP5.2.10にアップデート</title>
		<link>http://www.dxcode.com/archives/2009/06231021.html</link>
		<comments>http://www.dxcode.com/archives/2009/06231021.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 22:57:47 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[リポジトリ]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=1021</guid>
		<description><![CDATA[PHPを5.2.9から5.2.10にアップデート。 »» php.announce: PHP 5.2.10 Released! »» PHP 5 ChangeLog PHP 5 ChangeLog セキュリティ関連バグを [...]]]></description>
			<content:encoded><![CDATA[<p>PHPを5.2.9から5.2.10にアップデート。</p>
<p>»» <a title="php.announce: PHP 5.2.10 Released!" href="http://news.php.net/php.announce/76">php.announce: PHP 5.2.10 Released!</a><br />
»» <a title="PHP: PHP 5 ChangeLog" href="http://www.php.net/ChangeLog-5.php#5.2.10">PHP 5 ChangeLog PHP 5 ChangeLog</a></p>
<p>セキュリティ関連バグを含む100以上のバグフィックスが行われていて、安定性が向上してるとの事でアップデート推奨になっている。</p>
<p><img src="http://www.dxcode.com/wp-content/uploads/2009/06/php5210.png" alt="PHP5.2.10" width="411" height="87" class="attachment wp-att-1022 " /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/06231021.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snort2.8.4にアップデート</title>
		<link>http://www.dxcode.com/archives/2009/0427892.html</link>
		<comments>http://www.dxcode.com/archives/2009/0427892.html#comments</comments>
		<pubDate>Sun, 26 Apr 2009 22:42:34 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[アップデート]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=892</guid>
		<description><![CDATA[CentOS5.3環境でSnort2.8.4を導入もしくはアップデートすると起動でこけてしまうので、下記サイトを参考にTARボールを作り直してからRPMパッケージを作成しインストール。 http://www.snort. [...]]]></description>
			<content:encoded><![CDATA[<p>CentOS5.3環境でSnort2.8.4を導入もしくはアップデートすると起動でこけてしまうので、下記サイトを参考にTARボールを作り直してからRPMパッケージを作成しインストール。</p>
<p><a title="Snort 2.8.4 Can't get dcerpc2 preprocessor to load with new rules" href="http://www.snort.org/archive-2-7243.html">http://www.snort.org/archive-2-7243.html</a><br />
<a title="Re: [Snort-users] dcerpc2 build problem" href="http://www.usenet-forums.com/snort/418096-re-snort-users-dcerpc2-build-problem.html">http://www.usenet-forums.com/snort/418096-re-snort-users-dcerpc2-build-problem.html</a></p>
<p>因みに/var/log/messagesのエラー内容は下記のようなものだった。</p>
<pre>server snort[15093]: Drop on X-Link2State Alert: No
server snort[15093]: Alert on commands: None
server snort[15093]: /etc/snort/snort.conf(611) unknown dynamic preprocessor "dcerpc2"
server snort[15093]: /etc/snort/snort.conf(612) unknown dynamic preprocessor "dcerpc2_server"
server snort[15093]: DNS config:
server snort[15093]: DNS Client rdata txt Overflow Alert: ACTIVE
server snort[15093]: Obsolete DNS RR Types Alert: INACTIVE
server snort[15093]: Experimental DNS RR Types Alert: INACTIVE
server snort[15093]: Ports:
server snort[15093]: 53
server snort[15093]:
server snort[15093]: SSLPP config:
server snort[15093]: Encrypted packets: not inspected
server snort[15093]: Ports:
server snort[15093]: 443 465 563 636 989
server snort[15093]: 992 993 994 995
server snort[15093]: Server side data is trusted
server snort[15093]: FATAL ERROR: Misconfigured dynamic preprocessor(s)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0427892.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kernelのアップデート</title>
		<link>http://www.dxcode.com/archives/2009/0403806.html</link>
		<comments>http://www.dxcode.com/archives/2009/0403806.html#comments</comments>
		<pubDate>Thu, 02 Apr 2009 23:59:28 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[アップデート]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=806</guid>
		<description><![CDATA[昨日CentOS5.3にアップグレードしたばかりなのに早速カーネルのアップデートが出ていた。 Security fixesとの事なのでアップデート後に再起動・・・やはり直ぐに5.3にアップデートせずに暫く様子を見ていた方 [...]]]></description>
			<content:encoded><![CDATA[<p><img class="attachment wp-att-807" src="http://www.dxcode.com/wp-content/uploads/2009/04/kernal_2618-12816el5.thumbnail.png" alt="CentOS5.3 カーネルアップデート" width="500" height="188" /><br />
昨日CentOS5.3にアップグレードしたばかりなのに早速カーネルのアップデートが出ていた。<br />
Security fixesとの事なのでアップデート後に再起動・・・やはり直ぐに5.3にアップデートせずに暫く様子を見ていた方がよかったのかもしれない。</p>
<p><a title="[CentOS-announce] CESA-2009:0326 Important CentOS 5 x86_64 kernel Update" href="http://lists.centos.org/pipermail/centos-announce/2009-April/015713.html">[CentOS-announce] CESA-2009:0326 Important CentOS 5 x86_64 kernel Update</a><br />
<a title=" Important: kernel security and bug fix update" href="https://rhn.redhat.com/errata/RHSA-2009-0326.html">Important: kernel security and bug fix update</a></p>
<blockquote><p>[root@server ~]# uname -a<br />
Linux server.dxcode.com 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0403806.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS5.3にアップグレード</title>
		<link>http://www.dxcode.com/archives/2009/0402795.html</link>
		<comments>http://www.dxcode.com/archives/2009/0402795.html#comments</comments>
		<pubDate>Wed, 01 Apr 2009 21:55:58 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[アップデート]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=795</guid>
		<description><![CDATA[リリースされたばかりのCentOS5.3にアップグレードした。 231パッケージで280MB弱あったので実行する前に少し躊躇したが、壊れれば再インストールすればいいだけと開き直り実行。 途中エラーで止まる事もなくComp [...]]]></description>
			<content:encoded><![CDATA[<p><img class="attachment wp-att-796 alignright" src="http://www.dxcode.com/wp-content/uploads/2009/04/centos53_update.png" alt="CentOS5.3にアップグレードする" width="271" height="158" /><br />
リリースされたばかりのCentOS5.3にアップグレードした。<br />
231パッケージで280MB弱あったので実行する前に少し躊躇したが、壊れれば再インストールすればいいだけと開き直り実行。<br />
途中エラーで止まる事もなくComplete!の文字を確認したため、おそるおそるシステムを再起動したが問題なく起動した。<br />
今のところログ関係にエラーもないので問題ないと思う。<br style="clear:both;" /><br />
<a title="CentOS 5.3 リリースノート" href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.3/Japanese">CentOS 5.3 リリースノート ‐ 日本語訳</a></p>
<p>ただkernelについては完了後もKernel 2.6.18-128.el5でKernel 2.6.18-128.1.1.el5になっていなかった。<br />
サーバをrikenに直指定して再度アップデートして漸くKernel 2.6.18-128.1.1.el5になった。まだ同期がとられていなかったのかもしれない。</p>
<blockquote><p>[root@server ~]# uname -a<br />
Linux server.dxcode.com 2.6.18-128.1.1.el5 #1 SMP Wed Mar 25 18:14:28 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux<br />
[root@server ~]# cat /etc/redhat-release<br />
CentOS release 5.3 (Final)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0402795.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL管理ツール phpMyAdmin</title>
		<link>http://www.dxcode.com/archives/2009/0327766.html</link>
		<comments>http://www.dxcode.com/archives/2009/0327766.html#comments</comments>
		<pubDate>Fri, 27 Mar 2009 05:31:16 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=766</guid>
		<description><![CDATA[MySQLをGUI環境で操作できるPHPアプリ。SQL文を全く書けない私にでもデータベースを操作できるので、データを修正したい時など非常に重宝している。 もちろんデータベースの作成や削除だけではなく、インポートやエキスポ [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.dxcode.com/wp-content/uploads/2009/03/phpmyadmin.png" alt="phpMyAdmin" width="335" height="204" class="attachment wp-att-767 alignright" /><br />
MySQLをGUI環境で操作できるPHPアプリ。SQL文を全く書けない私にでもデータベースを操作できるので、データを修正したい時など非常に重宝している。</p>
<p>もちろんデータベースの作成や削除だけではなく、インポートやエキスポート機能もあるのでデータベース関連はこのアプリさえあれば事足りる。<br />
と言うかかなり長い間使用しているが、この4つの機能しか殆ど使用した事がない。</p>
<p>ただ難点は<a title="phpMyAdmin - News" href="http://www.phpmyadmin.net/home_page/news.php">更新頻度が結構速い</a>のでアップデート作業が頻繁に訪れる。外部に公開しているわけではないので最新版を追いかける必要もないかもしれないが、security-fix versionとか書かれると気になりついついアップデートしてしまう。<br style="clear:both;" /></p>
<p>因みにphpMyAdmin3.xxシリーズはPHP5.2以降及びMySQL5.0以降の環境が必要条件になっており、CentOSのデフォルトではPHPが5.1.6なのでphpMyAdminは2.xxシリーズになってしまう。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0327766.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>get_browser関数を使用可能に</title>
		<link>http://www.dxcode.com/archives/2009/0323480.html</link>
		<comments>http://www.dxcode.com/archives/2009/0323480.html#comments</comments>
		<pubDate>Sun, 22 Mar 2009 23:53:14 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[サーバ]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=480</guid>
		<description><![CDATA[標準では組み込まれていない機能だが導入が簡単なので使用できるようにしてみた。 php.iniでbrowscap.iniがシステムのどこに配置されているか指定する。browscap.iniはデフォルト状態では入っていないの [...]]]></description>
			<content:encoded><![CDATA[<p>標準では組み込まれていない機能だが導入が簡単なので使用できるようにしてみた。<br />
php.iniでbrowscap.iniがシステムのどこに配置されているか指定する。browscap.iniはデフォルト状態では入っていないので下記よりダウンロードし任意の場所に配置しておく。<br />
私はPHPの追加iniが集まっている/etc/php.d/に配置した上でphp.ini修正後httpdを再起動。</p>
<blockquote><p>[root@server ~]# vi /usr/local/Zend/etc/php.ini</p></blockquote>
<pre>[browscap]
;browscap = extra/browscap.ini
browscap = /etc/php.d/browscap.ini</pre>
<p><a title="Downloads :: Browser Capabilities Project" href="http://browsers.garykeith.com/downloads.asp">Downloads :: Browser Capabilities Project</a>にある<a title="php_browscap.ini" href="http://browsers.garykeith.com/stream.asp?PHP_BrowsCapINI">php_browscap.ini</a></p>
<p>もちろんこのファイルは自動で更新はされないので自身で更新作業をする必要がある。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0323480.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mod_deflateによるコンテンツのGzip圧縮</title>
		<link>http://www.dxcode.com/archives/2009/0317449.html</link>
		<comments>http://www.dxcode.com/archives/2009/0317449.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 14:04:33 +0000</pubDate>
		<dc:creator>kecha</dc:creator>
				<category><![CDATA[CentOS5]]></category>
		<category><![CDATA[Customize]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[最適化]]></category>

		<guid isPermaLink="false">http://www.dxcode.com/?p=449</guid>
		<description><![CDATA[mod_deflateを有効にするためにdeflate.confを作成 [root@server ~]# vi /etc/httpd/conf.d/deflate.conf &#60;Location /&#62; AddO [...]]]></description>
			<content:encoded><![CDATA[<p>mod_deflateを有効にするためにdeflate.confを作成</p>
<blockquote><p>[root@server ~]# vi /etc/httpd/conf.d/deflate.conf</p></blockquote>
<pre>
&lt;Location /&gt;
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/rdf+xml

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
Header append Vary User-Agent env=!dont-vary
&lt;/Location&gt;
</pre>
<p>上記ファイルを有効化するためにhttpdを再起動又は再読込み</p>
<blockquote><p>[root@server ~]# /etc/rc.d/init.d/httpd restart</p></blockquote>
<p>mod_deflateの効果については下記のサイトを見た方がわかりやすい。<br />
<a title="YSlow対策でmod_deflateを利用してHTTPレスポンスをgzip圧縮 - blog.katsuma.tv" href="http://blog.katsuma.tv/2007/07/yslow_apache_mod_deflate.html">YSlow対策でmod_deflateを利用してHTTPレスポンスをgzip圧縮 &#8211; blog.katsuma.tv</a><br />
圧縮出来ているかどうか及び効果は下記サイトやYSlowで確認できる。<br />
<a title="Port80 Software »» Compression Check" href="http://www.port80software.com/surveys/top1000compression/#checkyoursite">Port80 Software »» Compression Check</a></p>
<p>当サイトの結果は77.0%の圧縮に成功し転送速度も数値上では4倍ほど速くなった。<br />
<img src="http://www.dxcode.com/wp-content/uploads/2009/03/port80_mod_deflate.gif" alt="mod_deflateによるコンテンツのGzip圧縮" width="468" height="224" class="attachment wp-att-465 " /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dxcode.com/archives/2009/0317449.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

