<?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>仙人の心得 &#187; apache</title>
	<atom:link href="http://blog.mktime.com/archive/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mktime.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 31 Aug 2010 12:04:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</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://blog.mktime.com/archive/tag/apache/feed" />
		<item>
		<title>Apache：エラーと対応方法</title>
		<link>http://blog.mktime.com/archive/36.html</link>
		<comments>http://blog.mktime.com/archive/36.html#comments</comments>
		<pubDate>Sun, 27 Jul 2008 13:42:04 +0000</pubDate>
		<dc:creator>nak</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=36</guid>
		<description><![CDATA[
とりあえず、エラーログを確認すること。全てはそれから。

ドキュメントルートへのアクセスがforbiddenになるとき
こんなエラーのとき
 Directory index forbidden by Options d [...]]]></description>
			<content:encoded><![CDATA[<p>
とりあえず、エラーログを確認すること。全てはそれから。<br />
<br />
<h3>ドキュメントルートへのアクセスがforbiddenになるとき</h3>
こんなエラーのとき<br />
 <strong>Directory index forbidden by Options directive: /var/www/html/</strong><br />
→Option Indexesが設定されていないため、/でindex.html等にアクセスできていない。<br />
<br />
<h3>Permission deniedのエラーが出るとき</h3>
こんなエラーのとき<br />
<strong> (13)Permission denied: access to / denied</strong><br />
ディレクトリのパーミッションを確認する<br />
ユーザディレクトリにドキュメントルートを置いたときはユーザディレクトリも実行可能でないといけない。<br />
<pre class="console">
 chmod +x /home/ユーザ
</pre>
<br />
<h3>seLinuxの設定が怪しいとき</h3>
seLinuxが原因かどうかは一時的にseLinuxを切ってみれば解る。<br />
/etc/selinux/configを変更する。<br />
<div class="caption">/etc/selinux/config</div>
<pre class="file">
 SELINUX=disabled
</pre>
設定後はサーバ再起動が必要<br />
<pre class="console">
 # reboot
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/36.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.mktime.com/archive/36.html" />
	</item>
		<item>
		<title>php:Windows環境でphp.exe＋apache+MySQLの環境を作る</title>
		<link>http://blog.mktime.com/archive/29.html</link>
		<comments>http://blog.mktime.com/archive/29.html#comments</comments>
		<pubDate>Sun, 27 Jul 2008 13:31:05 +0000</pubDate>
		<dc:creator>nak</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xdebug]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=29</guid>
		<description><![CDATA[
php

php.netからバイナリをダウンロードする。
インストーラでもいいけど、とりあえずzipにしとく。

解凍したらフォルダごと適当なところに移動する。（以降、仮にC:\php-5.2.6-Win32に置いたと [...]]]></description>
			<content:encoded><![CDATA[<p>
<h3>php</h3>
<br />
php.netからバイナリをダウンロードする。<br />
インストーラでもいいけど、とりあえずzipにしとく。<br />
<br />
解凍したらフォルダごと適当なところに移動する。（以降、仮にC:\php-5.2.6-Win32に置いたと仮定して読んでください。）<br />
フォルダの中にあるphp.ini-recommendedをコピーしてphp.iniに名前を変える<br />
<br />
<h3>apache</h3>
apache.orgから現在の最新版Apache2.2のWindows用インストーラをダウンロード＆実行する。<br />
オプションは適当に選ぶ。<br />
<br />
httpd.confに設定を追加する。<br />
標準のパスでインストールしたなら、C:\Program Files\Apache Software Foundation\Apache2.2\conf\に設定ファイルhttpd.confがある。<br />
以下の設定を追記する。<br />
<pre class="file">
LoadModule php5_module "C:\php-5.2.6-Win32\php5apache2_2.dll"
PHPIniDir "C:\php-5.2.6-Win32"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</pre>
linux環境の&#8221;httpd configtest&#8221;に変わるコマンドは<br />
<pre class="console">
httpd.exe -t
</pre>
このコマンドを実行して&#8221;Syntax OK&#8221;が表示されることを確認する。<br />
OKならapacheを再起動する。<br />
<pre class="console">
httpd.exe -k restart
</pre>
<br />
公開ディレクトリにtest用のphpファイルを置いて、phpが実行されていればOKです。<br />
<br />
<br />
XdebugをWindows環境で使うには<br />
<a href="http://pecl4win.php.net/ext.php/php_xdebug.dll">http://pecl4win.php.net/ext.php/php_xdebug.dll</a><br />
からphp_xdebug.dllをダウンロードしてエクステンションDirに保存する。<br />
<br />
<h4>エクステンションとPEARを使う＆開発環境用にphp.iniを編集する</h4>
<div class="caption">php.ini</div>
<pre class="file">
#pearディレクトリをinlude_pathに入れる
include_path = ".:C:\php-5.2.6-Win32\pear"

#開発用にdisplay_errorsをOnにする
display_errors = On

#extension_dirを設定する
extension_dir = "C:\php-5.2.6-Win32\ext"

#エラーログを出力する
error_log = php_error.log

拡張を有効にする。php_xdebug.dllも追記する。
extension=php_mbstring.dll
extension=php_pdo.dll
extension=php_pdo_mysql.dll
</pre>
<br />
<h4>PEARを使えるようにする</h4>
1.go-pear.batを実行して適当に進める。<br />
2.PEAR_ENV.regをダブルクリックしてレジストリに登録する。<br />
3.環境変数pathにpear.batがあるディレクトリを追加する。<br />
4.コマンドプロンプトで &#8220;pear list&#8221;コマンドが通ればOK。<br />
5.プロクシ環境ならpear configにプロクシ設定を行う。<br />
pear config-set http_proxy プロクシサーバ名:ポート番号<br />
<br />
<h3>MySQL</h3>
mysql.comからMySQL Community ServerのWindouws用Setup.exeをダウンロードします。<br />
ウィザードに従ってインストールします。<br />
インストールが終わるとそのまま設定ウィザードに続くので適当に。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/29.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.mktime.com/archive/29.html" />
	</item>
		<item>
		<title>携帯サイト：mod_ktaiをインストール</title>
		<link>http://blog.mktime.com/archive/25.html</link>
		<comments>http://blog.mktime.com/archive/25.html#comments</comments>
		<pubDate>Thu, 24 Jul 2008 23:15:36 +0000</pubDate>
		<dc:creator>nak</dc:creator>
				<category><![CDATA[携帯サイト]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_ktai]]></category>

		<guid isPermaLink="false">http://blog.mktime.com/?p=20</guid>
		<description><![CDATA[
Apacheの携帯サイト変換モジュール、mod_ktaiをインストールしました。

boostが無かったのでインストール

yum install boost


mod_ktaiをインストール

cd /usr/lo [...]]]></description>
			<content:encoded><![CDATA[<p>
Apacheの携帯サイト変換モジュール、mod_ktaiをインストールしました。<br />
<br />
boostが無かったのでインストール<br />
<pre class="console">
yum install boost
</pre>
<br />
mod_ktaiをインストール<br />
<pre class="console">
cd /usr/local/src/
wget http://labs.yumemi.co.jp/labs/mod/rpm/mod_ktai_info-0.9.0-1.el5.yumemi.i386.rpm
rpm -ivh mod_ktai_info-0.9.0-1.el5.yumemi.i386.rpm
wget http://labs.yumemi.co.jp/labs/mod/rpm/mod_ktai_emoji-0.9.0-1.el5.yumemi.i386.rpm
rpm -ivh mod_ktai_emoji-0.9.0-1.el5.yumemi.i386.rpm
</pre>
ktai_info.confの３行目以下のコメントをはずす。<br />
<div class="caption">/etc/httpd/conf.d/ktai_info.conf </div>
<pre class="file">
# ktai_info.conf LoadModule
ktai_info_module modules/mod_ktai_info.so
KtaiInfoLoadDeviceConfigFile /etc/httpd/ktai/ktai_model.tsv
</pre>
ktai_emoji.confの３行目以下のコメントをはずす。<br />
<div class="caption">/etc/httpd/conf.d/ktai_emoji.conf </div>
<pre class="file">
# ktai_emoji.conf
LoadModule ktai_emoji_module modules/mod_ktai_emoji.so
AddOutputFilterByType KTAI_EMOJI_OUTPUT_FILTER text/html
KtaiEmojiConvertMode auto
KtaiEmojiConvertNativeEmojiDocomo 1
KtaiEmojiEnableAddGuidOn 1
</pre>
<br />
apacheの設定ファイルにIncludeを記述する<br />
<div class="caption">/etc/httpd/conf/httpd.conf</div>
<pre class="file">
Include /etc/httpd/conf.d/ktai_info.conf
Include /etc/httpd/conf.d/ktai_emoji.conf
</pre>
apacheを再起動して終わり。<br />
<pre class="console">
/etc/init.d/httpd restart
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mktime.com/archive/25.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://labs.yumemi.co.jp/labs/mod/rpm/mod_ktai_info-0.9.0-1.el5.yumemi.i386.rpm" length="126816" type="audio/x-pn-realaudio-plugin" />
<enclosure url="http://labs.yumemi.co.jp/labs/mod/rpm/mod_ktai_emoji-0.9.0-1.el5.yumemi.i386.rpm" length="230948" type="audio/x-pn-realaudio-plugin" />
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.mktime.com/archive/25.html" />
	</item>
	</channel>
</rss>
