<?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; Apache</title>
	<atom:link href="http://perl.no-tubo.net/category/%e3%82%b5%e3%83%bc%e3%83%90%e7%ae%a1%e7%90%86/apache/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/%e3%82%b5%e3%83%bc%e3%83%90%e7%ae%a1%e7%90%86/apache/feed/" />
		<item>
		<title>CentOS5.5にmod_fcgidをインストールする(Apache2.2+FastCGI)</title>
		<link>http://perl.no-tubo.net/2011/02/16/centos5-5%e3%81%abmod_fcgid%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8bapache2-2fastcgi/</link>
		<comments>http://perl.no-tubo.net/2011/02/16/centos5-5%e3%81%abmod_fcgid%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8bapache2-2fastcgi/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 00:09:24 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[FastCGI]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=1350</guid>
		<description><![CDATA[FastCGIをApacheで使うには
mod_fastcgi
mod_fcgid
がある。
$ wget http://jaist.dl.sourceforge.net/sourceforge/mod-fcgid/mo [...]]]></description>
			<content:encoded><![CDATA[<p>FastCGIをApacheで使うには<br />
mod_fastcgi<br />
mod_fcgid<br />
がある。</p>
<pre>$ wget http://jaist.dl.sourceforge.net/sourceforge/mod-fcgid/mod_fcgid.2.2.tgz
$ tar zxvf mod_fcgid.2.2.tgz
$ cd mod_fcgid.2.2
$ make top_dir=/usr/lib/httpd
$ sudo make top_dir=/usr/lib/httpd install</pre>
<p>make 時に top_dir=/usr/lib/httpd を指定することでMakefileの書き換えが必要ない。<br />
<span id="more-1350"></span><br />
<a href="http://kawa.at.webry.info/200811/article_8.html">CentOS で mod_fcgid インストール (Apache+FastCGI) Kawanet Tech Blog/ウェブリブログ</a></p>
<p>必要なモジュール等<br />
<a href="http://nekoit.blog37.fc2.com/blog-entry-211.html">猫ITソリューションズ |  mod_fcgiのインストール &#8211; 猫とLinuxがイノベーションを加速する</a><br />
# yum install perl-FCGI httpd-devel</p>
<p>FCGI::ProcManager<br />
Sub::Override<br />
File::Slurp</p>
<p>検証用スクリプト<br />
<a href="http://yanor.net/wiki/?Perl%2FFastCGI環境でのFCGIスクリプトの実行">Perl/FastCGI環境でのFCGIスクリプトの実行 &#8211; yanor.net/wiki</a>より</p>
<pre>#!/usr/bin/perl

use FCGI;

my $request = FCGI::Request();

my $count = 0;
while ( $request->Accept() >= 0 ) {
    print "content-type: text/html\r\n\r\n";
    print ++$count;
}
</pre>
<p><a href="http://adiary.blog.abk.nu/0210">SpeedyCGI/FastCGI でモジュール動的更新 &#8211; adiary開発日誌</a></p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2011/02/16/centos5-5%e3%81%abmod_fcgid%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8bapache2-2fastcgi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2011/02/16/centos5-5%e3%81%abmod_fcgid%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8bapache2-2fastcgi/" />
	</item>
		<item>
		<title>Apache2.2にmod_SpeedyCGIを組込むにはパッチが必要</title>
		<link>http://perl.no-tubo.net/2011/02/07/apache2-2%e3%81%abmod_speedycgi%e3%82%92%e7%b5%84%e8%be%bc%e3%82%80%e3%81%ab%e3%81%af%e3%83%91%e3%83%83%e3%83%81%e3%81%8c%e5%bf%85%e8%a6%81/</link>
		<comments>http://perl.no-tubo.net/2011/02/07/apache2-2%e3%81%abmod_speedycgi%e3%82%92%e7%b5%84%e8%be%bc%e3%82%80%e3%81%ab%e3%81%af%e3%83%91%e3%83%83%e3%83%81%e3%81%8c%e5%bf%85%e8%a6%81/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 04:16:26 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[perlモジュール]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[speedyCGI]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=1356</guid>
		<description><![CDATA[Apache2.2でSpeedyCGIのperlモジュールを使うのならyumなりで一発インストールできるけど、mod_SpeedyCGIをインストールしようとするとmakeでコケる。
どうやらパッチを当ててからmakeす [...]]]></description>
			<content:encoded><![CDATA[<p>Apache2.2でSpeedyCGIのperlモジュールを使うのならyumなりで一発インストールできるけど、mod_SpeedyCGIをインストールしようとするとmakeでコケる。</p>
<p>どうやらパッチを当ててからmakeする必要があるようだ。<br />
参考：<a href="http://www.maido3.com/server/support/apache2speedy.html">Apache2.2にmod_SpeedyCGIを組み込む方法（パッチファイルのあて方） / レンタルサーバー BIG-server.com</a></p>
<h3>パッチファイルのダウンロード</h3>
<p>パッチファイル：<a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1111235&amp;group_id=2208&amp;atid=302208">CGI::SpeedyCGI with apr-1.0 </a></p>
<p>※パッチファイルはwgetで入手できないのでダウンロードしておいてFTP等でアップロードする必要がある。<span id="more-1356"></span></p>
<h3>SpeedyCGIのインストール</h3>
<pre>$ wget http://www.cpan.org/modules/by-authors/id/H/HO/HORROCKS/CGI-SpeedyCGI-2.22.tar.gz
$ tar zxvf CGI-SpeedyCGI-2.22.tar.gz

<span style="color: #ff9900;">#####
CGI-SpeedyCGI-2.22/mod_speedycgi2 に
ダウンロードしたパッチをFTP等でアップロードする
#####</span>

$ cd CGI-SpeedyCGI-2.22/mod_speedycgi2
$ patch -p1 &lt; patch-mod_speedycgi2.c	<span style="color: #ff9900;">＃パッチをあてる</span>
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/mod_speedycgi2.c.orig	Tue Oct  7 13:03:48 2003
|+++ src/mod_speedycgi2.c	Sun Jan 23 20:42:43 2005
--------------------------
File to patch: <span style="color: #ff9900;">../src/mod_speedycgi2.c    # パッチをあてるファイルを指定</span>

$ cd ../
$ perl Makefile.PL

Optional mod_speedycgi support.

Mod_speedycgi increases performance under Apache by avoiding the fork/exec
overhead associated with each request under normal SpeedyCGI.  However, it
requires a working copy of "apxs" in your path, Apache with mod_so
support, and additional Apache configuration.

Compile mod_speedycgi (default no)? <span style="color: #ff9900;">yes    # yesを入力</span>

$ make
$ make test
$ sudo make install</pre>
<h3>・・・エラー。</h3>
<pre>make[1]: apxs: コマンドが見つかりませんでした
make[1]: *** [install] エラー 127

sudo make install -i   # エラーを無視するオプションをつけてインストール。</pre>
<p>mod_SpeedyCGIがインストールされないので、Apacheモジュールディレクトリにコピーする。<br />
README通り、CGI-SpeedyCGI-2.22/mod_speedycgi2/.libs に mod_speedycgi.so が作成されているので /usr/lib/httpd/modules にコピーする（CentOSの場合）</p>
<pre>$ cd mod_speedycgi2/.libs
$ sudo cp mod_speedycgi.so /usr/lib/httpd/modules</pre>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2011/02/07/apache2-2%e3%81%abmod_speedycgi%e3%82%92%e7%b5%84%e8%be%bc%e3%82%80%e3%81%ab%e3%81%af%e3%83%91%e3%83%83%e3%83%81%e3%81%8c%e5%bf%85%e8%a6%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2011/02/07/apache2-2%e3%81%abmod_speedycgi%e3%82%92%e7%b5%84%e8%be%bc%e3%82%80%e3%81%ab%e3%81%af%e3%83%91%e3%83%83%e3%83%81%e3%81%8c%e5%bf%85%e8%a6%81/" />
	</item>
		<item>
		<title>IPベースのバーチャルホストと名前ベースのバーチャルホストを混合させる</title>
		<link>http://perl.no-tubo.net/2010/08/23/ip%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%81%a8%e5%90%8d%e5%89%8d%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81/</link>
		<comments>http://perl.no-tubo.net/2010/08/23/ip%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%81%a8%e5%90%8d%e5%89%8d%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 04:41:45 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=774</guid>
		<description><![CDATA[Apache でIPベースのバーチャルホストを使う場合の注意点
VirtualHostディレクティブを利用する。VirtualHostディレクティブは、
&#60;VirtualHost IPアドレス&#62;
～
&#60; [...]]]></description>
			<content:encoded><![CDATA[<h3>Apache でIPベースのバーチャルホストを使う場合の注意点</h3>
<p>VirtualHostディレクティブを利用する。VirtualHostディレクティブは、</p>
<blockquote><p>&lt;VirtualHost IPアドレス&gt;<br />
～<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p>のように記述し、これが1ホスト分のブロックとなる。つまり、バーチャルホストでホスティングしたいホストの数だけ、このブロックを記述すればよい。</p>
<p>IPベースで注意する点は、<strong>&lt;VirtualHost IPアドレス&gt;</strong>のIPアドレスを<strong>各ブロックで異なるものにしなければならない</strong>ということである。Apacheは、このIPアドレスでホストの設定のブロックを識別するからである。</p>
<p><a href="http://www.atmarkit.co.jp/flinux/rensai/apache08/apache08b.html">バーチャルホストによる複数サイトの同時運用</a> より</p>
<p>つまり1つのIPアドレスで1つのサイト（FQDN）のみしか運営出来ない。<br />
名前ベースのバーチャルホストと大きく異なる。</p>
<h3>名前ベースのバーチャルホストと混合させる場合</h3>
<p>名前ベースのバーチャルホストとIPベースのバーチャルホストを混合させる場合、 VirtualHost ディレクティブにポート番号も付加する。</p>
<blockquote><p>&lt;VirtualHost *:80&gt;<br />
～<br />
&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost IPアドレス:80&gt;<br />
～<br />
&lt;/VirtualHost&gt;</p></blockquote>
<p>SSL を利用する場合も同様に 443 など、ポート番号を付加する。</p>
<p>IPベースでバーチャルホストを利用する場面としては（自分の場合）SSLサイトを作る際、ドメインが違うサイトでSSL証明書を使い分けなくてはならない為。通常の場合なら名前ベースのバーチャルホストで用が足りるはず。</p>
<p>ワイルドカード証明書では異なるドメインに対応出来ないし。ただ、ベリサインからマルチドメインなる証明書の販売が始まるとか始まったとか。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/08/23/ip%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%81%a8%e5%90%8d%e5%89%8d%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81/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/23/ip%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%81%a8%e5%90%8d%e5%89%8d%e3%83%99%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81/" />
	</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>
		<item>
		<title>Apache の ServerLimit を反映させるには restart ではダメらしい</title>
		<link>http://perl.no-tubo.net/2010/03/18/apache-%e3%81%ae-serverlimit-%e3%82%92%e5%8f%8d%e6%98%a0%e3%81%95%e3%81%9b%e3%82%8b%e3%81%ab%e3%81%af-restart-%e3%81%a7%e3%81%af%e3%83%80%e3%83%a1%e3%82%89%e3%81%97%e3%81%84/</link>
		<comments>http://perl.no-tubo.net/2010/03/18/apache-%e3%81%ae-serverlimit-%e3%82%92%e5%8f%8d%e6%98%a0%e3%81%95%e3%81%9b%e3%82%8b%e3%81%ab%e3%81%af-restart-%e3%81%a7%e3%81%af%e3%83%80%e3%83%a1%e3%82%89%e3%81%97%e3%81%84/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 09:13:18 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=402</guid>
		<description><![CDATA[Apacheの設定ファイル httpd.conf でServerLimit を変更する場合、restart では反映されない。
[Thu Mar 18 18:01:13 2010] [warn] WARNING: Att [...]]]></description>
			<content:encoded><![CDATA[<p>Apacheの設定ファイル httpd.conf でServerLimit を変更する場合、restart では反映されない。</p>
<blockquote><p>[Thu Mar 18 18:01:13 2010] [warn] WARNING: Attempt to change ServerLimit ignored during restart</p></blockquote>
<p>このようなエラーがログに残る。<br />
stop した後に start で Apacheを起動すると ServerLimit の変更を反映する事が出来る。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/03/18/apache-%e3%81%ae-serverlimit-%e3%82%92%e5%8f%8d%e6%98%a0%e3%81%95%e3%81%9b%e3%82%8b%e3%81%ab%e3%81%af-restart-%e3%81%a7%e3%81%af%e3%83%80%e3%83%a1%e3%82%89%e3%81%97%e3%81%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/03/18/apache-%e3%81%ae-serverlimit-%e3%82%92%e5%8f%8d%e6%98%a0%e3%81%95%e3%81%9b%e3%82%8b%e3%81%ab%e3%81%af-restart-%e3%81%a7%e3%81%af%e3%83%80%e3%83%a1%e3%82%89%e3%81%97%e3%81%84/" />
	</item>
		<item>
		<title>Apacheの設定ファイル（httpd.conf）の文法をチェックするコマンド</title>
		<link>http://perl.no-tubo.net/2010/01/21/apache%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%ef%bc%88httpd-conf%ef%bc%89%e3%81%ae%e6%96%87%e6%b3%95%e3%82%92%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%81%99%e3%82%8b%e3%82%b3/</link>
		<comments>http://perl.no-tubo.net/2010/01/21/apache%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%ef%bc%88httpd-conf%ef%bc%89%e3%81%ae%e6%96%87%e6%b3%95%e3%82%92%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%81%99%e3%82%8b%e3%82%b3/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 09:32:26 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[LINUX]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=338</guid>
		<description><![CDATA[Apacheの設定ファイルが正しいかhttpdを起動する前に確認する
/usr/sbin/apachectl configtest
設定ファイル（httpd.conf）に文法エラーが無ければ
Syntax OK と表示さ [...]]]></description>
			<content:encoded><![CDATA[<h2>Apacheの設定ファイルが正しいかhttpdを起動する前に確認する</h2>
<pre>/usr/sbin/apachectl configtest</pre>
<p>設定ファイル（httpd.conf）に文法エラーが無ければ<br />
Syntax OK と表示されるはず。</p>
<p>何らかのエラーがある場合は</p>
<blockquote><p>Syntax error on line 31 of /etc/httpd/conf/httpd.conf:<br />
Invalid command &#8216;¥x11&#8242;, perhaps mis-spelled or defined by a module not included in the server configuration</p></blockquote>
<p>などとエラーメッセージを表示する。</p>
<p>/etc/httpd/conf.d 以下にある設定ファイルはチェックされないので注意。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2010/01/21/apache%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%ef%bc%88httpd-conf%ef%bc%89%e3%81%ae%e6%96%87%e6%b3%95%e3%82%92%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%81%99%e3%82%8b%e3%82%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2010/01/21/apache%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%ef%bc%88httpd-conf%ef%bc%89%e3%81%ae%e6%96%87%e6%b3%95%e3%82%92%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%81%99%e3%82%8b%e3%82%b3/" />
	</item>
		<item>
		<title>LogWatchのhttpd(Apache)に大量のログが添付される場合の対処</title>
		<link>http://perl.no-tubo.net/2009/11/02/logwatch%e3%81%aehttpdapache%e3%81%ab%e5%a4%a7%e9%87%8f%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%8c%e6%b7%bb%e4%bb%98%e3%81%95%e3%82%8c%e3%82%8b%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6/</link>
		<comments>http://perl.no-tubo.net/2009/11/02/logwatch%e3%81%aehttpdapache%e3%81%ab%e5%a4%a7%e9%87%8f%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%8c%e6%b7%bb%e4%bb%98%e3%81%95%e3%82%8c%e3%82%8b%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:36:18 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[サーバ管理]]></category>

		<guid isPermaLink="false">http://perl.no-tubo.net/?p=282</guid>
		<description><![CDATA[webサーバのlogwatchから送信されてくるメールの容量が400kbyteとか600kbyteとか、かなり大きいので対処方法を検索した所以下のページを発見。
参考：logwatch に大量の Apache アクセスロ [...]]]></description>
			<content:encoded><![CDATA[<p>webサーバのlogwatchから送信されてくるメールの容量が400kbyteとか600kbyteとか、かなり大きいので対処方法を検索した所以下のページを発見。</p>
<p>参考：<a href="http://futuremix.org/2007/07/logwatch-httpd-log">logwatch に大量の Apache アクセスログが添付される | futuremix</a></p>
<blockquote><p>CentOS や Fedora Core には LogWatch というアプリケーションがついており、毎晩各種ログを検査して、問題のある部分を抜き出して送ってきてくれます。しかし Apache のログが大量に記録されてメールに添付され、私のサイトでは毎日数100KB のメールが届きます&#8230;</p></blockquote>
<p>対処方法は参考ページにあるのだけれど、一応コピペ。</p>
<pre>vi /etc/log.d/scripts/services/http

   $content_types =  $content_types.'|\.htm|\.html|\.jhtml|\.phtml|\.shtml|\/';
<span style="color: #33cccc;">   ↓追記
   $content_types =  $content_types.'|\.html#.*|\/[a-zA-Z0-9\-_\/\!]+|\/[a-zA-Z0-9\-_\/\!]+#.*|\/';
</span>   $content_types =  $content_types.'|\.inc|\.php|\.php3|\.asp|\.pl|\.wml|\/';</pre>
<p>検査するときの条件を付け加える事で全部ではないけれど抑えられる。</p>
<p>2011-08-11追記<br />
CentOS5.5だと設定ファイルの場所が変わってる。<br />
/usr/share/logwatch/scripts/services</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2009/11/02/logwatch%e3%81%aehttpdapache%e3%81%ab%e5%a4%a7%e9%87%8f%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%8c%e6%b7%bb%e4%bb%98%e3%81%95%e3%82%8c%e3%82%8b%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2009/11/02/logwatch%e3%81%aehttpdapache%e3%81%ab%e5%a4%a7%e9%87%8f%e3%81%ae%e3%83%ad%e3%82%b0%e3%81%8c%e6%b7%bb%e4%bb%98%e3%81%95%e3%82%8c%e3%82%8b%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be%e5%87%a6/" />
	</item>
		<item>
		<title>ApacheでCGIの負荷検証（ベンチマークテスト）</title>
		<link>http://perl.no-tubo.net/2008/07/09/apache%e3%81%a7cgi%e3%81%ae%e8%b2%a0%e8%8d%b7%e6%a4%9c%e8%a8%bc%ef%bc%88%e3%83%99%e3%83%b3%e3%83%81%e3%83%9e%e3%83%bc%e3%82%af%e3%83%86%e3%82%b9%e3%83%88%ef%bc%89/</link>
		<comments>http://perl.no-tubo.net/2008/07/09/apache%e3%81%a7cgi%e3%81%ae%e8%b2%a0%e8%8d%b7%e6%a4%9c%e8%a8%bc%ef%bc%88%e3%83%99%e3%83%b3%e3%83%81%e3%83%9e%e3%83%bc%e3%82%af%e3%83%86%e3%82%b9%e3%83%88%ef%bc%89/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 06:07:02 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[CGI]]></category>
		<category><![CDATA[ベンチマーク]]></category>

		<guid isPermaLink="false">http://pet.no-tubo.net/?p=59</guid>
		<description><![CDATA[Apacheには、標準で「ab」（Apache Bench）というツールが付属している。abの構文は、
ab [options] URL
のように、オプションとテストを実行するURLを指定する。
詳しい使い方は以下
ht [...]]]></description>
			<content:encoded><![CDATA[<p>Apacheには、標準で「ab」（Apache Bench）というツールが付属している。abの構文は、</p>
<pre>ab [options] URL</pre>
<p>のように、オプションとテストを実行するURLを指定する。</p>
<p>詳しい使い方は以下<br />
<a href="http://www.atmarkit.co.jp/flinux/rensai/apache15/apache15b.html" target="_blank">http://www.atmarkit.co.jp/flinux/rensai/apache15/apache15b.html</a></p>
<h3>PERL(CGI)の処理時間を計測するには?</h3>
<p>ターミナルを立ち上げ、パスの前に「time」と打ち込むだけ。<br />
たとえば、「./myProgram.pl」というPerlスクリプトの場合</p>
<pre>$ time ./myProgram.pl
real    0m3.093s
user    0m2.820s
sys     0m0.150s</pre>
<p>詳しい使い方は以下<br />
<a href="http://fstyle.ddo.jp/archives/2006/10/post_367.html" target="_blank">http://fstyle.ddo.jp/archives/2006/10/post_367.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2008/07/09/apache%e3%81%a7cgi%e3%81%ae%e8%b2%a0%e8%8d%b7%e6%a4%9c%e8%a8%bc%ef%bc%88%e3%83%99%e3%83%b3%e3%83%81%e3%83%9e%e3%83%bc%e3%82%af%e3%83%86%e3%82%b9%e3%83%88%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2008/07/09/apache%e3%81%a7cgi%e3%81%ae%e8%b2%a0%e8%8d%b7%e6%a4%9c%e8%a8%bc%ef%bc%88%e3%83%99%e3%83%b3%e3%83%81%e3%83%9e%e3%83%bc%e3%82%af%e3%83%86%e3%82%b9%e3%83%88%ef%bc%89/" />
	</item>
		<item>
		<title>Apacheでの文字化け対策</title>
		<link>http://perl.no-tubo.net/2008/06/12/apache%e3%81%a7%e3%81%ae%e6%96%87%e5%ad%97%e5%8c%96%e3%81%91%e5%af%be%e7%ad%96/</link>
		<comments>http://perl.no-tubo.net/2008/06/12/apache%e3%81%a7%e3%81%ae%e6%96%87%e5%ad%97%e5%8c%96%e3%81%91%e5%af%be%e7%ad%96/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 06:02:01 +0000</pubDate>
		<dc:creator>clicktx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[webプログラミング]]></category>

		<guid isPermaLink="false">http://pet.no-tubo.net/?p=53</guid>
		<description><![CDATA[htmlをeucやutf-8等の文字コードで作成する必要がある時（cgiで作成するなど）の場合、ブラウザが文字コードを読めない場合がある。
httpd.confに以下の記述があると.htmlのファイルには自動でヘッダが送 [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 10px; margin-right: 12px; margin-bottom: 10px; margin-left: 12px; font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #444444; line-height: 1.4; padding: 0px;">htmlをeucやutf-8等の文字コードで作成する必要がある時（cgiで作成するなど）の場合、<br style="font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #111111; padding: 0px; margin: 0px;" />ブラウザが文字コードを読めない場合がある。</p>
<p style="margin-top: 10px; margin-right: 12px; margin-bottom: 10px; margin-left: 12px; font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #444444; line-height: 1.4; padding: 0px;">httpd.confに以下の記述があると.htmlのファイルには自動でヘッダが送られてしまう。</p>
<p style="margin-top: 10px; margin-right: 12px; margin-bottom: 10px; margin-left: 12px; font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #444444; line-height: 1.4; padding: 0px;"><br style="font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #111111; padding: 0px; margin: 0px;" /></p>
<pre style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 10px; font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #111111; width: 340px; overflow-x: auto; overflow-y: auto; padding: 5px; border: 2px solid #cccccc;">

AddType "text/html; charset=Shift_JIS" .html

#AddType "text/html; charset=Shift_JIS" .html<br style="font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #111111; padding: 0px; margin: 0px;" />↑#でコメントアウト</pre>
<p style="margin-top: 10px; margin-right: 12px; margin-bottom: 10px; margin-left: 12px; font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #444444; line-height: 1.4; padding: 0px;">
<p style="margin-top: 10px; margin-right: 12px; margin-bottom: 10px; margin-left: 12px; font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #444444; line-height: 1.4; padding: 0px;"><br style="font-size: 13px; font-weight: normal; font-style: normal; font-family: Verdana, 'ヒラギノ角ゴ Pro W3', 'ＭＳ ゴシック', Osaka‐等幅; text-align: left; color: #111111; padding: 0px; margin: 0px;" />コメントアウトする事でファイルのメタタグで指定が可能になる。</p>
]]></content:encoded>
			<wfw:commentRss>http://perl.no-tubo.net/2008/06/12/apache%e3%81%a7%e3%81%ae%e6%96%87%e5%ad%97%e5%8c%96%e3%81%91%e5%af%be%e7%ad%96/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://perl.no-tubo.net/2008/06/12/apache%e3%81%a7%e3%81%ae%e6%96%87%e5%ad%97%e5%8c%96%e3%81%91%e5%af%be%e7%ad%96/" />
	</item>
	</channel>
</rss>

