<?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>Yukun&#039;s Blog &#187; Apache</title>
	<atom:link href="http://www.yukun.info/blog/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.yukun.info</link>
	<description>難しいことは分かりやすく、簡単なことは面白く紹介</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:33:59 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress: 解決策→「要求されたアクションを実行するには、WordPress が Web サーバーにアクセスする必要があります。」</title>
		<link>http://www.yukun.info/blog/2011/08/wordpress-file-access.html</link>
		<comments>http://www.yukun.info/blog/2011/08/wordpress-file-access.html#comments</comments>
		<pubDate>Tue, 09 Aug 2011 11:11:46 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=1971</guid>
		<description><![CDATA[事象 WordPressのプラグイン、テーマの自動更新をWebから実施する際に以下のメッセージが発生し、自動更新が中断。 メッセージ 要求されたアクションを実行するには、WordPress が Web サーバーにアクセス &#8230; <a href="http://www.yukun.info/blog/2011/08/wordpress-file-access.html">Continue reading <span class="meta-nav">&#8594;</span></a><p><a href="http://www.yukun.info/blog/2011/08/wordpress-file-access.html">WordPress: 解決策→「要求されたアクションを実行するには、WordPress が Web サーバーにアクセスする必要があります。」</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<h4>事象</h4>
<p>WordPressのプラグイン、テーマの自動更新をWebから実施する際に以下のメッセージが発生し、自動更新が中断。</p>
<h4>メッセージ</h4>
<blockquote><p>
要求されたアクションを実行するには、WordPress が Web サーバーにアクセスする必要があります。<br />
次に進むには FTP の接続情報を入力してください。 接続情報が思い出せない場合は、ホスティング担当者に問い合わせてください。
</p></blockquote>
<h4>原因・対処法</h4>
<p>apacheユーザーにpluginディレクトリへの追加や更新権限が無い為。解決策としてはwordpressの最上位フォルダ上でchown -R apache <em>＜フォルダパス＞</em>を実行しapacheの権限を付与することでOK。</p>
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2008/12/how-to-write-apache-conf.html" rel="bookmark" title="2008年12月25日">Apacheでよく使うコマンドと設定項目</a></li>
<li><a href="http://www.yukun.info/blog/2010/07/error-require-once-autoloader-php.html" rel="bookmark" title="2010年7月25日">解決例: 「ファイルから操作とエンティティを取得できません」 &#8211; Autoloader.php</a></li>
<li><a href="http://www.yukun.info/blog/2012/01/wordpress-remove-filter-url-link.html" rel="bookmark" title="2012年1月4日">WordPress: 本文・コメント中のURLの自動リンクを抑制する &#8211; make_clickable</a></li>
<li><a href="http://www.yukun.info/blog/2012/01/wordpress-facebook-ogp-plugins.html" rel="bookmark" title="2012年1月1日">WordPress: Facebook OGP Social Plugins(Like、コメント)の設置方法</a></li>
<li><a href="http://www.yukun.info/blog/2008/10/wordpress-plugin-similar-posts.html" rel="bookmark" title="2008年10月12日">WordPress: Similar Posts の紹介と設定例 &#8211; 関連記事[投稿|エントリ]を表示するプラグイン</a></li>
</ul>
<p><!-- Similar Posts took 21.295 ms --></p>
<p><a href="http://www.yukun.info/blog/2011/08/wordpress-file-access.html">WordPress: 解決策→「要求されたアクションを実行するには、WordPress が Web サーバーにアクセスする必要があります。」</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2011/08/wordpress-file-access.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apacheでよく使うコマンドと設定項目</title>
		<link>http://www.yukun.info/blog/2008/12/how-to-write-apache-conf.html</link>
		<comments>http://www.yukun.info/blog/2008/12/how-to-write-apache-conf.html#comments</comments>
		<pubDate>Thu, 25 Dec 2008 13:50:51 +0000</pubDate>
		<dc:creator>yukun</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Setting]]></category>

		<guid isPermaLink="false">http://www.yukun.info/?p=1275</guid>
		<description><![CDATA[設置環境はFedoraを想定しています。 注：ソースからインストールした場合や他の環境だと一部ファイルのパスが違うところがあります。 今後も少しずつ書き足し・修正していきます。 コマンド 起動 # /etc/rc.d/i &#8230; <a href="http://www.yukun.info/blog/2008/12/how-to-write-apache-conf.html">Continue reading <span class="meta-nav">&#8594;</span></a><p><a href="http://www.yukun.info/blog/2008/12/how-to-write-apache-conf.html">Apacheでよく使うコマンドと設定項目</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>
]]></description>
			<content:encoded><![CDATA[<p>設置環境はFedoraを想定しています。<br />
注：ソースからインストールした場合や他の環境だと一部ファイルのパスが違うところがあります。<br />
今後も少しずつ書き足し・修正していきます。</p>
<h2>コマンド</h2>
<dl>
<dt>起動</dt>
<dd># /etc/rc.d/init.d/httpd start<br />
または、<br />
# service httpd start</dd>
<dt>終了</dt>
<dd># /etc/rc.d/init.d/httpd stop<br />
または、<br />
# service httpd stop</dd>
<dt>再起動</dt>
<dd># /etc/rc.d/init.d/httpd restart<br />
または、<br />
# service httpd restart</dd>
<dt>自動起動に設定</dt>
<dd># chkconfig httpd on</dd>
<dt>自動起動の確認(Run level 3:on)</dt>
<dd># chkconfig &#8211;list httpd</dd>
<dt>設定の反映</dt>
<dd># /etc/rc.d/init.d/httpd reload</dd>
<dt>ディレクトリの所有者の変更</dt>
<dd># chown ＜ユーザ名＞. /var/www/html/</dd>
<dt>ディレクトリをApache実行ユーザに変更</dt>
<dd># chown -R apache:apache /var/www/html/cgi-bin/</dd>
</dl>
<h2>httpd.confの設定</h2>
<dl>
<dt>設定ファイルhttpd.confのパス</dt>
<dd>/etc/httpd/conf/httpd.conf</dd>
<dt>外部設定ファイル*.confを置くパス</dt>
<dd>/etc/httpd/conf.d/*.conf<br />
・起動時に読み込まれる<br />
・AliasとDirectoryを合わせて用いる場合が多い
</dd>
<dt>DocumentRoot</dt>
<dd>ルートディレクトリの設定<br />
 e.g. DocumentRoot &#8220;/var/www/html&#8221; で<br />
www.example.com/へのアクセスは/var/www/htmlのインデックスページとなる。</dd>
<dt>Alias</dt>
<dd>Alias ＜ドメイン以下のURLパス＞ ＜サーバ内のディレクトリパス＞<br />
<em>e.g.</em> Alias /blog /var/www/blog<br />
の場合は、http://www.example.com/blog/にアクセスした際、サーバの/var/www/blog/内の既定のインデックスファイルが読み込まれる。</dd>
<dt>Directoryタグ</dt>
<p>e.g.</p>
<pre>&lt;directory &quot;/var/www/html&quot;&gt;〜&lt;directory&gt;</pre>
<p>属性にディレクトリパスを指定している。</p>
<dl>
<dt>.htaccessを許可する場合</dt>
<dd>AllowOverride All</dd>
<dt>IPアドレスによるアクセス制限</dt>
<dd>
<pre>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.1.0/24
</pre>
<p>↑はlocalhost、イントラネット以外からのアクセスを拒否
</dd>
</dl>
</dl>
<h2>.htaccessによるパスワード認証</h2>
<h3>.htaccessファイル内の設定例</h3>
<pre>
SSLRequireSSL # SSL経由のアクセス
AuthUserFile ＜認証するユーザリストのパス＞
AuthGroupFile ＜パス＞
AuthName "＜ページ名＞"
AuthType Basic # 認証タイプ
require valid-user
</pre>
<h3>認証するユーザの登録</h3>
<p>初回は<br />
# htpasswd -b -c ＜保存先＞ ＜ユーザ名＞ ＜パスワード＞<br />
二件目以降は既にファイルが作成されているので-cを抜く<br />
# htpasswd -b ＜保存先＞ ＜ユーザ名＞ ＜パスワード＞<br />
ここで作成したファイルのパスを上のAuthUserFile項目に書く。<br />
<h4>関連すると思われる記事：</h4>
<ul class="similar-posts">
<li><a href="http://www.yukun.info/blog/2008/06/linux-users.html" rel="bookmark" title="2008年6月26日">ユーザー管理に関するLinuxコマンド</a></li>
<li><a href="http://www.yukun.info/blog/2008/06/sshd-log-file.html" rel="bookmark" title="2008年6月24日">sshdのログファイルの確認方法</a></li>
<li><a href="http://www.yukun.info/blog/2008/09/r-set-work-directory.html" rel="bookmark" title="2008年9月3日">Rで統計: 作業ディレクトリの設定と確認 &#8211; setwd()、getwd()関数</a></li>
<li><a href="http://www.yukun.info/blog/2011/08/wordpress-file-access.html" rel="bookmark" title="2011年8月9日">WordPress: 解決策→「要求されたアクションを実行するには、WordPress が Web サーバーにアクセスする必要があります。」</a></li>
<li><a href="http://www.yukun.info/blog/2011/12/linux-redmine-subversion-install.html" rel="bookmark" title="2011年12月6日">Linux: RedmineとSubversionのインストール・設定例</a></li>
</ul>
<p><!-- Similar Posts took 7.077 ms --></p>
<p><a href="http://www.yukun.info/blog/2008/12/how-to-write-apache-conf.html">Apacheでよく使うコマンドと設定項目</a> is a post from: <a href="http://www.yukun.info">Yukun&#039;s Blog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yukun.info/blog/2008/12/how-to-write-apache-conf.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

