<?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>情報 | 135 Press Studio</title>
	<atom:link href="https://www.135pressstudio.com/category/info/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.135pressstudio.com</link>
	<description>Web,Writing,Letterpress</description>
	<lastBuildDate>Fri, 15 May 2020 06:01:12 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.4.2</generator>
	<item>
		<title>Apache、MySQL、MariaDBの自動起動設定</title>
		<link>https://www.135pressstudio.com/2020/05/15/apache-mysql-mariadb-autostart/</link>
					<comments>https://www.135pressstudio.com/2020/05/15/apache-mysql-mariadb-autostart/#respond</comments>
		
		<dc:creator><![CDATA[maruoka]]></dc:creator>
		<pubDate>Fri, 15 May 2020 06:01:10 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[情報]]></category>
		<guid isPermaLink="false">https://www.135pressstudio.com/?p=166</guid>

					<description><![CDATA[各種自動起動設定 apacheの自動起動確認 MariaDB自動起動確認 MySQL自動起動確認 各種自動起動解除]]></description>
										<content:encoded><![CDATA[
<h4>各種自動起動設定</h4>



<pre class="wp-block-code"><code># systemctl enable サービス名.service</code></pre>



<h4>apacheの自動起動確認</h4>



<pre class="wp-block-code"><code># systemctl is-enabled httpd</code></pre>



<h4>MariaDB自動起動確認</h4>



<pre class="wp-block-code"><code># systemctl is-enabled mariadb</code></pre>



<h4>MySQL自動起動確認</h4>



<pre class="wp-block-code"><code># systemctl is-enabled mysqld</code></pre>



<h4>各種自動起動解除</h4>



<pre class="wp-block-code"><code># systemctl disable サービス名.service</code></pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.135pressstudio.com/2020/05/15/apache-mysql-mariadb-autostart/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Let&#8217;s Encryptの証明書自動更新設定</title>
		<link>https://www.135pressstudio.com/2020/05/08/20200508/</link>
					<comments>https://www.135pressstudio.com/2020/05/08/20200508/#respond</comments>
		
		<dc:creator><![CDATA[maruoka]]></dc:creator>
		<pubDate>Fri, 08 May 2020 05:37:15 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[情報]]></category>
		<guid isPermaLink="false">https://www.135pressstudio.com/?p=163</guid>

					<description><![CDATA[Let&#8217;s Encryptの証明書の更新ですが、スタンドアロンでインストールした場合、更新の際にはApacheを一度止めなくてはエラーになってしまい、更新ができないので、以下のようにコマンドを打ちます。 更新 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Let&#8217;s Encryptの証明書の更新ですが、スタンドアロンでインストールした場合、更新の際にはApacheを一度止めなくてはエラーになってしまい、更新ができないので、以下のようにコマンドを打ちます。</p>



<pre class="wp-block-code"><code>certbot renew --pre-hook "systemctl stop httpd" --post-hook "sudo systemctl restart httpd"</code></pre>



<p>更新実行のコマンドはcertbot renewです。&#8211;pre-hookは実行前にApacheの停止、&#8211;post-hookは実行後にApacheの再起動となります。</p>



<p>これを自動化するために、croncabに入り、スクリプトを書いておきます。</p>



<p>root権限でcrontabを開きます。</p>



<pre class="wp-block-code"><code>crontab -u root -e</code></pre>



<p>証明書更新用のコマンドを書きます。</p>



<pre class="wp-block-code"><code>00 04 01 * * certbot renew --pre-hook "systemctl stop httpd" --post-hook "sudo systemctl restart httpd"</code></pre>



<p>例は毎月１日の午前4時に更新をかけるようにしています。これでApacheの停止、cerbotの実行、Apacheの再起動まで一括で自動化となります。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.135pressstudio.com/2020/05/08/20200508/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>クラウドサーバ（IDCFクラウド）でのWordPressのディレクトリ・ファイル設定メモ</title>
		<link>https://www.135pressstudio.com/2020/04/30/wordpress-apache/</link>
					<comments>https://www.135pressstudio.com/2020/04/30/wordpress-apache/#respond</comments>
		
		<dc:creator><![CDATA[maruoka]]></dc:creator>
		<pubDate>Thu, 30 Apr 2020 06:28:16 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[情報]]></category>
		<guid isPermaLink="false">https://www.135pressstudio.com/?p=148</guid>

					<description><![CDATA[IDCFクラウドサーバに設置したWordPressのディレクトリ・ファイル設定について、ダッシュボードからのインストールや各種更新が上手く行かなかったので、いろいろと調べてみた結果のメモです。このサイトなどのようにレンタ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>IDCFクラウドサーバに設置したWordPressのディレクトリ・ファイル設定について、ダッシュボードからのインストールや各種更新が上手く行かなかったので、いろいろと調べてみた結果のメモです。<br>このサイトなどのようにレンタルサーバでのWordPress簡易インストールをしている場合などのパーミッション設定とは勝手が違うようでした。</p>



<h3 id="env">環境</h3>



<ul><li>IDCFクラウドでのVM（LInux）</li><li>Cent OS 7</li><li>apache 2.4.2</li></ul>



<h3>ユーザーをwheelグループとApacheグループに入れる</h3>



<p>Linuxサーバを普段操作（FTPやSSH）するため、root以外のユーザーを設定していますが、必要に応じてそのユーザーがroot権限を持てるようにするために、ユーザーをwheelグループに入れます。<br>また、WordPressの所有者はApacheとなります。Apache以外の場合はダッシュボードからのインストールに不具合が生じます。そのため、WordPressの入っているディレクトリやファイルの所有者をapacheとしなくてはいけません。それらのディレクトリやファイルを操作するため、ユーザーをApacheグループに入れます。</p>



<pre class="wp-block-code"><code># usermod -aG wheel,apache USER_NAME</code></pre>



<p></p>



<h3>sudoの権限を設定する</h3>



<p>ユーザーにroot権限を与えるため、次のコマンドでsudoersファイルを編集し、sudoの権限を設定します。</p>



<pre class="wp-block-code"><code># visudo</code></pre>



<p>表示されたsudoersファイルで下記のようになっていることを確認します。#でコメントアウトされている場合には、#を外して有効化します。</p>



<pre class="wp-block-code"><code>%wheel        ALL=(ALL)       ALL</code></pre>



<p>パスワードを入力しなくともroot権限を実行できるようにするには、#を外して有効化します。</p>



<pre class="wp-block-code"><code># %wheel        ALL=(ALL)       NOPASSWD: ALL</code></pre>



<h3>ディレクトリの所有者変更</h3>



<pre class="wp-block-code"><code>sudo chown -R apache:apache /var/www/html/wp</code></pre>



<p>ユーザーでsshログインした後、ルート権限に変更します。</p>



<pre class="wp-block-code"><code>$ sudo su</code></pre>



<p>WordPressの入っているディレクトリが /var/www/wp としたら、下記の通り /var/www/wp 以下のディレクトリを所有者:apache、グループ:apacheとしてディレクトリの権限を変更します。「-R」オプションは再帰的に指定ディレクトリ以下の権限をすべて変更します。</p>



<pre class="wp-block-code"><code># sudo chown -R apache:apache /var/www/wp</code></pre>



<p>次に上記WorrdPressの入っているファイルとディレクトリのパーミッションをそれぞれ変更していき、ApacheユーザーとApacheグループにwrite permissionを与えます。<br>すべてのファイルのパーミッションは664、ディレクトリのパーミッションは775とします。</p>



<pre class="wp-block-code"><code># sudo find /var/www/wp -type f -exec chmod 664 {} \;
# sudo find /var/www/wp -type d -exec chmod 775 {} \;</code></pre>



<p>上記で全てのファイルのパーミッションを664としましたが、セキュリティ上、wp-config.phpは404、.htaccessファイルは606の権限に設定し直します。</p>



<pre class="wp-block-code"><code># chmod 404 /var/www/wp/wp-config.php
# chmod 606 /var/www/wp/.htaccess</code></pre>



<p>WordPressの入っている頭のディレクトリ /var/www/wp のみ、所有者をルートもしくはユーザーにする方がよりセキュリティが高いという話もあるようですが、そうするとWordPressの自動更新が、「wp-config.sample.phpのコピーに失敗しました」となり、上手くいかなくなるのでapacheのまま、もしくは市所有者はユーザー、グループはapacheにするのが良いかもしれません。</p>



<pre class="wp-block-code"><code># sudo chown USER_NAME:apache /var/www/wp/</code></pre>



<p>とりあえず、<a href="#env">この環境下</a>でのWordPressの設定はこれでダッシュボードからのインストールや各種更新、FTP操作が上手く行くようになりました。</p>



<h3>参考記事</h3>



<ul><li><a href="https://php-java.com/archives/622">https://php-java.com/archives/622</a></li><li><a href="https://www.toumasu-program.net/entry/2019/10/12/105822">https://www.toumasu-program.net/entry/2019/10/12/105822</a></li></ul>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.135pressstudio.com/2020/04/30/wordpress-apache/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Gmailで外部POPメール受信は間隔が長すぎる</title>
		<link>https://www.135pressstudio.com/2020/04/22/gmail-pop/</link>
					<comments>https://www.135pressstudio.com/2020/04/22/gmail-pop/#respond</comments>
		
		<dc:creator><![CDATA[maruoka]]></dc:creator>
		<pubDate>Wed, 22 Apr 2020 03:00:00 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[情報]]></category>
		<guid isPermaLink="false">https://www.135pressstudio.com/?p=118</guid>

					<description><![CDATA[Gmailで外部POPメールを設定して受信しているのだが、いかんせん受信間隔が長すぎる。受信間隔が設定できないので、手動で設定画面の「アカウントとインポート」から「メールを今すぐ確認する」を押しにいってチェックするのも面 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Gmailで外部POPメールを設定して受信しているのだが、いかんせん受信間隔が長すぎる。<br>受信間隔が設定できないので、手動で設定画面の「アカウントとインポート」から「メールを今すぐ確認する」を押しにいってチェックするのも面倒。</p>



<p>やはりGmailでの外部POPメールの受信については、POPメール配信元のレンタルサーバのメール設定などから、メール転送として転送先にGmailを指定していた方が良いようだ。転送なら即時行われるらしい。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.135pressstudio.com/2020/04/22/gmail-pop/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>aタグ（リンク）を無効化するCSS設定</title>
		<link>https://www.135pressstudio.com/2020/04/21/pointer-events/</link>
					<comments>https://www.135pressstudio.com/2020/04/21/pointer-events/#respond</comments>
		
		<dc:creator><![CDATA[maruoka]]></dc:creator>
		<pubDate>Tue, 21 Apr 2020 08:01:19 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[情報]]></category>
		<guid isPermaLink="false">https://www.135pressstudio.com/?p=114</guid>

					<description><![CDATA[WordPressのプラグインなどで自動生成されるHTMLページのaタグに設定されたリンクを無効化したいときなどは、下記のプロパティと値をCSSに設定する。 例えば、class名が「nolink」と指定してある箇所のaタ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>WordPressのプラグインなどで自動生成されるHTMLページのaタグに設定されたリンクを無効化したいときなどは、下記のプロパティと値をCSSに設定する。</p>



<pre class="wp-block-code"><code>pointer-events: none;</code></pre>



<p>例えば、class名が「nolink」と指定してある箇所のaタグを無効化したい場合は下記の通りとなる。</p>



<pre class="wp-block-code"><code>.nolink{
	pointer-events:none;
}</code></pre>



<p>これ、現時点ではCSSの仕様書じゃなくて、SVGの仕様書で定義されているんですね。<br>CSS4に組み込まれる予定のようです。</p>



<hr class="wp-block-separator"/>



<p>参考：<a href="https://developer.mozilla.org/ja/docs/Web/CSS/pointer-events">https://developer.mozilla.org/ja/docs/Web/CSS/pointer-events</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.135pressstudio.com/2020/04/21/pointer-events/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
