{"id":7210,"date":"2019-03-23T23:42:59","date_gmt":"2019-03-23T14:42:59","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7210"},"modified":"2019-03-23T23:49:51","modified_gmt":"2019-03-23T14:49:51","slug":"%e8%87%aa%e9%af%96%e3%81%ae-os-%e3%82%92%e6%9b%b4%e6%96%b0%e3%81%97%e3%81%9f%ef%bc%88wordpress-%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae-centos6-%e3%81%8b%e3%82%89-ubuntu18-04-%e3%81%b8%e3%81%ae%e7%a7%bb","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7210","title":{"rendered":"\u81ea\u9bd6\u306e OS \u3092\u66f4\u65b0\u3057\u305f\uff08WordPress \u30b5\u30fc\u30d0\u306e CentOS6 \u304b\u3089 Ubuntu18.04 \u3078\u306e\u79fb\u884c\uff09"},"content":{"rendered":"<p>blog \u3092\u898b\u3066\u3044\u308b\u4eba\u306b\u306f\u57fa\u672c\u7684\u306b\u95a2\u4fc2\u306e\u306a\u3044\u8a71\u3067\u3059\u304c\u3001\u81ea\u9bd6\uff08\u3053\u306e blog \u304c\u52d5\u3044\u3066\u3044\u308b\u30b5\u30fc\u30d0\uff09\u306e OS (distro) \u3092 CentOS 6 \u304b\u3089 Ubuntu 18.04 LTS \u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u306a\u3093\u3067\u5909\u66f4\u3057\u305f\u306e\u304b\u3068\u3044\u3046\u3068\u3001 WordPress \u304c PHP \/ MySQL \u306e\u30b5\u30dd\u30fc\u30c8\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5909\u66f4\u3059\u308b\u95a2\u4fc2\u3067\u3001Wordpress 5.1 \u4ee5\u964d\u3067\u306f\u53e4\u3044 PHP \uff085.6 \u672a\u6e80\uff09\u3092\u4f7f\u3063\u3066\u3044\u308b\u74b0\u5883\u306b\u5bfe\u3057\u3066\uff08\u7ba1\u7406\u753b\u9762\u3067\uff09\u8b66\u544a\u3092\u51fa\u3059\u3088\u3046\u306b\u306a\u3063\u305f\u304b\u3089\u3067\u3059\uff08\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u64ae\u308a\u5fd8\u308c\u305f\uff09\u3002CentOS 6 \u3067\u306f PHP 5.3.3 \/ MySQL 5.1.73 \u306a\u306e\u3067\u3060\u3044\u3076\u53e4\u3044\u3067\u3059\u3002 CentOS 6 \u304b\u3089\u306a\u3089 CentOS 7 \u306b\u66f4\u65b0\u3059\u308b\u306e\u304c\u4f7f\u3044\u52dd\u624b\uff08\u306e\u5909\u5316\u304c\u5c11\u306a\u3044\uff09\u306e\u70b9\u3067\u597d\u307e\u3057\u3044\u306e\u3067\u3059\u304c\u3001CentOS 7 \u3067\u3082 PHP 5.4.16 \/ MariaDB 5.5.60 \u306a\u306e\u3067\u3084\u3063\u3071\u308a\u8b66\u544a\u5bfe\u8c61\u3067\u3059\u3002CentOS 8 \u306f\u3082\u3046\u3059\u3050\u51fa\u308b\u306f\u305a\u3068\u306f\u8a00\u3048\u5f85\u3066\u306a\u3044\uff08\u305d\u3082\u305d\u3082 RHEL 8 \u3082\u51fa\u3066\u306a\u3044\uff09\u306e\u3067\u3001 Ubuntu \u306e\u65b9\u306b\u884c\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 Ubuntu 18.04 LTS \u306a\u3089 PHP 7.2 \/ MySQL 5.7.25 \u306a\u306e\u3067\u3060\u3044\u3076\u5b89\u5fc3\u3067\u3059\u30022\u5e74\u304a\u304d\u306b\u51fa\u308b\u3057\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u540c\u3058 Linux \u3068\u306f\u3044\u3048\u305d\u308c\u306a\u308a\u306b\u7570\u306a\u308b\u74b0\u5883\u3078\u306e\u79fb\u884c\u3068\u306a\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u81ea\u9bd6\u306f blog \u3068 OSS \u306e\u914d\u5e03\u306b\u3057\u304b\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u79fb\u884c\u3059\u3079\u304d\u30c7\u30fc\u30bf\u306f\u305d\u3093\u306a\u306b\u591a\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u3044\u3084\u30db\u30f3\u30c8\u306f\u3044\u308d\u3044\u308d\u904a\u3076\u3064\u3082\u308a\u3067 VPS \u3092\u5951\u7d04\u3057\u305f\u306f\u305a\u306a\u3093\u3067\u3059\u3051\u3069\u306d\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u79fb\u884c\u6642\u306e\u624b\u9806<\/p>\n<h3>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u5c11\u306a\u304f\u3068\u3082 apache2 php mysql php-mysql \u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5fc5\u8981\u3067\u3059\u3002\u5834\u5408\u306b\u3088\u3063\u3066\u306f php-mbstring \u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u5fc5\u8981\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3042\u3068\u3001\u666e\u901a\u306b\u4f7f\u3046\u305f\u3081\u306b firewalld postfix bsd-mailx vim logwatch \u3042\u305f\u308a\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3>MySQL \u306e\u30c7\u30fc\u30bf\u306e\u79fb\u884c<\/h3>\n<p>\u5e78\u3044\u3068\u3044\u3046\u304b\u3001 WordPress \u306e MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f MyISAM \u3067\u4f5c\u3063\u3066\u3042\u308a\u3001\u79fb\u884c\u524d\u5f8c\u3067 CPU \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u304c\u540c\u3058 (x86_64) \u306a\u306e\u3067\u3001\u3082\u3063\u3068\u3082\u5358\u7d14\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08 \/var\/lib\/mysql \u306e\u4e0b\u306b\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff09\u3092\u4e38\u3054\u3068\u30b3\u30d4\u30fc\u3059\u308b\u3060\u3051\u3067\u5927\u4e08\u592b\u3067\u3059\u3002\uff08\u3061\u3083\u3093\u3068\u3059\u308b\u306a\u3089 <code>mysqldump<\/code> \u3092\u4f7f\u3046\u3079\u304d\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff09\u3002MySQL 5.1 \u304b\u3089 5.7 \u307e\u3067\u4e00\u6c17\u306b\u98db\u3076\u306e\u3067\u3001 <code>mysql_upgrade<\/code> \u3092\u5b9f\u884c\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff08\u5fc5\u8981\u304c\u3042\u308b\u306e\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u98db\u3093\u3060\u305b\u3044\u304b\u3069\u3046\u304b\u306f\u5b9f\u306f\u3088\u304f\u5206\u304b\u3063\u3066\u306a\u3044\uff09\u3002<\/p>\n<h3>MySQL \u306e\u30e6\u30fc\u30b6\u306e\u8a2d\u5b9a<\/h3>\n<p>\u57fa\u672c\u7684\u306b\u306f <a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/?p=3\">\u6700\u521d\u306b\u3053\u306e blog \u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u305f\u6642\u306e\u8a18\u9332<\/a>\u3092\u5143\u306b\u3084\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u8a18\u9332\u3067\u306f\u30e6\u30fc\u30b6\u3092\u660e\u793a\u7684\u306b\u4f5c\u3063\u3066\u3044\u307e\u305b\u3093\uff08\u3053\u306e\u901a\u308a\u306b\u3084\u308b\u3068 GRANT \u6587\u306e\u3068\u3053\u308d\u3067\u30e6\u30fc\u30b6\u304c\u7121\u3044\u3068\u8a00\u308f\u308c\u308b\uff09\u3002\u3053\u306e\u6642\u306f GRANT \u6587\u3092\u5b9f\u884c\u3057\u305f\u6642\u306b\u6697\u9ed9\u7684\u306b\u30e6\u30fc\u30b6\u304c\u4f5c\u3089\u308c\u3066\u3044\u305f\u306e\u304b\u3001\u305d\u308c\u3068\u3082\u5358\u306b\u30e6\u30fc\u30b6\u3092\u4f5c\u308b\u624b\u9806\u3092\u8a18\u4e8b\u306b\u66f8\u304d\u5fd8\u308c\u305f\u306e\u304b\u306f\u5224\u7136\u3068\u3057\u307e\u305b\u3093\u3002\u3068\u3082\u304b\u304f\u30e6\u30fc\u30b6\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<h3>Web \u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u79fb\u884c\uff08Wordpress \u81ea\u4f53\u3092\u542b\u3080\uff09<\/h3>\n<p>Web \u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306f WordPress \u81ea\u4f53\u3092\u542b\u3081\u3066 ~\/public_html \u4ee5\u4e0b\u306b\u7f6e\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u5358\u306b rsync \u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u305f\u3082\u306e\u3092\u66f8\u304d\u623b\u3059\u3060\u3051\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e owner\/mode \u306b\u306f\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\uff08\u3067\u306a\u3044\u3068 WordPress \u4e0a\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3068\u304b\u304c\u3067\u304d\u306a\u304f\u306a\u308b\uff09<\/p>\n<h3>Apache \u306e\u8a2d\u5b9a<\/h3>\n<p>\/etc\/apache2\/sites-available \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e0b\u306b umezawa.dyndns.info.conf \u3068\u3044\u3046\u540d\u524d\u3067\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u3092\u30b3\u30d4\u3063\u3066\u304d\u307e\u3059\u3002Apache \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c 2.2 \u304b\u3089 2.4 \u306b\u5909\u308f\u308b\u95a2\u4fc2\u3067\u3001<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/howto\/auth.html\">\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306e\u66f8\u304d\u65b9\u304c\u304b\u306a\u308a\u5909\u308f\u308b<\/a>\uff08\u3051\u3069\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308b\uff09\u306e\u304c\u3061\u3087\u3063\u3068\u3081\u3093\u3069\u304f\u3055\u3044\u3068\u3053\u308d\u3067\u3059\u3002 \u66f8\u304d\u7d42\u308f\u3063\u305f\u3089 <code>a2ensite umezawa.dyndns.info<\/code> \u3068\u3057\u3066\u8a2d\u5b9a\u3092\u6709\u52b9\u5316\u3057\u305f\u5f8c\u306b Apache \u3092\u30ea\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<hr\/>\n<p>\u4e8b\u524d\u306b\u624b\u5143\u306e VM \u3067\u4e88\u884c\u6f14\u7fd2\u3092\u3057\u3066\u304a\u3044\u305f\u306e\u3067\u308f\u308a\u3068\u3059\u3093\u306a\u308a\u79fb\u884c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>blog \u3092\u898b\u3066\u3044\u308b\u4eba\u306b\u306f\u57fa\u672c\u7684\u306b\u95a2\u4fc2\u306e\u306a\u3044\u8a71\u3067\u3059\u304c\u3001\u81ea\u9bd6\uff08\u3053\u306e blog \u304c\u52d5\u3044\u3066\u3044\u308b\u30b5\u30fc\u30d0\uff09\u306e OS (distro) \u3092 CentOS 6 \u304b\u3089 Ubuntu 18.04 LTS \u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-7210","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7210"}],"version-history":[{"count":5,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7210\/revisions"}],"predecessor-version":[{"id":7215,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7210\/revisions\/7215"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7210"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}