{"id":1480,"date":"2020-09-01T21:47:23","date_gmt":"2020-09-01T12:47:23","guid":{"rendered":"https:\/\/nobunobu1717.site\/?p=1480"},"modified":"2020-09-08T07:04:06","modified_gmt":"2020-09-07T22:04:06","slug":"post-1480","status":"publish","type":"post","link":"https:\/\/nobunobu1717.site\/?p=1480","title":{"rendered":"Oracle Cloud\u3067\u5e38\u6642\u7121\u6599\u306awordpress\u306e\u74b0\u5883\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">1<\/span> \u6982\u8981<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">2<\/span> \u624b\u9806<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_1\">3<\/span> \u307e\u3068\u3081<\/a><\/li><\/ul><\/div>\n<h2><span id=\"i\">\u6982\u8981<\/span><\/h2>\n<p>\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306eOracle Cloud\u306b\u304a\u3044\u3066\u3001Always Free\u3068\u3044\u3063\u305f\u7121\u6599\u67a0\u3092\u5229\u7528\u3059\u308b\u4e8b\u3067\u3001\u5e38\u6642\u7121\u6599\u3067\u5229\u7528\u53ef\u80fd\u306awordpress\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<h3>\u4eca\u56de\u8aac\u660e\u3059\u308b\u4e8b<\/h3>\n<ol>\n<li>Oracle Cloud\u3067\u69cb\u7bc9\u3057\u305f\u30b5\u30fc\u30d0\u306e\u74b0\u5883\u8a2d\u5b9a<\/li>\n<li>wordpress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/li>\n<\/ol>\n<h3>\u4eca\u56de\u8aac\u660e\u3057\u306a\u3044\u4e8b<\/h3>\n<p>\u4eca\u56de\u306e\u4f5c\u696d\u3092\u9032\u3081\u308b\u4e0a\u3067\u4e0b\u8a18\u306e\u4f5c\u696d\u306f\u7d42\u4e86\u3057\u3066\u3044\u308b\u4e8b\u304c\u524d\u63d0\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u672a\u5b9f\u65bd\u306e\u5834\u5408\u306f\u3001\u5148\u306b\u4f5c\u696d\u3092\u5b8c\u4e86\u3057\u305f\u4e0a\u3067\u5b9f\u65bd\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n<h4>Oracle Cloud\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332<\/h4>\n<p><blockquote class=\"wp-embedded-content\" data-secret=\"Jq2WcWt7bH\"><a href=\"https:\/\/nobunobu1717.site\/?p=1411\">Oracle Cloud\u306eFree Tier\u3067\u7121\u6599\u30b5\u30fc\u30d0\u74b0\u5883\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u65b0\u898f\u767b\u9332\u3059\u308b\u65b9\u6cd5<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Oracle Cloud\u306eFree Tier\u3067\u7121\u6599\u30b5\u30fc\u30d0\u74b0\u5883\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u65b0\u898f\u767b\u9332\u3059\u308b\u65b9\u6cd5&#8221; &#8212; nobu blog\" src=\"https:\/\/nobunobu1717.site\/?p=1411&#038;embed=true#?secret=CmwWs2XRFH#?secret=Jq2WcWt7bH\" data-secret=\"Jq2WcWt7bH\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p><\/p>\n<h4>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u3068\u30b5\u30fc\u30d0\u306e\u69cb\u7bc9<\/h4>\n<p><blockquote class=\"wp-embedded-content\" data-secret=\"0EaJcdKMyN\"><a href=\"https:\/\/nobunobu1717.site\/?p=1436\">Oracle Cloud\u3067\u5e38\u6642\u7121\u6599\u306awordpress\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Oracle Cloud\u3067\u5e38\u6642\u7121\u6599\u306awordpress\u7528\u306e\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b&#8221; &#8212; nobu blog\" src=\"https:\/\/nobunobu1717.site\/?p=1436&#038;embed=true#?secret=eGH12UCGlD#?secret=0EaJcdKMyN\" data-secret=\"0EaJcdKMyN\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n\n\n<h2><span id=\"i-2\">\u624b\u9806<\/span><\/h2>\n<h3>\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u63a5\u7d9a<\/h3>\n<p>ssh\u3067\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3092\u884c\u3044\u307e\u3059\u3002\u4e0a\u8a18\u306e\u8a18\u4e8b\u3067\u3082\u8aac\u660e\u3057\u3066\u3044\u308b\u624b\u6cd5\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u4e0d\u660e\u306a\u5834\u5408\u306b\u306f\u5148\u306b\u78ba\u8a8d\u3092\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"\">sudo ssh -i \u4fdd\u5b58\u3057\u305f\u79d8\u5bc6\u9375\u30d5\u30a1\u30a4\u30eb\u540d \u30e6\u30fc\u30b6\u540d@\u30d1\u30d6\u30ea\u30c3\u30afIP\u30a2\u30c9\u30ec\u30b9<\/pre>\n<h3>\u5404\u7a2e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<h4>\u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u6700\u65b0\u5316<\/h4>\n<pre class=\"lang:default decode:true\">sudo yum update -y<\/pre>\n<p>\u3057\u3070\u3089\u304f\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u3067\u5f85\u3064\u3002<\/p>\n<p><strong>\u5b8c\u4e86\u3057\u307e\u3057\u305f!<\/strong><\/p>\n<p>\u3068\u8868\u793a\u3055\u308c\u308c\u3070OK\u3002<\/p>\n<h4>\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a<\/h4>\n<pre class=\"lang:default decode:true\">sudo timedatectl set-timezone Asia\/Tokyo<\/pre>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n<h4>php, apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>centos7\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3060\u3068\u3001php5\u306a\u3069\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u306e\u3067php7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u305f\u5f8c\u306b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">sudo yum install epel-release\nsudo yum update -y\n\nsudo yum -y install http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm\nsudo yum update -y\n\nsudo yum -y install httpd php74 php74-php php74-php-mysqlnd php-gd<\/pre>\n<h4>\u00a0<\/h4>\n<h4>maria DB\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<pre class=\"lang:default decode:true\">sudo yum -y install mariadb-server mariadb-client<\/pre>\n<p>\u4e0b\u8a18\u3067\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u5909\u66f4<\/p>\n<pre class=\"lang:default decode:true\">sudo systemctl enable mariadb\nsudo systemctl start mariadb<\/pre>\n<h4>\u521d\u671fDB\u306e\u4f5c\u6210<\/h4>\n<p>\u4e0b\u8a18\u306e\u4efb\u610f\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u90e8\u5206\u306f\u81ea\u5206\u3067\u597d\u304d\u306a\u5024\u3092\u6307\u5b9a\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u307e\u305f\u3001\u5f8c\u307b\u3069\u4f7f\u7528\u3059\u308b\u306e\u3067\u8a18\u9332\u3057\u3066\u304a\u3044\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"lang:default decode:true\">mysql -u root\n\nCREATE DATABASE wordpress;\nupdate mysql.user set password=password('\u4efb\u610f\u306e\u30d1\u30b9\u30ef\u30fc\u30c9') where user = 'root';\nflush privileges;\n\nexit\n\n<\/pre>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n<h4>apache\u306e\u6a29\u9650\u3092\u4ed8\u4e0e<\/h4>\n<pre class=\"lang:default decode:true\">sudo setenforce 0\nsudo chown -R apache:apache \/var\/www\/html\nsudo chmod -R 755 \/var\/www\/html<\/pre>\n<h4>\u00a0<\/h4>\n<h4>apache\u306e\u6709\u52b9\u5316\u3068\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u958b\u3051\u308b<\/h4>\n<pre class=\"lang:default decode:true\">sudo systemctl enable httpd\nsudo systemctl start httpd\n\nsudo firewall-cmd --permanent --add-port=80\/tcp\nsudo firewall-cmd --permanent --add-port=443\/tcp\nsudo firewall-cmd --reload\n\n<\/pre>\n<h4>\u00a0<\/h4>\n<h4>SELINUX\u306e\u7121\u52b9\u5316<\/h4>\n<p>\u5148\u307b\u3069\u306f\u4e00\u6642\u671f\u7684\u306b\u7121\u52b9\u5316\u3057\u305fSELINUX\u3092\u7121\u52b9\u5316\u3057\u3066\u304a\u304f<\/p>\n<pre class=\"lang:default decode:true\">sudo vi \/etc\/selinux\/config<\/pre>\n<p>SELINUX=enforcing \u2192\u3000SELINUX=disabled\u3000\u306b\u5909\u66f4<\/p>\n<h4>\u30a2\u30af\u30bb\u30b9\u78ba\u8a8d<\/h4>\n<p>\u3053\u3053\u3067apache\u3067WEB\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>WEB\u30d6\u30e9\u30a6\u30b6\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001<\/p>\n<p><strong>http:\/\/\u30b5\u30fc\u30d0\u306eIP\u30a2\u30c9\u30ec\u30b9<\/strong><\/p>\n<p>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img width=\"2392\" height=\"658\" src=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2020\/09\/apache.png\" alt=\"\" class=\"wp-image-1481\"\/><\/figure>\n\n\n\n<h3>wordpress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u3053\u3053\u304b\u3089\u5b9f\u969b\u306bwordpress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">wget https:\/\/ja.wordpress.org\/latest-ja.tar.gz\ntar xzvf latest-ja.tar.gz\ncd wordpress\nsudo cp -r * \/var\/www\/html\/\nsudo chmod -R 755 \/var\/www\/html<\/pre>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u65bd\u5f8c\u306b\u518d\u5ea6\u3001<\/p>\n<p><strong>http:\/\/IP\u30a2\u30c9\u30ec\u30b9<\/strong><\/p>\n<p>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u4e0b\u56f3\u306e\u3088\u3046\u306awordpress\u306e\u753b\u9762\u304c\u51fa\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u3055\u3042\u3001\u59cb\u3081\u307e\u3057\u3087\u3046\uff01\u3000\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img width=\"1598\" height=\"1206\" src=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2020\/09\/wordpress.png\" alt=\"\" class=\"wp-image-1482\"\/><\/figure>\n\n\n\n<h3>wordpress\u306e\u521d\u671f\u8a2d\u5b9a<\/h3>\n<p>\u4e0b\u56f3\u306e\u3088\u3046\u306b\u5024\u3092\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u95a2\u3057\u3066\u306f\u3001<strong>\u521d\u671fDB\u306e\u4f5c\u6210<\/strong> \u3067\u8a2d\u5b9a\u3057\u305f\u5024\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img width=\"1678\" height=\"1192\" src=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2020\/09\/wordpress2-1.png\" alt=\"\" class=\"wp-image-1487\"\/><\/figure>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u7d9a\u884c\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img width=\"1588\" height=\"654\" src=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2020\/09\/wordpress3.png\" alt=\"\" class=\"wp-image-1488\"\/><\/figure>\n\n\n\n<p>&nbsp;<\/p>\n<p>\u5404\u7a2e\u60c5\u5831\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5165\u529b\u5f8c\u3001\u8a18\u9332\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u5024\u306f\u5f8c\u304b\u3089\u3082\u5909\u66f4\u53ef\u80fd\u3067\u3059\u306e\u3067\u3001\u9069\u5f53\u306a\u5024\u3067\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img width=\"1682\" height=\"1736\" src=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2020\/09\/wordpress5.png\" alt=\"\" class=\"wp-image-1489\"\/><\/figure>\n\n\n\n<p>\u30ed\u30b0\u30a4\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2020\/09\/wordpress6.png\" alt=\"\" class=\"wp-image-1490\" width=\"580\" height=\"355\"\/><\/figure>\n\n\n\n<p>\u5148\u307b\u3069\u5165\u529b\u3057\u305f\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3092\u884c\u3063\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img width=\"964\" height=\"1094\" src=\"https:\/\/nobunobu1717.site\/wp-content\/uploads\/2020\/09\/wordpress7-1.png\" alt=\"\" class=\"wp-image-1495\"\/><\/figure>\n\n\n\n<h2><span id=\"i-3\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u4e0b\u8a18\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li>Oracle Cloud\u3067\u69cb\u7bc9\u3057\u305f\u30b5\u30fc\u30d0\u306e\u74b0\u5883\u8a2d\u5b9a<\/li>\n<li>wordpress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/li>\n<\/ol>\n<p>wordpress\u306e\u8d77\u52d5\u307e\u3067\u306f\u3067\u304d\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u5f8cSSL\u306e\u8a2d\u5b9a\u306a\u3069\u304c\u5fc5\u8981\u306a\u308a\u307e\u3059\u3002\u6b21\u56de\u306e\u8a18\u4e8b\u3067\u8aac\u660e\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u304a\u5f85\u3061\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 \u6982\u89812 \u624b\u98063 \u307e\u3068\u3081 \u6982\u8981 \u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306eOracle Cloud\u306b\u304a\u3044\u3066\u3001Always Free\u3068\u3044\u3063\u305f\u7121\u6599\u67a0\u3092\u5229\u7528\u3059\u308b\u4e8b\u3067\u3001\u5e38\u6642\u7121\u6599\u3067\u5229\u7528\u53ef\u80fd\u306awordpress\u74b0\u5883\u3092\u69cb &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1473,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[36,38,37],"tags":[41,39,40],"_links":{"self":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts\/1480"}],"collection":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1480"}],"version-history":[{"count":10,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts\/1480\/revisions"}],"predecessor-version":[{"id":1511,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts\/1480\/revisions\/1511"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/media\/1473"}],"wp:attachment":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}