<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10japanesefull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="ja" xml:base="http://www.findxfine.com/wp-atom.php">
	<title type="text">FindxFine »  | FindxFine -Web制作に関するメモ-</title>
	<subtitle type="text">Web制作に関するメモ</subtitle>

	<updated>2012-05-26T14:39:58Z</updated>

	<link rel="alternate" type="text/html" href="http://www.findxfine.com" />
	<id>http://www.findxfine.com/feed/atom</id>
	

	<generator uri="http://wordpress.org/" version="3.3.2">WordPress</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Findxfine" /><feedburner:info uri="findxfine" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
		<author>
			<name>findxfine</name>
					</author>
		<title type="html"><![CDATA[開発環境の整備 : Mac]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Findxfine/~3/tBMcL1kEWgQ/995556050.html" />
		<id>http://www.findxfine.com/?p=995556050</id>
		<updated>2012-05-26T14:39:58Z</updated>
		<published>2012-05-26T14:31:40Z</published>
		<category scheme="http://www.findxfine.com" term="サーバー" /><category scheme="http://www.findxfine.com" term="ドメイン・サーバー" /><category scheme="http://www.findxfine.com" term="SSH" />		<summary type="html"><![CDATA[SSHの認証方式 パスワード認証ユーザー名とパスワードで認証する。 公開鍵認証 公開鍵と秘密鍵のペアで認証する。 SSHの公開鍵認証の概要 SSHの認証を公開鍵と秘密鍵のペアを使って行う。公開鍵はサーバに置かれ秘密鍵はク [...]]]></summary>
		<content type="html" xml:base="http://www.findxfine.com/server/995556050.html">&lt;h2&gt;SSHの認証方式&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;パスワード認証&lt;br /&gt;ユーザー名とパスワードで認証する。&lt;/li&gt;
&lt;li&gt;公開鍵認証 公開鍵と秘密鍵のペアで認証する。&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;SSHの公開鍵認証の概要&lt;/h3&gt;
&lt;p&gt;
SSHの認証を公開鍵と秘密鍵のペアを使って行う。公開鍵はサーバに置かれ秘密鍵はクライアントに置かれる。
公開鍵とペアの秘密鍵を持つクライアントからの接続だけを許可する。
&lt;/p&gt;

&lt;h3&gt;公開鍵、秘密鍵の作成&lt;/h3&gt;
&lt;p&gt;Macはターミナルからssh-keygenコマンドで公開鍵、秘密鍵を作成できる。&lt;br /&gt;
一般にMacでは秘密鍵,公開鍵は下記のディレクトリに配置する。&lt;/p&gt;
&lt;pre&gt;
/Users/ユーザー名/.ssh
つまり秘密鍵のパスは　/Users/ユーザー名/.ssh/id_rsa
[text]
&amp;lt;p&amp;gt;公開鍵はid_rsa.pubとなる。&amp;lt;/p&amp;gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;
[1] Macは秘密鍵が必要なソフトが自動的に.ssh/id_rsaを参照する場合ある。
&amp;lt;/p&amp;gt;


&amp;lt;h3&amp;gt;実際の作成方法&amp;lt;/h3&amp;gt;
[text]
$ 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:  再度パスフレーズを入力
&lt;/pre&gt;



&lt;p&gt;.sshディレクトリにid_rsa(秘密鍵)、id_rsa.pub(公開鍵)が作成される。
id_rsa.pubをauthorized_keysと名前を変えてサーバーにおく。&lt;/p&gt;




&lt;h2&gt;Macのパーミッション&lt;/h2&gt;
&lt;p&gt;全権限を持つrootユーザーは使ず一般ユーザーを利用する(以下hogeとする)。
ただMacはrootが所有者のファイルがある。それらのファイルの編集は一時的にrootユーザーへ変更して行う。

&lt;h3&gt;vimでhttpd.confを編集する例&lt;/h3&gt;
&lt;pre&gt;
$ sudo vim httpd.conf
パスワード入力
&lt;/pre&gt;

&lt;img src="http://feeds.feedburner.com/~r/Findxfine/~4/tBMcL1kEWgQ" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://www.findxfine.com/server/995556050.html#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://www.findxfine.com/server/995556050.html/feed/atom" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://www.findxfine.com/server/995556050.html</feedburner:origLink></entry>
		<entry>
		<author>
			<name>findxfine</name>
					</author>
		<title type="html"><![CDATA[Firefoxの検索バーでPHPマニュアルを検索する : PHP]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Findxfine/~3/bMpub0zwVHw/995556047.html" />
		<id>http://www.findxfine.com/?p=995556047</id>
		<updated>2012-05-26T09:20:19Z</updated>
		<published>2012-05-26T09:20:19Z</published>
		<category scheme="http://www.findxfine.com" term="Browser" /><category scheme="http://www.findxfine.com" term="Firefox" /><category scheme="http://www.findxfine.com" term="PHP" />		<summary type="html"><![CDATA[Firefoxの検索バーでPHPマニュアルを検索するアドオン。 &#187; PHPマニュアル検索 :: Add-ons for Firefox 上記アドオンをインストールすると検索バーでPHP Manualを選択でき [...]]]></summary>
		<content type="html" xml:base="http://www.findxfine.com/browser/995556047.html">&lt;p&gt;Firefoxの検索バーでPHPマニュアルを検索するアドオン。&lt;/p&gt;
&lt;p&gt;
&amp;raquo; &lt;a href="https://addons.mozilla.org/ja/firefox/addon/php-manual-search/"&gt;PHPマニュアル検索 :: Add-ons for Firefox&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;上記アドオンをインストールすると検索バーでPHP Manualを選択できる。検索バーへのフォーカス、検索エンジンの切り替えはのショートカット。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;検索バーへのフォーカス command + k&lt;/li&gt;
&lt;li&gt;検索エンジンの切り替え command + ↑, ↓&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;検索エンジンの並びも「検索エンジンの管理」から変更できる。&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Findxfine/~4/bMpub0zwVHw" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://www.findxfine.com/browser/995556047.html#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://www.findxfine.com/browser/995556047.html/feed/atom" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://www.findxfine.com/browser/995556047.html</feedburner:origLink></entry>
		<entry>
		<author>
			<name>findxfine</name>
					</author>
		<title type="html"><![CDATA[稼働中のWordPressのバージョンや動作要件を調べる : WordPress]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Findxfine/~3/i-7q8DDHwTQ/995556043.html" />
		<id>http://www.findxfine.com/?p=995556043</id>
		<updated>2012-05-25T01:47:19Z</updated>
		<published>2012-05-25T01:46:47Z</published>
		<category scheme="http://www.findxfine.com" term="Programming" /><category scheme="http://www.findxfine.com" term="WordPress" />		<summary type="html"><![CDATA[wp_includes/version.phpにWordPressのバージョン、PHP・MySQLの必要バージョンが記載されている。 &#187; FAQ/インストール &#8211; WordPress Codex  [...]]]></summary>
		<content type="html" xml:base="http://www.findxfine.com/programming/wp/995556043.html">&lt;p&gt;wp_includes/version.phpにWordPressのバージョン、PHP・MySQLの必要バージョンが記載されている。&lt;/p&gt;
&lt;span id="more-995556043"&gt;&lt;/span&gt;
&lt;p&gt;
&amp;raquo; &lt;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"&gt;FAQ/インストール &amp;#8211; WordPress Codex 日本語版&lt;/a&gt;
&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Findxfine/~4/i-7q8DDHwTQ" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://www.findxfine.com/programming/wp/995556043.html#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://www.findxfine.com/programming/wp/995556043.html/feed/atom" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://www.findxfine.com/programming/wp/995556043.html</feedburner:origLink></entry>
		<entry>
		<author>
			<name>findxfine</name>
					</author>
		<title type="html"><![CDATA[XAMPP for windows(XP)のバーチャルホスト : apache]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Findxfine/~3/l-hQ7Q5ozEM/995556014.html" />
		<id>http://www.findxfine.com/?p=995556014</id>
		<updated>2012-05-22T05:24:25Z</updated>
		<published>2012-05-22T04:59:14Z</published>
		<category scheme="http://www.findxfine.com" term="Apache" /><category scheme="http://www.findxfine.com" term="サーバー" />		<summary type="html"><![CDATA[XAMPP for windowsでバーチャルホストを設定する(Windows XP)。 MacはXAMPP for Macのバーチャルホスト : Macにメモ。 設定するファイル バーチャルホストの設定ファイル(XAM [...]]]></summary>
		<content type="html" xml:base="http://www.findxfine.com/server/apache/995556014.html">&lt;p&gt;XAMPP for windowsでバーチャルホストを設定する(Windows XP)。&lt;/p&gt;
&lt;span id="more-995556014"&gt;&lt;/span&gt;
&lt;p&gt;Macは&lt;a href="http://www.findxfine.com/?p=995555403"&gt;XAMPP for Macのバーチャルホスト : Mac&lt;/a&gt;にメモ。&lt;/p&gt;
&lt;h2&gt;設定するファイル&lt;/h2&gt;
&lt;p&gt;バーチャルホストの設定ファイル(XAMPPをC:\xamppにインストールしたとき)。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;httpd.conf&lt;br /&gt;
C:\xampp\apache\conf\httpd.conf&lt;/li&gt;
&lt;li&gt;httpd-vhosts.conf&lt;br /&gt;
C:\xampp\apache\conf\extra\httpd-vhosts.conf&lt;/li&gt;
&lt;li&gt;hosts&lt;br /&gt;
C:\WINDOWS\system32\drivers\etc&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;ファイルの設定&lt;/h2&gt;
&lt;p&gt;C:\xampp\にdocsフォルダを作成して案件ごとにフォルダを作成する。&lt;/p&gt;
&lt;pre&gt;
C:\xampp\docs\example.com
                  |-- index.html
                  |-- ....
&lt;/pre&gt;


&lt;p&gt;example.localhostでアクセスする。&lt;/p&gt;
&lt;p&gt;またC:\xampp\htdocsは自身の開発用にする。localhostでアクセスする。&lt;/p&gt;


&lt;h3&gt;httpd.confの設定&lt;/h3&gt;
&lt;p&gt;バーチャルホストを有効にする。&lt;/p&gt;
&lt;pre&gt;
# Virtual hosts
Include conf/extra/httpd-vhosts.conf      ← コメントアウト
&lt;/pre&gt;




&lt;h3&gt;httpd-vhosts.conf&lt;/h3&gt;
&lt;p&gt;example.localhostディレクトリをDocumentRootに設定する。
&lt;pre&gt;
&amp;lt;VirtualHost *:80&amp;gt;
    DocumentRoot &amp;quot;C:\xampp\docs\example.com&amp;quot;
    ServerName example.localhost
    ErrorLog &amp;quot;logs/example.localhost-error_log&amp;quot;
    CustomLog &amp;quot;logs/example.localhost-access_log&amp;quot; common
    &amp;lt;Directory &amp;quot;C:\xampp\docs\example.com&amp;quot;&amp;gt;
        order deny,allow
        allow from ALL
    &amp;lt;/Directory&amp;gt;
&amp;lt;/VirtualHost&amp;gt;
&lt;/pre&gt;


&lt;p&gt;Directoryディレクティブの設定をしないとAccess forbiddenになった。&lt;br /&gt;
&lt;p&gt;&amp;raquo; &lt;a href="http://miichan1975.blog56.fc2.com/blog-entry-129.html"&gt;ときどきぷろぐらま。   xamppでバーチャルホストを設定。&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;バーチャルホストをしたらlocalhostでhtdocsにアクセスできなくなった。NameVirtualHost *:80にの設定を追加する。この設定はhttpd.confのDocumentRootディレクティブより優先される。&lt;/p&gt;
&lt;pre&gt;
NameVirtualHost *:80
&amp;lt;VirtualHost *:80&amp;gt;
ServerName localhost
DocumentRoot &amp;quot;C:\xampp\htdocs&amp;quot;
&amp;lt;/VirtualHost&amp;gt;
&lt;/pre&gt;




&lt;h3&gt;hosts&lt;/h3&gt;
&lt;pre&gt;
127.0.0.1       localhost
127.0.0.1       example.localhost
&lt;/pre&gt;


&lt;pre&gt;C:\WINDOWS\system32\drivers\etc&lt;/pre&gt;

&lt;img src="http://feeds.feedburner.com/~r/Findxfine/~4/l-hQ7Q5ozEM" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://www.findxfine.com/server/apache/995556014.html#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://www.findxfine.com/server/apache/995556014.html/feed/atom" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://www.findxfine.com/server/apache/995556014.html</feedburner:origLink></entry>
		<entry>
		<author>
			<name>findxfine</name>
					</author>
		<title type="html"><![CDATA[HTML5で簡単なフォトエディターを作成 3 : JavaScript]]></title>
		<link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/Findxfine/~3/uSvC4ytYNJM/995556025.html" />
		<id>http://www.findxfine.com/?p=995556025</id>
		<updated>2012-05-21T07:13:39Z</updated>
		<published>2012-05-21T07:13:43Z</published>
		<category scheme="http://www.findxfine.com" term="JavaScript" /><category scheme="http://www.findxfine.com" term="JavaScript Custom Program" /><category scheme="http://www.findxfine.com" term="Programming" /><category scheme="http://www.findxfine.com" term="html5" />		<summary type="html"><![CDATA[HTML5の勉強で作成しているフォトエディター。機能はリサイズ、回転、フレーム(4pxの白色パディング、1pxの銀ボーダー)、切り取り(オリジナル画像上をドラッグで範囲指定。cで切り取り実行)。]]></summary>
		<content type="html" xml:base="http://www.findxfine.com/programming/javascript/995556025.html">&lt;p&gt;HTML5の勉強で作成しているフォトエディター。機能はリサイズ、回転、フレーム(4pxの白色パディング、1pxの銀ボーダー)、切り取り(オリジナル画像上をドラッグで範囲指定。cで切り取り実行)。&lt;/p&gt;
&lt;span id="more-995556025"&gt;&lt;/span&gt;
&lt;iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/s_hiroshi/ZQLsR/embedded/" allowfullscreen="allowfullscreen" frameborder="0"&gt;&lt;/iframe&gt;&lt;img src="http://feeds.feedburner.com/~r/Findxfine/~4/uSvC4ytYNJM" height="1" width="1"/&gt;</content>
		<link rel="replies" type="text/html" href="http://www.findxfine.com/programming/javascript/995556025.html#comments" thr:count="0" />
		<link rel="replies" type="application/atom+xml" href="http://www.findxfine.com/programming/javascript/995556025.html/feed/atom" thr:count="0" />
		<thr:total>0</thr:total>
	<feedburner:origLink>http://www.findxfine.com/programming/javascript/995556025.html</feedburner:origLink></entry>
	</feed>

