{"id":11202,"date":"2020-06-15T18:38:25","date_gmt":"2020-06-15T09:38:25","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=11202"},"modified":"2023-05-27T18:15:23","modified_gmt":"2023-05-27T09:15:23","slug":"%e3%80%90aws%e3%80%91web%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%abwordpress%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=11202","title":{"rendered":"\u3010AWS\u3011Web\u30b5\u30fc\u30d0\u30fc\u306bWordPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002"},"content":{"rendered":"<p>\u4e8b\u524d\u306bAWS\u306eEC2\u306e\u30b5\u30fc\u30d0\u30fc\u306bSSH\u3067\u63a5\u7d9a\u3092\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>PHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h2>\n<p>WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306fPHP\u304c\u5fc5\u9808\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\uff08\u901a\u5e38\u306eyum\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3060\u3068PHP5.4\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001<span style=\"color: #ff0000;\"><strong>amazon-linux-extras<\/strong><\/span>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\uff09<\/p>\n<pre class=\"lang:default decode:true \">sudo amazon-linux-extras install -y php7.2<\/pre>\n<h3>amazon-linux-extras<\/h3>\n<p>EC2\u306eOS\u3092amazon-linux2\u3068\u3057\u305f\u5834\u5408\u306fextras\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u7fa4\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u306b\u306fPHP\u7b49\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u3088\u308a\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>php\u306e\u4ed8\u5c5e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>amazon-linux-extras\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u72b6\u614b\u3067\u3042\u308c\u3070yum\u3067\u3082\u305d\u306eextras\u306b\u3042\u3063\u305f\u4ed8\u5c5e\u3057\u305fPHP\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">sudo yum install -y php php-mbstring<\/pre>\n<h2>WordPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h2>\n<p>WordPress\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">wget https:\/\/ja.wordpress.org\/latest-ja.tar.gz<\/pre>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">tar xzvf latest-ja.tar.gz<\/pre>\n<p>\u89e3\u51cd\u3057\u305fwordpress\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">cd wordpress<\/pre>\n<p>Apache\u306e\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">sudo cp -r * \/var\/www\/html\/<\/pre>\n<p>Apache\u306e\u516c\u958b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3057\u305fwordpress\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6240\u6709\u8005\u3068\u6240\u6709\u30b0\u30eb\u30fc\u30d7\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u3053\u308c\u3067Apache\u304b\u3089wordpress\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">sudo chown apache:apache \/var\/www\/html -R<\/pre>\n<p>Apache\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">sudo systemctl restart httpd.service<\/pre>\n<h2>WordPress\u306e\u8a2d\u5b9a<\/h2>\n<h3>URL\u306b\u30a2\u30af\u30bb\u30b9<\/h3>\n<p>\u307e\u305a\u306f\u3001EC2\u306eWeb\u30b5\u30fc\u30d0\u30fc\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<h3>\u8a2d\u5b9a<\/h3>\n<h4>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d<\/h4>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u540d\u3067\u3059\u3002<\/p>\n<h4>\u30e6\u30fc\u30b6\u30fc\u540d<\/h4>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30e6\u30fc\u30b6\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30d1\u30b9\u30ef\u30fc\u30c9<\/h4>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30db\u30b9\u30c8\u540d<\/h4>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30db\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u2192\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\uff09<\/p>\n<h4>\u30c6\u30fc\u30d6\u30eb\u63a5\u982d\u8f9e<\/h4>\n<p>wordpress\u306e\u30c6\u30fc\u30d6\u30eb\u540d\u306e\u5148\u982d\u306b\u4ed8\u304d\u307e\u3059\u3002\u57fa\u672c\u7684\u306b<span style=\"color: #ff0000;\"><strong>\u300cwp_\u300d<\/strong><\/span>\u306e\u307e\u307e\u3067\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e8b\u524d\u306bAWS\u306eEC2\u306e\u30b5\u30fc\u30d0\u30fc\u306bSSH\u3067\u63a5\u7d9a\u3092\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002 PHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306fPHP\u304c\u5fc5\u9808\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\uff08\u901a\u5e38\u306eyum\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3060 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/11202"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11202"}],"version-history":[{"count":6,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/11202\/revisions"}],"predecessor-version":[{"id":20114,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/11202\/revisions\/20114"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11202"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}