<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>FindxFine »  | FindxFine -Web制作に関するメモ-</title>
	
	<link>http://www.findxfine.com</link>
	<description>Web制作に関するメモ</description>
	<lastBuildDate>Wed, 30 May 2012 11:33:11 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/nogallery" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="nogallery" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>jQueryのコールバック関数に引数を渡す : JavaScript</title>
		<link>http://www.findxfine.com/programming/javascript/995556074.html</link>
		<comments>http://www.findxfine.com/programming/javascript/995556074.html#comments</comments>
		<pubDate>Wed, 30 May 2012 11:33:11 +0000</pubDate>
		<dc:creator>findxfine</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.findxfine.com/?p=995556074</guid>
		<description><![CDATA[引数を渡す為にコールバック関数に即時実行で返されるクロージャを設定する。 jQueryのanimateメソッドの例。]]></description>
			<content:encoded><![CDATA[<p>引数を渡す為にコールバック関数に即時実行で返されるクロージャを設定する。</p>
<span id="more-995556074"></span>
<p>jQueryのanimateメソッドの例。</p>
<iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/s_hiroshi/5Sndp/19/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>]]></content:encoded>
			<wfw:commentRss>http://www.findxfine.com/programming/javascript/995556074.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>開発環境の整備 : Mac</title>
		<link>http://www.findxfine.com/server/995556050.html</link>
		<comments>http://www.findxfine.com/server/995556050.html#comments</comments>
		<pubDate>Sat, 26 May 2012 14:31:40 +0000</pubDate>
		<dc:creator>findxfine</dc:creator>
				<category><![CDATA[サーバー]]></category>
		<category><![CDATA[ドメイン・サーバー]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.findxfine.com/?p=995556050</guid>
		<description><![CDATA[SSHの認証方式 パスワード認証ユーザー名とパスワードで認証する。 公開鍵認証 公開鍵と秘密鍵のペアで認証する。 SSHの公開鍵認証の概要 SSHの認証を公開鍵と秘密鍵のペアを使って行う。公開鍵はサーバに置かれ秘密鍵はク [...]]]></description>
			<content:encoded><![CDATA[<h2>SSHの認証方式</h2>
<ul>
<li>パスワード認証<br />ユーザー名とパスワードで認証する。</li>
<li>公開鍵認証 公開鍵と秘密鍵のペアで認証する。</li>
</ul>

<h3>SSHの公開鍵認証の概要</h3>
<p>
SSHの認証を公開鍵と秘密鍵のペアを使って行う。公開鍵はサーバに置かれ秘密鍵はクライアントに置かれる。
公開鍵とペアの秘密鍵を持つクライアントからの接続だけを許可する。
</p>

<h3>公開鍵、秘密鍵の作成</h3>
<p>Macはターミナルからssh-keygenコマンドで公開鍵、秘密鍵を作成できる。<br />
一般にMacでは秘密鍵は下記のディレクトリに配置する。</p>
<pre>
/Users/ユーザー名/.ssh
つまり秘密鍵のパスは　/Users/ユーザー名/.ssh/id_rsa
</pre>


<p>公開鍵はid_rsa.pubとなる。</p>
<p class="note">
[1] Macは秘密鍵が必要なソフトが自動的に.ssh/id_rsaを参照する場合ある。
</p>


<h3>実際の作成方法</h3>
<pre>
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/xxx/.ssh/id_rsa): /Users/xxx/.ssh/id_rsa
Enter passphrase (empty for no passphrase):    パスフレースを入力
Enter same passphrase again:  再度パスフレーズを入力
</pre>



<p>.sshディレクトリにid_rsa(秘密鍵)、id_rsa.pub(公開鍵)が作成される。
id_rsa.pubをauthorized_keysと名前を変えてサーバーにおく。</p>




<h2>Macのパーミッション</h2>
<p>全権限を持つrootユーザーは使ず一般ユーザーを利用する(以下hogeとする)。
ただMacはrootが所有者のファイルがある。それらのファイルの編集は一時的にrootユーザーへ変更して行う。

<h3>vimでhttpd.confを編集する例</h3>
<pre>
$ sudo vim httpd.conf
パスワード入力
</pre>

]]></content:encoded>
			<wfw:commentRss>http://www.findxfine.com/server/995556050.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefoxの検索バーでPHPマニュアルを検索する : PHP</title>
		<link>http://www.findxfine.com/browser/995556047.html</link>
		<comments>http://www.findxfine.com/browser/995556047.html#comments</comments>
		<pubDate>Sat, 26 May 2012 09:20:19 +0000</pubDate>
		<dc:creator>findxfine</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.findxfine.com/?p=995556047</guid>
		<description><![CDATA[Firefoxの検索バーでPHPマニュアルを検索するアドオン。 &#187; PHPマニュアル検索 :: Add-ons for Firefox 上記アドオンをインストールすると検索バーでPHP Manualを選択でき [...]]]></description>
			<content:encoded><![CDATA[<p>Firefoxの検索バーでPHPマニュアルを検索するアドオン。</p>
<p>
&raquo; <a href="https://addons.mozilla.org/ja/firefox/addon/php-manual-search/">PHPマニュアル検索 :: Add-ons for Firefox</a>
</p>
<p>上記アドオンをインストールすると検索バーでPHP Manualを選択できる。検索バーへのフォーカス、検索エンジンの切り替えはのショートカット。</p>
<ul>
<li>検索バーへのフォーカス command + k</li>
<li>検索エンジンの切り替え command + ↑, ↓</li>
</ul>
<p>検索エンジンの並びも「検索エンジンの管理」から変更できる。</p>]]></content:encoded>
			<wfw:commentRss>http://www.findxfine.com/browser/995556047.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>稼働中のWordPressのバージョンや動作要件を調べる : WordPress</title>
		<link>http://www.findxfine.com/programming/wp/995556043.html</link>
		<comments>http://www.findxfine.com/programming/wp/995556043.html#comments</comments>
		<pubDate>Fri, 25 May 2012 01:46:47 +0000</pubDate>
		<dc:creator>findxfine</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.findxfine.com/?p=995556043</guid>
		<description><![CDATA[wp_includes/version.phpにWordPressのバージョン、PHP・MySQLの必要バージョンが記載されている。 &#187; FAQ/インストール &#8211; WordPress Codex  [...]]]></description>
			<content:encoded><![CDATA[<p>wp_includes/version.phpにWordPressのバージョン、PHP・MySQLの必要バージョンが記載されている。</p>
<span id="more-995556043"></span>
<p>
&raquo; <a href="http://wpdocs.sourceforge.jp/FAQ/%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB#.E4.BD.BF.E3.81.A3.E3.81.A6.E3.81.84.E3.82.8B_WordPress_.E3.81.AE.E3.83.90.E3.83.BC.E3.82.B8.E3.83.A7.E3.83.B3.E3.82.92.E7.A2.BA.E8.AA.8D.E3.81.99.E3.82.8B.E3.81.AB.E3.81.AF.EF.BC.9F">FAQ/インストール &#8211; WordPress Codex 日本語版</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.findxfine.com/programming/wp/995556043.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XAMPP for windows(XP)のバーチャルホスト : apache</title>
		<link>http://www.findxfine.com/server/apache/995556014.html</link>
		<comments>http://www.findxfine.com/server/apache/995556014.html#comments</comments>
		<pubDate>Tue, 22 May 2012 04:59:14 +0000</pubDate>
		<dc:creator>findxfine</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[サーバー]]></category>

		<guid isPermaLink="false">http://www.findxfine.com/?p=995556014</guid>
		<description><![CDATA[XAMPP for windowsでバーチャルホストを設定する(Windows XP)。 MacはXAMPP for Macのバーチャルホスト : Macにメモ。 設定するファイル バーチャルホストの設定ファイル(XAM [...]]]></description>
			<content:encoded><![CDATA[<p>XAMPP for windowsでバーチャルホストを設定する(Windows XP)。</p>
<span id="more-995556014"></span>
<p>Macは<a href="http://www.findxfine.com/?p=995555403">XAMPP for Macのバーチャルホスト : Mac</a>にメモ。</p>
<h2>設定するファイル</h2>
<p>バーチャルホストの設定ファイル(XAMPPをC:\xamppにインストールしたとき)。</p>
<ul>
<li>httpd.conf<br />
C:\xampp\apache\conf\httpd.conf</li>
<li>httpd-vhosts.conf<br />
C:\xampp\apache\conf\extra\httpd-vhosts.conf</li>
<li>hosts<br />
C:\WINDOWS\system32\drivers\etc</li>
</ul>
<h2>ファイルの設定</h2>
<p>C:\xampp\にdocsフォルダを作成して案件ごとにフォルダを作成する。</p>
<pre>
C:\xampp\docs\example.com
                  |-- index.html
                  |-- ....
</pre>


<p>example.localhostでアクセスする。</p>
<p>またC:\xampp\htdocsは自身の開発用にする。localhostでアクセスする。</p>


<h3>httpd.confの設定</h3>
<p>バーチャルホストを有効にする。</p>
<pre>
# Virtual hosts
Include conf/extra/httpd-vhosts.conf      ← コメントアウト
</pre>




<h3>httpd-vhosts.conf</h3>
<p>example.localhostディレクトリをDocumentRootに設定する。
<pre>
&lt;VirtualHost *:80&gt;
    DocumentRoot &quot;C:\xampp\docs\example.com&quot;
    ServerName example.localhost
    ErrorLog &quot;logs/example.localhost-error_log&quot;
    CustomLog &quot;logs/example.localhost-access_log&quot; common
    &lt;Directory &quot;C:\xampp\docs\example.com&quot;&gt;
        order deny,allow
        allow from ALL
    &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</pre>


<p>Directoryディレクティブの設定をしないとAccess forbiddenになった。<br />
<p>&raquo; <a href="http://miichan1975.blog56.fc2.com/blog-entry-129.html">ときどきぷろぐらま。   xamppでバーチャルホストを設定。</a></p>

<p>バーチャルホストをしたらlocalhostでhtdocsにアクセスできなくなった。NameVirtualHost *:80にの設定を追加する。この設定はhttpd.confのDocumentRootディレクティブより優先される。</p>
<pre>
NameVirtualHost *:80
&lt;VirtualHost *:80&gt;
ServerName localhost
DocumentRoot &quot;C:\xampp\htdocs&quot;
&lt;/VirtualHost&gt;
</pre>




<h3>hosts</h3>
<pre>
127.0.0.1       localhost
127.0.0.1       example.localhost
</pre>


<pre>C:\WINDOWS\system32\drivers\etc</pre>

]]></content:encoded>
			<wfw:commentRss>http://www.findxfine.com/server/apache/995556014.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

