<?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>サイト制作ノート</title>
	<atom:link href="http://tech.lool.jp/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.lool.jp</link>
	<description></description>
	<lastBuildDate>Sat, 12 May 2012 16:23:18 +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>WordPressのページタイトルをいじりたい</title>
		<link>http://tech.lool.jp/2012/05/13/wordpress%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%bf%e3%82%a4%e3%83%88%e3%83%ab%e3%82%92%e3%81%84%e3%81%98%e3%82%8a%e3%81%9f%e3%81%84/</link>
		<comments>http://tech.lool.jp/2012/05/13/wordpress%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%bf%e3%82%a4%e3%83%88%e3%83%ab%e3%82%92%e3%81%84%e3%81%98%e3%82%8a%e3%81%9f%e3%81%84/#comments</comments>
		<pubDate>Sat, 12 May 2012 16:23:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=183</guid>
		<description><![CDATA[URLパラメータとして ?keyword=hogehoge が指定されたら、ページタイトルにそのパラメータを追加するということをやってみました。 function.phpの中で、wp_titleをhookしてあげればいい [...] [...]]]></description>
			<content:encoded><![CDATA[URLパラメータとして ?keyword=hogehoge が指定されたら、ページタイトルにそのパラメータを追加するということをやってみました。

function.phpの中で、wp_titleをhookしてあげればいいようです。

<pre class="brush: plain; title: ; notranslate">
function yk_title_filter($title, $sep, $seplocation) {
    // If it's a item_search page                                                                                  
    if (isset($_GET['keyword'])) {
        if ('right' == $seplocation) {
            $title = $_GET['keyword'] .	&quot; $sep &quot; . $title;
	} else {
            $title = $title . &quot; $sep &quot; . $_GET['keyword'];
	}
    }

    return $title;
}
add_filter('wp_title', 'yk_title_filter', 10, 3);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/05/13/wordpress%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%bf%e3%82%a4%e3%83%88%e3%83%ab%e3%82%92%e3%81%84%e3%81%98%e3%82%8a%e3%81%9f%e3%81%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>http://r.hatena.ne.jp/rpc could not be pinged. Error message: &quot;transport error - HTTP status code was not 200&quot;</title>
		<link>http://tech.lool.jp/2012/05/07/httpr-hatena-ne-jprpc-could-not-be-pinged-error-message-transport-error-http-status-code-was-not-200/</link>
		<comments>http://tech.lool.jp/2012/05/07/httpr-hatena-ne-jprpc-could-not-be-pinged-error-message-transport-error-http-status-code-was-not-200/#comments</comments>
		<pubDate>Mon, 07 May 2012 12:49:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=180</guid>
		<description><![CDATA[サービス終了のお知らせ [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
http://r.hatena.ne.jp/rpc could not be pinged. Error message: &quot;transport error - HTTP status code was not 200&quot;
</pre>

サービス終了のお知らせ
]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/05/07/httpr-hatena-ne-jprpc-could-not-be-pinged-error-message-transport-error-http-status-code-was-not-200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>http://hamo-search.com/ping.php could not be pinged. Error message: &quot;transport error - HTTP status code was not 200&quot;</title>
		<link>http://tech.lool.jp/2012/05/07/httphamo-search-comping-php-could-not-be-pinged-error-message-transport-error-http-status-code-was-not-200/</link>
		<comments>http://tech.lool.jp/2012/05/07/httphamo-search-comping-php-could-not-be-pinged-error-message-transport-error-http-status-code-was-not-200/#comments</comments>
		<pubDate>Mon, 07 May 2012 12:47:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=174</guid>
		<description><![CDATA[HARMONY SEARCHにつきまして5/6にサービスを終了いたしました。 今までのご利用ありがとうございました。 ということで、サービス終了ですので、エントリーを削除しました。 [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
http://hamo-search.com/ping.php could not be pinged. Error message: &quot;transport error - HTTP status code was not 200&quot;
</pre>

<blockquote>HARMONY SEARCHにつきまして5/6にサービスを終了いたしました。
今までのご利用ありがとうございました。</blockquote>

ということで、サービス終了ですので、エントリーを削除しました。]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/05/07/httphamo-search-comping-php-could-not-be-pinged-error-message-transport-error-http-status-code-was-not-200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>http://ping.ask.jp/xmlrpc.m could not be pinged. Error message: &quot;transport error - could not open socket&quot;</title>
		<link>http://tech.lool.jp/2012/05/07/httpping-ask-jpxmlrpc-m-could-not-be-pinged-error-message-transport-error-could-not-open-socket/</link>
		<comments>http://tech.lool.jp/2012/05/07/httpping-ask-jpxmlrpc-m-could-not-be-pinged-error-message-transport-error-could-not-open-socket/#comments</comments>
		<pubDate>Mon, 07 May 2012 12:46:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=169</guid>
		<description><![CDATA[どうやらpingサーバーは廃止されているようです。 sitemapは受け付けているようなので、そちらで代用することにしました。 http://submissions.ask.com/ping?sitemap=http%3 [...] [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
http://ping.ask.jp/xmlrpc.m could not be pinged. Error message: &quot;transport error - could not open socket&quot;
</pre>

どうやらpingサーバーは廃止されているようです。
sitemapは受け付けているようなので、そちらで代用することにしました。



<blockquote>http://submissions.ask.com/ping?sitemap=http%3A//www.the URL of your sitemap here.xml</blockquote>


]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/05/07/httpping-ask-jpxmlrpc-m-could-not-be-pinged-error-message-transport-error-could-not-open-socket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>http://blog.goo.ne.jp/XMLRPC could not be pinged. Error message: &quot;transport error - HTTP status code was not 200&quot;</title>
		<link>http://tech.lool.jp/2012/05/07/httpblog-goo-ne-jpxmlrpc-could-not-be-pinged-error-message-transport-error-http-status-code-was-not-200/</link>
		<comments>http://tech.lool.jp/2012/05/07/httpblog-goo-ne-jpxmlrpc-could-not-be-pinged-error-message-transport-error-http-status-code-was-not-200/#comments</comments>
		<pubDate>Mon, 07 May 2012 12:45:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=168</guid>
		<description><![CDATA[PingのUser-Agentを以下のように変更することで、成功するようになります。 私はWordPress Ping Optimizerを使っているので、以下のファイルを編集します。 cbnet-ping-optimi [...] [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
http://blog.goo.ne.jp/XMLRPC could not be pinged. Error message: &quot;transport error - HTTP status code was not 200&quot;
</pre>

PingのUser-Agentを以下のように変更することで、成功するようになります。
私はWordPress Ping Optimizerを使っているので、以下のファイルを編集します。
cbnet-ping-optimizer.php
<pre class="brush: plain; title: ; notranslate">
$client-&gt;useragent .= ' lumiukkoblog/1.0.0';
</pre>

結果は以下の通り。
<pre class="brush: plain; title: ; notranslate">
http://blog.goo.ne.jp/XMLRPC was successfully pinged
</pre>

WordPressは嫌われているらしい;;]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/05/07/httpblog-goo-ne-jpxmlrpc-could-not-be-pinged-error-message-transport-error-http-status-code-was-not-200/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>http://ping.bloggers.jp/rpc/ could not be pinged. Error message: &quot;parse error. not well formed&quot;</title>
		<link>http://tech.lool.jp/2012/05/07/httpping-bloggers-jprpc-could-not-be-pinged-error-message-parse-error-not-well-formed/</link>
		<comments>http://tech.lool.jp/2012/05/07/httpping-bloggers-jprpc-could-not-be-pinged-error-message-parse-error-not-well-formed/#comments</comments>
		<pubDate>Mon, 07 May 2012 12:45:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=167</guid>
		<description><![CDATA[サービス終了のようです。 エントリーを削除。 [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
http://ping.bloggers.jp/rpc/ could not be pinged. Error message: &quot;parse error. not well formed&quot;
</pre>

サービス終了のようです。
エントリーを削除。]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/05/07/httpping-bloggers-jprpc-could-not-be-pinged-error-message-parse-error-not-well-formed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CLICKYのAPIを使って逆アクセスリンクを作る</title>
		<link>http://tech.lool.jp/2012/05/03/clicky%e3%81%aeapi%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e9%80%86%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e4%bd%9c%e3%82%8b/</link>
		<comments>http://tech.lool.jp/2012/05/03/clicky%e3%81%aeapi%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e9%80%86%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e4%bd%9c%e3%82%8b/#comments</comments>
		<pubDate>Thu, 03 May 2012 02:11:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[var_dump]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=166</guid>
		<description><![CDATA[CLICKY web analyticsのAPIを使って、逆アクセスリンクを作ってみます。 詳細は、HELP->API->Analytics APIに書いてあります。 Clickyはスパイなど機能も充実していてお気に入り [...] [...]]]></description>
			<content:encoded><![CDATA[<a href="http://getclicky.com/66375349">CLICKY web analytics</a>のAPIを使って、逆アクセスリンクを作ってみます。

詳細は、<a href="https://secure.getclicky.com/user/#/help/api">HELP->API->Analytics API</a>に書いてあります。

<pre class="brush: plain; title: ; notranslate">
&lt;?php
// prereq                                                                                                        
require 'scrape_func.php';
mb_language(&quot;Japanese&quot;);

// parameters                                                                                                    
$base_url = 'http://api.getclicky.com/api/stats/4';
$params['site_id'] = '99999999';
$params['sitekey'] = 'XXXXXXXXXXXXXXXX';
$params['type'] = 'links';
$params['output'] = 'xml';
$params['limit'] = 5;
$params['date'] = 'last-7-days';

// canonical string                                                                                              
$canonical_string = '';
foreach ($params as $k =&gt; $v) {
    $canonical_string .= '&amp;' . $k . '=' . $v;
}
$canonical_string = substr($canonical_string, 1);

// make request                                                                                                  
$request = $base_url . '?' . $canonical_string;
//print_r($request);                                                                                             

// catch the response                                                                                            
$response = file_get_contents($request);
$xml = simplexml_load_string($response);
?&gt;
&lt;ul class=&quot;recentcomments&quot;&gt;
&lt;?php
for ($rank = 0; $rank &lt; 5; $rank++) :
    $item = $xml-&gt;type-&gt;date-&gt;item[$rank];
//    var_dump($item);                                                                                           
    if (empty($item)) break;
    $url = $item-&gt;url;
    $contents = getURL($url);
    $contents = mb_convert_encoding($contents, &quot;UTF-8&quot;, &quot;auto&quot;);
    $contents = cleanString($contents);
    $title = getElement(&quot;title&quot;, $contents);
?&gt;
&lt;li class=&quot;recentcomments&quot;&gt;
      &lt;a href=&quot;&lt;?php echo $url; ?&gt;&quot; class=&quot;url&quot;&gt;&lt;?php echo $rank+1;?&gt;位 &lt;?php echo $title; ?&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;?php
endfor
?&gt;
&lt;/ul&gt;
</pre>

Clickyはスパイなど機能も充実していてお気に入りの分析サービスです。]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/05/03/clicky%e3%81%aeapi%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e9%80%86%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e4%bd%9c%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: タグ入力の際にエンターキーで入力してしまう</title>
		<link>http://tech.lool.jp/2012/04/28/wordpress-%e3%82%bf%e3%82%b0%e5%85%a5%e5%8a%9b%e3%81%ae%e9%9a%9b%e3%81%ab%e3%82%a8%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%ad%e3%83%bc%e3%81%a7%e5%85%a5%e5%8a%9b%e3%81%97%e3%81%a6%e3%81%97%e3%81%be%e3%81%86/</link>
		<comments>http://tech.lool.jp/2012/04/28/wordpress-%e3%82%bf%e3%82%b0%e5%85%a5%e5%8a%9b%e3%81%ae%e9%9a%9b%e3%81%ab%e3%82%a8%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%ad%e3%83%bc%e3%81%a7%e5%85%a5%e5%8a%9b%e3%81%97%e3%81%a6%e3%81%97%e3%81%be%e3%81%86/#comments</comments>
		<pubDate>Sat, 28 Apr 2012 13:12:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[変換]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=164</guid>
		<description><![CDATA[WordPressのタグ入力の際に、エンターキーを押すと変換を確定するのと同時にタグも確定して入力してしまう。 それを回避するには、/wp-admin/js/post.jsの.keyupを.keypressに変換する。 [...]]]></description>
			<content:encoded><![CDATA[WordPressのタグ入力の際に、エンターキーを押すと変換を確定するのと同時にタグも確定して入力してしまう。
それを回避するには、/wp-admin/js/post.jsの.keyupを.keypressに変換する。


]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/04/28/wordpress-%e3%82%bf%e3%82%b0%e5%85%a5%e5%8a%9b%e3%81%ae%e9%9a%9b%e3%81%ab%e3%82%a8%e3%83%b3%e3%82%bf%e3%83%bc%e3%82%ad%e3%83%bc%e3%81%a7%e5%85%a5%e5%8a%9b%e3%81%97%e3%81%a6%e3%81%97%e3%81%be%e3%81%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>記事に画像を連続して挿入できるようにする</title>
		<link>http://tech.lool.jp/2012/04/20/%e8%a8%98%e4%ba%8b%e3%81%ab%e7%94%bb%e5%83%8f%e3%82%92%e9%80%a3%e7%b6%9a%e3%81%97%e3%81%a6%e6%8c%bf%e5%85%a5%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b/</link>
		<comments>http://tech.lool.jp/2012/04/20/%e8%a8%98%e4%ba%8b%e3%81%ab%e7%94%bb%e5%83%8f%e3%82%92%e9%80%a3%e7%b6%9a%e3%81%97%e3%81%a6%e6%8c%bf%e5%85%a5%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 12:13:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=162</guid>
		<description><![CDATA[記事に画像を追加する度に、メディア挿入の画面が閉じてしまうので、非常に効率が悪いです。 メディアアップロードを別ウィンドウに /wp-admin/includes/media.php もしくはこっちでもいいかもしれません [...] [...]]]></description>
			<content:encoded><![CDATA[記事に画像を追加する度に、メディア挿入の画面が閉じてしまうので、非常に効率が悪いです。

<h2>メディアアップロードを別ウィンドウに</h2>
/wp-admin/includes/media.php
<pre class="brush: plain; title: ; notranslate">
        echo '&lt;a href=&quot;' . esc_url( get_upload_iframe_src() ) . '&quot; class=&quot;thickbox add_media&quot; id=&quot;' . esc_attr( $editor_id ) . '-add_media&quot; title=&quot;' . esc_attr__( 'Add Media' ) . '&quot; onclick=&quot;return false;&quot;&gt;' . sprintf( $context, $img ) . '&lt;/a&gt;';
    echo &quot;&lt;a href=\&quot;javascript:w=window.open('&quot; . str_replace('TB_iframe=1', 'TB_iframe=0', esc_url(get_upload_iframe_src())) . &quot;','','scrollbars=yes,Width=650,Height=700,top=0,left=0');w.focus();\&quot; id=\&quot;add_image\&quot; title='&quot; . esc_attr__('Add Media') . &quot;' onclick='return true;'&gt;&lt;img src='images/media-button-image.gif' alt='' /&gt;&lt;/a&gt;&quot;;
</pre>
もしくはこっちでもいいかもしれません。
<pre class="brush: plain; title: ; notranslate">
        echo '&lt;a href=&quot;' . esc_url( get_upload_iframe_src() ) . '&quot; class=&quot;thickbox add_media&quot; id=&quot;' . esc_attr( $editor_id ) . '-add_media&quot; title=&quot;' . esc_attr__( 'Add Media' ) . '&quot; onclick=&quot;return false;&quot;&gt;' . sprintf( $context, $img ) . '&lt;/a&gt;';
    echo &quot;&lt;a href=\&quot;javascript:w=window.open('&quot; . esc_url(get_upload_iframe_src()) . &quot;','','scrollbars=yes,Width=650,Height=700,top=0,left=0');w.focus();\&quot; id=\&quot;add_image\&quot; title='&quot; . esc_attr__('Add Media') . &quot;' onclick='return true;'&gt;&lt;img src='images/media-button-image.gif' alt='' /&gt;&lt;/a&gt;&quot;;
</pre>


<h2>挿入した後に戻る</h2>
私は、Custom Field Templateプラグインを使用しているため、media_send_to_editorがフックされています。
そのため、修正するのは/wp-content/plugins/custom-field-template/custom-field-template.phpとなります。
<pre class="brush: plain; title: ; notranslate">
        function media_send_to_custom_field($html) {
                $out =  '&lt;script type=&quot;text/javascript&quot;&gt;' . &quot;\n&quot; .
                                        '       /* &lt;![CDATA[ */' . &quot;\n&quot; .
                                        '       var win = window.dialogArguments || opener || parent || top;' . &quot;\n&quot; .
                                        '   if ( typeof win.send_to_custom_field == &quot;function&quot; ) ' . &quot;\n&quot; .
                                        '           win.send_to_custom_field(&quot;' . addslashes($html) . '&quot;);' . &quot;\n&quot; .
                                        '   else ' . &quot;\n&quot; .
                                        '       win.send_to_editor(&quot;' . addslashes($html) . '&quot;);' . &quot;\n&quot; .
                    '   history.back();' . &quot;\n&quot; .
                                        '/* ]]&gt; */' . &quot;\n&quot; .
                                        '&lt;/script&gt;' . &quot;\n&quot;;

                echo $out;
                exit();
</pre>
history.back();を追加するということですね。

Good Luck!]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/04/20/%e8%a8%98%e4%ba%8b%e3%81%ab%e7%94%bb%e5%83%8f%e3%82%92%e9%80%a3%e7%b6%9a%e3%81%97%e3%81%a6%e6%8c%bf%e5%85%a5%e3%81%a7%e3%81%8d%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APCインストールと設定</title>
		<link>http://tech.lool.jp/2012/04/15/apc%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a8%e8%a8%ad%e5%ae%9a/</link>
		<comments>http://tech.lool.jp/2012/04/15/apc%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a8%e8%a8%ad%e5%ae%9a/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 07:17:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Log]]></category>
		<category><![CDATA[APC]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[SL]]></category>
		<category><![CDATA[SL6]]></category>
		<category><![CDATA[SL6.1]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://tech.lool.jp/?p=161</guid>
		<description><![CDATA[前提モジュールをインストール。 APCモジュールをインストール。 /etc/php.d/にapc.iniファイルを作成。 サービスを再読込。 [...]]]></description>
			<content:encoded><![CDATA[前提モジュールをインストール。
<pre class="brush: plain; title: ; notranslate">
# yum -y install php53u-devel httpd-devel
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
 * epel: ftp.iij.ad.jp
 * ius: mirror.sothatswhy.org.uk
 * sl: ftp.riken.jp
 * sl-security: ftp.riken.jp
99 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--&gt; Running transaction check
---&gt; Package httpd-devel.x86_64 0:2.2.15-15.sl6.1 will be installed
--&gt; Processing Dependency: apr-util-devel for package: httpd-devel-2.2.15-15.sl6.1.x86_64
--&gt; Processing Dependency: apr-devel for package: httpd-devel-2.2.15-15.sl6.1.x86_64
---&gt; Package php53u-devel.x86_64 0:5.3.10-1.ius.el6 will be installed
--&gt; Running transaction check
---&gt; Package apr-devel.x86_64 0:1.3.9-3.el6_1.2 will be installed
---&gt; Package apr-util-devel.x86_64 0:1.3.9-3.el6_0.1 will be installed
--&gt; Processing Dependency: openldap-devel for package: apr-util-devel-1.3.9-3.el6_0.1.x86_64
--&gt; Processing Dependency: db4-devel for package: apr-util-devel-1.3.9-3.el6_0.1.x86_64
--&gt; Processing Dependency: expat-devel for package: apr-util-devel-1.3.9-3.el6_0.1.x86_64
--&gt; Running transaction check
---&gt; Package db4-devel.x86_64 0:4.7.25-16.el6 will be installed
--&gt; Processing Dependency: db4-cxx = 4.7.25-16.el6 for package: db4-devel-4.7.25-16.el6.x86_64
--&gt; Processing Dependency: libdb_cxx-4.7.so()(64bit) for package: db4-devel-4.7.25-16.el6.x86_64
---&gt; Package expat-devel.x86_64 0:2.0.1-9.1.el6 will be installed
---&gt; Package openldap-devel.x86_64 0:2.4.23-20.el6 will be installed
--&gt; Processing Dependency: cyrus-sasl-devel &gt;= 2.1 for package: openldap-devel-2.4.23-20.el6.x86_64
--&gt; Running transaction check
---&gt; Package cyrus-sasl-devel.x86_64 0:2.1.23-13.el6 will be installed
---&gt; Package db4-cxx.x86_64 0:4.7.25-16.el6 will be installed
--&gt; Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package                     Arch              Version                     Repository              Size
========================================================================================================
Installing:
 httpd-devel                 x86_64            2.2.15-15.sl6.1             sl-security            146 k
 php53u-devel                x86_64            5.3.10-1.ius.el6            ius                    613 k
Installing for dependencies:
 apr-devel                   x86_64            1.3.9-3.el6_1.2             sl                     175 k
 apr-util-devel              x86_64            1.3.9-3.el6_0.1             sl                      68 k
 cyrus-sasl-devel            x86_64            2.1.23-13.el6               sl                     301 k
 db4-cxx                     x86_64            4.7.25-16.el6               sl                     589 k
 db4-devel                   x86_64            4.7.25-16.el6               sl                     6.6 M
 expat-devel                 x86_64            2.0.1-9.1.el6               sl                     118 k
 openldap-devel              x86_64            2.4.23-20.el6               sl                     1.1 M

Transaction Summary
========================================================================================================
Install       9 Package(s)

Total download size: 9.6 M
Installed size: 37 M
Downloading Packages:
(1/9): apr-devel-1.3.9-3.el6_1.2.x86_64.rpm                                      | 175 kB     00:00     
(2/9): apr-util-devel-1.3.9-3.el6_0.1.x86_64.rpm                                 |  68 kB     00:00     
(3/9): cyrus-sasl-devel-2.1.23-13.el6.x86_64.rpm                                 | 301 kB     00:00     
(4/9): db4-cxx-4.7.25-16.el6.x86_64.rpm                                          | 589 kB     00:00     
(5/9): db4-devel-4.7.25-16.el6.x86_64.rpm                                        | 6.6 MB     00:01     
(6/9): expat-devel-2.0.1-9.1.el6.x86_64.rpm                                      | 118 kB     00:00     
(7/9): httpd-devel-2.2.15-15.sl6.1.x86_64.rpm                                    | 146 kB     00:00     
(8/9): openldap-devel-2.4.23-20.el6.x86_64.rpm                                   | 1.1 MB     00:00     
(9/9): php53u-devel-5.3.10-1.ius.el6.x86_64.rpm                                  | 613 kB     00:02     
--------------------------------------------------------------------------------------------------------
Total                                                                   1.6 MB/s | 9.6 MB     00:05     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : apr-devel-1.3.9-3.el6_1.2.x86_64                                                     1/9 
  Installing : expat-devel-2.0.1-9.1.el6.x86_64                                                     2/9 
  Installing : db4-cxx-4.7.25-16.el6.x86_64                                                         3/9 
  Installing : db4-devel-4.7.25-16.el6.x86_64                                                       4/9 
  Installing : cyrus-sasl-devel-2.1.23-13.el6.x86_64                                                5/9 
  Installing : openldap-devel-2.4.23-20.el6.x86_64                                                  6/9 
  Installing : apr-util-devel-1.3.9-3.el6_0.1.x86_64                                                7/9 
  Installing : httpd-devel-2.2.15-15.sl6.1.x86_64                                                   8/9 
  Installing : php53u-devel-5.3.10-1.ius.el6.x86_64                                                 9/9 

Installed:
  httpd-devel.x86_64 0:2.2.15-15.sl6.1              php53u-devel.x86_64 0:5.3.10-1.ius.el6             

Dependency Installed:
  apr-devel.x86_64 0:1.3.9-3.el6_1.2                 apr-util-devel.x86_64 0:1.3.9-3.el6_0.1           
  cyrus-sasl-devel.x86_64 0:2.1.23-13.el6            db4-cxx.x86_64 0:4.7.25-16.el6                    
  db4-devel.x86_64 0:4.7.25-16.el6                   expat-devel.x86_64 0:2.0.1-9.1.el6                
  openldap-devel.x86_64 0:2.4.23-20.el6             

Complete!
</pre>

APCモジュールをインストール。
<pre class="brush: plain; title: ; notranslate">
# pecl install apc
</pre>

/etc/php.d/にapc.iniファイルを作成。
<pre class="brush: plain; title: ; notranslate">
extension=apc.so
[APC]
apc.enabled = 1
apc.shm_size = 64M
</pre>

サービスを再読込。
<pre class="brush: plain; title: ; notranslate">
# service php-fpm reslaod
</pre>
]]></content:encoded>
			<wfw:commentRss>http://tech.lool.jp/2012/04/15/apc%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a8%e8%a8%ad%e5%ae%9a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

