{"id":1275,"date":"2019-05-29T15:04:20","date_gmt":"2019-05-29T06:04:20","guid":{"rendered":"https:\/\/blog.id774.net\/entry\/?p=1275"},"modified":"2019-05-29T22:49:43","modified_gmt":"2019-05-29T13:49:43","slug":"wordpress-%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e7%a7%bb%e8%bb%a2","status":"publish","type":"post","link":"https:\/\/harpuia.id774.net\/entry\/2019\/05\/29\/1275\/","title":{"rendered":"WordPress \u306e\u30b5\u30fc\u30d0\u30fc\u79fb\u8ee2"},"content":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306f<a href=\"https:\/\/blog.id774.net\/entry\/2012\/01\/30\/18\/\">\u6700\u521d\u306e\u8a18\u4e8b<\/a>\u3067\u66f8\u3044\u305f\u901a\u308a <a href=\"https:\/\/ja.wordpress.org\/\">WordPress<\/a> \u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3002\u4eca\u307e\u3067\u52d5\u4f5c\u3057\u3066\u3044\u305f\u30b5\u30fc\u30d0\u30fc\u304c\u53e4\u304f\u306a\u3063\u305f\u306e\u3067\u65b0\u3057\u3044\u74b0\u5883\u3078\u79fb\u8ee2\u3057\u305f\u3002\u305d\u308c\u306b\u4f34\u3044\u4f5c\u696d\u3057\u305f\u5185\u5bb9\u3092\u307e\u3068\u3081\u3066\u304a\u304f\u3002<\/p>\n<p><strong>1. \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/strong><\/p>\n<p>\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u30fc\u306e MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b WordPress \u7528\u306e\u74b0\u5883\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">use mysql<br \/>\nselect user,host from user;<br \/>\ncreate database wordpress;<br \/>\ncreate user backup@localhost;<br \/>\nGRANT SELECT, LOCK TABLES, SHOW VIEW ON `wordpress`.* TO 'backup'@'localhost'<br \/>\ncreate user wordpress@localhost;<br \/>\nGRANT ALL PRIVILEGES ON `wordpress`.* TO 'wordpress'@'localhost'<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p><strong>2. \u30c7\u30fc\u30bf\u306e\u5f15\u3063\u8d8a\u3057<\/strong><\/p>\n<p>\u3042\u3089\u304b\u3058\u3081\u53e4\u3044\u30b5\u30fc\u30d0\u30fc\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c0\u30f3\u30d7\u3092\u65e5\u3005\u53d6\u5f97\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u524d\u63d0\u3002\u3053\u308c\u3092\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30ea\u30b9\u30c8\u30a2\u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">mysql -u root -p -D wordpress &lt; wordpress.sql<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p><strong>3. WordPress \u306e\u914d\u7f6e<\/strong><\/p>\n<p>Git \u3067\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u524d\u63d0\u3002\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u30fc\u3067 git clone \u3059\u308b\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">git clone xxx\/wordpress.git<br \/>\nsudo chown -R www-data:www-data wordpress\/<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3067\u30d6\u30ed\u30b0\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u8a98\u5c0e\u3059\u308b\u3002<\/p>\n<p><strong>4. PHP \u306e\u74b0\u5883\u3092\u69cb\u7bc9<\/strong><\/p>\n<p>\u5fc5\u8981\u306b\u5fdc\u3058\u3066 PHP \u95a2\u9023\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">sudo apt-get install php<br \/>\nsudo apt-get install php-mysql<br \/>\nsudo a2enmod rewrite<br \/>\nsudo apt-get install php-mbstring<br \/>\nsudo systemctl restart apache2.service<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p><strong>5. \u8a2d\u5b9a\u306e\u3084\u308a\u76f4\u3057<\/strong><\/p>\n<p>\u30d6\u30ed\u30b0\u306e\u8a2d\u5b9a\u304b\u3089\u300c\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a\u300d\u3092\u9078\u629e\u3057\u3001\u518d\u5ea6\u8a2d\u5b9a\u3057\u76f4\u3059\u3002\u3053\u308c\u3092\u3057\u306a\u3044\u3068\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u4ee5\u5916\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u3002\u307e\u305f\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u3064\u3044\u3066\u3082\u4e00\u5ea6\u3059\u3079\u3066\u7121\u52b9\u5316\u3057\u3066\u304b\u3089\u6709\u52b9\u5316\u3057\u3001\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306f\u6700\u521d\u306e\u8a18\u4e8b\u3067\u66f8\u3044\u305f\u901a\u308a WordPress \u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3002\u4eca\u307e\u3067\u52d5\u4f5c\u3057\u3066\u3044\u305f\u30b5\u30fc\u30d0\u30fc\u304c\u53e4\u304f\u306a\u3063\u305f\u306e\u3067\u65b0\u3057\u3044\u74b0\u5883\u3078\u79fb\u8ee2\u3057\u305f\u3002\u305d\u308c\u306b\u4f34\u3044\u4f5c\u696d\u3057\u305f\u5185\u5bb9\u3092\u307e\u3068\u3081\u3066\u304a\u304f\u3002 1. \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210 \u65b0\u3057\u3044\u30b5\u30fc\u30d0\u30fc\u306e  &#8230; <a title=\"WordPress \u306e\u30b5\u30fc\u30d0\u30fc\u79fb\u8ee2\" class=\"read-more\" href=\"https:\/\/harpuia.id774.net\/entry\/2019\/05\/29\/1275\/\" aria-label=\"WordPress \u306e\u30b5\u30fc\u30d0\u30fc\u79fb\u8ee2 \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-1275","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/harpuia.id774.net\/entry\/wp-json\/wp\/v2\/posts\/1275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harpuia.id774.net\/entry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harpuia.id774.net\/entry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harpuia.id774.net\/entry\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harpuia.id774.net\/entry\/wp-json\/wp\/v2\/comments?post=1275"}],"version-history":[{"count":0,"href":"https:\/\/harpuia.id774.net\/entry\/wp-json\/wp\/v2\/posts\/1275\/revisions"}],"wp:attachment":[{"href":"https:\/\/harpuia.id774.net\/entry\/wp-json\/wp\/v2\/media?parent=1275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harpuia.id774.net\/entry\/wp-json\/wp\/v2\/categories?post=1275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harpuia.id774.net\/entry\/wp-json\/wp\/v2\/tags?post=1275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}