{"id":6000,"date":"2016-03-30T21:14:30","date_gmt":"2016-03-30T12:14:30","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=6000"},"modified":"2016-04-06T10:27:12","modified_gmt":"2016-04-06T01:27:12","slug":"%e3%83%96%e3%83%ad%e3%82%b0%e3%82%b5%e3%83%bc%e3%83%90%e6%a7%8b%e7%af%89wordpress","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/%e3%83%96%e3%83%ad%e3%82%b0%e3%82%b5%e3%83%bc%e3%83%90%e6%a7%8b%e7%af%89wordpress\/","title":{"rendered":"\u30d6\u30ed\u30b0\u30b5\u30fc\u30d0\u69cb\u7bc9(WordPress)"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u4f50\u85e4\u99ff\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fAWS\u306eEC2\u3067\u30b5\u30fc\u30d0(\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9)\u3092\u8d77\u52d5\u3055\u305b\u3001Wordpress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<br \/>\n\u5b9f\u8df5\u3055\u308c\u308b\u65b9\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u9759\u7684\u306aIP\u30a2\u30c9\u30ec\u30b9\u306e\u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308bEIP\u3092\u4ed8\u4e0e\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\uff1c\u4eca\u56de\u306e\u30d6\u30ed\u30b0\u30b5\u30fc\u30d0\u306b\u5fc5\u8981\u306a\u3082\u306e\uff1e<\/p>\n<p>\u2460Apache<br \/>\nWeb\u30b5\u30fc\u30d0\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3002\u30d6\u30ed\u30b0\u30b5\u30fc\u30d0\u3082Web\u30b5\u30fc\u30d0\u306e\u4e00\u7a2e\u306a\u306e\u3067\u3001\u571f\u53f0\u3068\u3057\u3066\u3053\u308c\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306fWeb\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3057\u3001\u81ea\u5206\u3067\u4f5c\u3063\u305fWeb\u30da\u30fc\u30b8\u3092\u95b2\u89a7\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u2461MySQL<br \/>\nDB(\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9)\u7ba1\u7406\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3002\u30d6\u30ed\u30b0\u30b5\u30fc\u30d0\u306e\u30c7\u30fc\u30bf\u3092\u305f\u3081\u3053\u307f\u3001\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n<p>\u2462PHP<br \/>\n\u52d5\u7684Web\u30b5\u30a4\u30c8\u306b\u5fc5\u8981\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u3002<br \/>\n\u52d5\u7684\u3068\u306f\u3001\u4f8b\u3048\u3070\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u4eba\u306b\u3088\u3063\u3066\u898b\u308c\u308b\u5185\u5bb9\u304c\u7570\u306a\u308b(\u5909\u5316\u3059\u308b\uff1d\u52d5\u7684\u306a)Web\u30da\u30fc\u30b8\u3068\u304b\u306e\u3053\u3068\u3002\u52d5\u753b\u304c\u898b\u308c\u308b\u30da\u30fc\u30b8\u306e\u3053\u3068\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>\u2463WordPress<br \/>\n\u30d6\u30ed\u30b0\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30bd\u30d5\u30c8\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3055\u3063\u305d\u304f\u30d6\u30ed\u30b0\u30b5\u30fc\u30d0\u69cb\u7bc9\u306b\u79fb\u308a\u307e\u3057\u3087\u3046\u3002<br \/>\n\u307e\u305a\u306fWeb\u30b5\u30fc\u30d0\u69cb\u7bc9\u3067\u3059\u3002<\/p>\n<p>\u2605 root\u30e6\u30fc\u30b6\u306b\u306a\u308b<\/p>\n<pre>\n$ sudo su -\n<\/pre>\n<p>\u2605 Apache(httpd)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/p>\n<pre>\n# yum -y install httpd\n<\/pre>\n<p>\u2605 Apache\u3092\u8d77\u52d5\u3055\u305b\u308b<\/p>\n<pre>\n# \/etc\/init.d\/httpd start\n<\/pre>\n<p>\u2605 Apache\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n<pre>\n# ps auxf\n<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3001httpd\u3068\u3044\u3046\u30d7\u30ed\u30bb\u30b9\u304c\u898b\u308c\u308c\u3070OK\u3067\u3059\u3002<br \/>\n<quote><br \/>\napache 2559 0.0 4.0 387556 41740 ? S Mar20 0:01 \/usr\/sbin\/httpd<br \/>\napache 2560 0.0 4.0 387556 40800 ? S Mar20 0:01 \/usr\/sbin\/httpd<br \/>\napache 2561 0.0 4.0 387812 41436 ? S Mar20 0:01 \/usr\/sbin\/httpd<br \/>\napache 2562 0.0 3.7 385460 38704 ? S Mar20 0:01 \/usr\/sbin\/httpd<br \/>\napache 2563 0.0 6.0 415496 61664 ? S Mar20 0:02 \/usr\/sbin\/httpd<br \/>\napache 2564 0.0 4.0 387588 41748 ? S Mar20 0:02 \/usr\/sbin\/httpd<br \/>\napache 2565 0.0 4.7 394964 48584 ? S Mar20 0:02 \/usr\/sbin\/httpd<br \/>\napache 2566 0.0 6.6 421532 67568 ? S Mar20 0:02 \/usr\/sbin\/httpd<br \/>\n<\/quote><br \/>\n\u2605 Apache\u306e\u81ea\u52d5\u8d77\u52d5\u3092\u30aa\u30f3\u306b\u3059\u308b<\/p>\n<pre>\n# chkconfig --level 3 httpd on\n<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b5\u30fc\u30d0\u518d\u8d77\u52d5\u5f8c\u3082Apache\u304c\u81ea\u52d5\u3067\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u203blevel\u306e\u524d\u306f\u30cf\u30a4\u30d5\u30f3(-)\uff12\u3064\u3067\u3059\u3002<\/p>\n<p>\u2605 Apache\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n<pre>\n# chkconfig --list httpd\n<\/pre>\n<p>\u203blist\u306e\u524d\u306f\u30cf\u30a4\u30d5\u30f3(-)\uff12\u3064\u3067\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u300c3:on\u300d\u3068\u306a\u3063\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002<br \/>\n<quote><br \/>\nhttpd 0:off 1:off 2:off <span style=\"color: #ff0000;\">3:on<\/span> 4:off 5:off 6:off<br \/>\n<\/quote><\/p>\n<p>\u2605 <span style=\"text-decoration: underline;\">http:\/\/\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30d1\u30d6\u30ea\u30c3\u30afIP<\/span> \u306b\u30a2\u30af\u30bb\u30b9<\/p>\n<p>Amazon Linux AMI Test Page\u304c\u8868\u793a\u3055\u308c\u308c\u3070OK\u3067\u3059\u3002Web\u30b5\u30fc\u30d0\u69cb\u7bc9\u81ea\u4f53\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\u30da\u30fc\u30b8\u3092\u898b\u3066\u3082\u672c\u5f53\u306bWeb\u30b5\u30fc\u30d0\u304c\u69cb\u7bc9\u3067\u304d\u305f\u306e\u304b\u3001\u3088\u304f\u5206\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3053\u3067\u3001\u5c11\u3057\u5bc4\u308a\u9053\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u81ea\u5206\u3067\u6587\u7ae0\u3092\u66f8\u3044\u3066\u7c21\u5358\u306aWeb\u30da\u30fc\u30b8\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u2605 Web\u30da\u30fc\u30b8\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/p>\n<pre>\n# vi \/var\/www\/html\/test.html\n<\/pre>\n<p>i\u3067\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u5185\u5bb9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre>\n&lt;html&gt;&lt;body&gt;\u3053\u306e\u90e8\u5206\u306f\u81ea\u7531\u306b\u66f8\u3044\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002&lt;\/body&gt;&lt;\/html&gt;\n<\/pre>\n[Esc]\u2192:wq\u2192[Enter]\u3067\u5909\u66f4\u3092\u4fdd\u5b58<\/p>\n<p>\u2605 <span style=\"text-decoration: underline;\">http:\/\/\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30d1\u30d6\u30ea\u30c3\u30afIP\/test.html<\/span> \u306b\u30a2\u30af\u30bb\u30b9<\/p>\n<p>\u3059\u308b\u3068\u3001\u81ea\u5206\u3067\u66f8\u3044\u305f\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3067\u3001Web\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3057\u305f\u5b9f\u611f\u304c\u6e67\u304f\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3067\u306fWeb\u30b5\u30fc\u30d0\u69cb\u7bc9\u306f\u3053\u3053\u307e\u3067\u306b\u3057\u3066\u3001\u3044\u3088\u3044\u3088\u30d6\u30ed\u30b0\u30b5\u30fc\u30d0\u69cb\u7bc9\u306b\u79fb\u308a\u307e\u3057\u3087\u3046\u3002<br \/>\n\u307e\u305a\u306fRDBMS\u306eMySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u2605 MySQL(\u30b5\u30fc\u30d0)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/p>\n<pre># yum -y install mysql-server<\/pre>\n<p>\u2605 MySQL\u3092\u8d77\u52d5\u3055\u305b\u308b<\/p>\n<pre># \/etc\/init.d\/mysqld start<\/pre>\n<p>\u2605 MySQL\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n<pre># ps auxf<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3001mysqld\u3068\u3044\u3046\u30d7\u30ed\u30bb\u30b9\u304c\u898b\u308c\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<pre>root 2278 0.0 0.3 115344 3096 ? S Mar20 0:00 \/bin\/sh \/usr\/libexec\/mysql55\/<span style=\"color: #ff0000;\">mysqld<\/span>_safe --datadir=\/var\/lib\/mysql --socket=\/var\/lib\/mysql\/mysql.sock --\nmysql 2475 0.0 4.9 616012 50260 ? Sl Mar20 0:02 \\_ \/usr\/libexec\/mysql55\/<span style=\"color: #ff0000;\">mysqld<\/span> --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/lib64\/mysql\/p<\/pre>\n<p>\u2605 MySQL\u306e\u81ea\u52d5\u8d77\u52d5\u3092\u30aa\u30f3\u306b\u3059\u308b<\/p>\n<pre># chkconfig --level 3 mysqld on<\/pre>\n<p>\u203blevel\u306e\u524d\u306f\u30cf\u30a4\u30d5\u30f3(-)\uff12\u3064\u3067\u3059\u3002<br \/>\n\u2605 MySQL\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n<pre># chkconfig --list mysqld<\/pre>\n<p>\u203blist\u306e\u524d\u306f\u30cf\u30a4\u30d5\u30f3(-)\uff12\u3064\u3067\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u300c3:on\u300d\u3068\u306a\u3063\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002<br \/>\n<quote><br \/>\nmysqld 0:off 1:off 2:off <span style=\"color: #ff0000;\">3:on<\/span> 4:off 5:off 6:off<br \/>\n<\/quote><br \/>\n\u6b21\u306b\u3001PHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u2605 PHP\u304a\u3088\u3073\u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre># yum -y install php php-mbstring php-gd php-mysql<\/pre>\n<p>php(PHP\u672c\u4f53)\u306b\u52a0\u3048\u3066\u3001\u4e0b\u8a18\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>php-mbstring (PHP\u3067\u65e5\u672c\u8a9e\u3092\u6271\u3046\u305f\u3081\u306b\u5fc5\u8981)<\/li>\n<li>php-gd (\u753b\u50cf\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6271\u3046\u305f\u3081\u306b\u5fc5\u8981)<\/li>\n<li>php-mysql(MySQL\u3068\u306e\u9023\u643a\u306b\u5fc5\u8981)<\/li>\n<\/ul>\n<p>\u2605 Apache\u306e\u518d\u8d77\u52d5<\/p>\n<pre># \/etc\/init.d\/httpd restart<\/pre>\n<p>Apache\u3092\u518d\u8d77\u52d5\u3057\u3066PHP\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>\u2605 PHP\u30c6\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b<\/p>\n<pre># vi \/var\/www\/html\/test.php<\/pre>\n<p>\u4e0b\u8a18\u5185\u5bb9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u4fdd\u5b58\u3059\u308b<\/p>\n<pre>&lt;?php echo phpinfo(); ?&gt;\n<\/pre>\n<p>\u2605 <span style=\"text-decoration: underline;\">http:\/\/\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30d1\u30d6\u30ea\u30c3\u30afIP\/test.php<\/span> \u306b\u30a2\u30af\u30bb\u30b9<\/p>\n<p>PHP Version \uff5e\u306e\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308c\u3070OK\u3067\u3059\u3002PHP\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u3001\u30b5\u30fc\u30d0\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bPHP\u306e\u60c5\u5831\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<strong>\u203b\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\u304c\u8868\u306b\u51fa\u305f\u307e\u307e\u306e\u72b6\u614b\u3067\u3059\u3068\u3001\u30af\u30e9\u30c3\u30ad\u30f3\u30b0\u3084\u30cf\u30c3\u30ad\u30f3\u30b0\u6a19\u7684\u306b\u306a\u308a\u3084\u3059\u3044\u305f\u3081\u3001\u78ba\u8a8d\u5f8c\u306f\u524a\u9664\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/strong><\/p>\n<p>\u2605 MySQL\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b<\/p>\n<pre># mysql -u root<\/pre>\n<p>\u3053\u3053\u304b\u3089\u306fMySQL\u306e\u64cd\u4f5c\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nWordPress\u306e\u305f\u3081\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30fb\u30e6\u30fc\u30b6\u30fc\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u672c\u756a\u74b0\u5883\u3067\u5229\u7528\u3059\u308b\u969b\u306b\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u610f\u8b58\u3057\u305f\u30e6\u30fc\u30b6\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4e0b\u3055\u3044<br \/>\n\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u5229\u7528\u306e\u305f\u3081\u3001\u4e0b\u8a18\u3067\u9032\u3081\u307e\u3059\u3002<\/p>\n<pre>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\uff1a\nwordpressdb\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f7f\u7528\u3059\u308b\u30e6\u30fc\u30b6\uff1a\nwordpressuser\n\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\uff1a\nwordpresspassword<\/pre>\n<p>\u4e0b\u8a18\u64cd\u4f5c\u306f \u5bfe\u8a71\u578b\u306eMySQL\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u2605 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/p>\n<pre>mysql> create database wordpressdb;<\/pre>\n<p>\u2605 \u30e6\u30fc\u30b6\u306e\u4f5c\u6210\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6307\u5b9a<\/p>\n<pre>mysql> grant all privileges on wordpressdb.* to \"wordpressuser\"@\"localhost\" identified by \"wordpresspassword\";<\/pre>\n<p>\u203b\u3053\u306e\u8a18\u4e8b\u306e\u6587\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3068\u300c\"\"\u300d\u304c\u5168\u89d2\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u534a\u89d2\u306b\u76f4\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\n\u2605 MySQL\u4e0a\u306e\u5909\u66f4\u3092\u53cd\u6620\u3059\u308b<\/p>\n<pre>mysql> flush privileges;<\/pre>\n<p>\u2605 MySQL\u304b\u3089\u30ed\u30b0\u30a2\u30a6\u30c8\u3059\u308b<\/p>\n<pre>mysql> exit<\/pre>\n<p>\u2605 WordPress(\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb)\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/p>\n<pre>wget https:\/\/ja.wordpress.org\/wordpress-4.4.2-ja.tar.gz<\/pre>\n<p>\u203b\u672c\u8a18\u4e8b\u57f7\u7b46\u6642\u70b9\u306e\u6700\u65b0\u30d5\u30a1\u30a4\u30eb\u3067\u3059<br \/>\n\u2605 \u5727\u7e2e\u30d5\u30a1\u30a4\u30eb(WordPress)\u3092\u5c55\u958b\u3059\u308b<\/p>\n<pre>tar zxf wordpress-4.4.2-ja.tar.gz<\/pre>\n<p>\u2605 \u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u304c\u5c55\u958b\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n<pre>ls<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5c55\u958b\u3055\u308c\u308c\u3070OK\u3067\u3059\u3002<br \/>\n<quote><br \/>\nwordpress wordpress-4.4.2-ja.tar.gz<br \/>\n<\/quote><\/p>\n<p>wordpress-4.4.2-ja.tar.gz\u304c\u6700\u521d\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u3001\u305d\u308c\u3092\u5c55\u958b\u3057\u305f\u3082\u306e\u304cwordpress\u3067\u3059\u3002<br \/>\n\u6b21\u306f\u3001wordpress\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u914d\u4e0b\u306b\u79fb\u52d5\u3055\u305b\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u2605 wordpress\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8(\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\/var\/www\/html)\u914d\u4e0b\u306b\u79fb\u52d5\u3055\u305b\u308b<\/p>\n<pre># mv wordpress \/var\/www\/html\/wordpress<\/pre>\n<p>\u2605 wordpress\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6240\u6709\u8005\u30fb\u6240\u6709\u30b0\u30eb\u30fc\u30d7\u3092apache\u306b\u5909\u66f4\u3059\u308b<\/p>\n<pre># chown -R apache:apache \/var\/www\/html\/wordpress<\/pre>\n<p>wordpress\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bapache\u30e6\u30fc\u30b6\u304c\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u2605 apache\u6240\u6709\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n<pre># ls -ld \/var\/www\/html\/wordpress<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<div style=\"border: 1px solid #999999; margin: 10px; padding: 10px;\">drwxr-xr-x 5 <span style=\"color: #ff0000;\">apache apache<\/span> 4096 Mar 20 12:45 \/var\/www\/html\/wordpress<\/div>\n<p>\u2605 wordpress\u914d\u4e0b\u306b\u79fb\u52d5\u3059\u308b<\/p>\n<pre># cd \/var\/www\/html\/wordpress\/<\/pre>\n<p>\u2605 wordpress\u914d\u4e0b\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n<pre># ls<\/pre>\n<p>wp-config-sample.php\u3068\u3044\u3046\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u3072\u306a\u5f62\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u540d\u524d\u3092\u5909\u3048\u3066\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3001\u3053\u308c\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<p>\u2605 sample\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u5909\u66f4\u3057\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068\u3059\u308b<\/p>\n<pre># mv wp-config-sample.php wp-config.php<\/pre>\n<p>\u2605 \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b<\/p>\n<pre># vi wp-config.php<\/pre>\n<p>\u7de8\u96c6\u304c\u5fc5\u8981\u306a\u306e\u306f27\u884c\u76ee\u4ee5\u964d\u306e3\u304b\u6240\u3067\u3059\u3002<br \/>\n\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u30fb\u30e6\u30fc\u30b6\u30fc\u540d\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001\u4fdd\u5b58\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\/** WordPress \u306e\u305f\u3081\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d *\/\ndefine('DB_NAME', '<span style=\"color: #ff0000;\">wordpressdb<\/span>');\/** MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u540d *\/\ndefine('DB_USER', '<span style=\"color: #ff0000;\">wordpressuser<\/span>');\n\n\/** MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9 *\/\ndefine('DB_PASSWORD', '<span style=\"color: #ff0000;\">wordpresspassword<\/span>');\n\n<\/pre>\n<p>\u2605 <span style=\"text-decoration: underline;\">http:\/\/\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30d1\u30d6\u30ea\u30c3\u30afIP\/wordpress\/wp-admin\/install.php<\/span> \u3078\u30a2\u30af\u30bb\u30b9<\/p>\n<p>\u3059\u308b\u3068WordPress\u521d\u671f\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u3042\u3068\u306f\u753b\u9762\u306e\u6307\u793a\u306b\u5f93\u3044\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u7d9a\u884c\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\n\u203b\u3053\u3061\u3089\u3067\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u308b\u30e6\u30fc\u30b6\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u3001\u65b0\u898f\u8a2d\u5b9a\u3059\u308b\u3082\u306e\u3067\u3059\u3001\u5148\u307b\u3069\u8a2d\u5b9a\u3057\u305fwordpressuser\u3084wordpresspassword\u3067\u3042\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u2605 <span style=\"text-decoration: underline;\">http:\/\/\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30d1\u30d6\u30ea\u30c3\u30afIP\/wordpress<\/span> \u3078\u30a2\u30af\u30bb\u30b9<\/p>\n<p>\u7ba1\u7406\u753b\u9762\u3067\u306a\u3044\u3001WordPress\u306e\u30d6\u30ed\u30b0\u30da\u30fc\u30b8\u306b\u98db\u3073\u307e\u3059\u3002<\/p>\n<p>\u30d6\u30ed\u30b0\u30b5\u30fc\u30d0\u69cb\u7bc9\u306f\u4ee5\u4e0a\u3067\u3059\u3002<br \/>\n\u5f8c\u306f\u304a\u597d\u304d\u306a\u8a18\u4e8b\u3092\u6295\u7a3f\u3057\u3066\u307f\u308b\u306a\u308a\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u69cb\u7bc9\u304c\u3067\u304d\u305f\u6642\u3001\u79c1\u306f\u3068\u3066\u3082\u5b09\u3057\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u8aad\u8005\u306e\u65b9\u306b\u3082\u305d\u3093\u306a\u6c17\u6301\u3061\u3092\u5473\u308f\u3063\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3001\u3053\u308c\u307e\u305f\u5b09\u3057\u3044\u3067\u3059\u3002<br \/>\n\u3067\u306f\u4eca\u56de\u306f\u3053\u308c\u306b\u3066\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u4f50\u85e4\u99ff\u3067\u3059\u3002 \u4eca\u56de\u306fAWS\u306eEC2\u3067\u30b5\u30fc\u30d0(\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9)\u3092\u8d77\u52d5\u3055\u305b\u3001Wordpress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u5b9f\u8df5\u3055\u308c\u308b\u65b9\u306f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u9759\u7684\u306aIP\u30a2\u30c9\u30ec\u30b9\u306e\u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308bEIP\u3092\u4ed8\u4e0e\u3057\u3066\u304a\u304f\u3053&#8230;<\/p>\n","protected":false},"author":60,"featured_media":967,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"6000","footnotes":""},"categories":[90,29,24],"tags":[],"class_list":{"0":"post-6000","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-apache","8":"category-linux","9":"category-mysql","10":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/6000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=6000"}],"version-history":[{"count":12,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/6000\/revisions"}],"predecessor-version":[{"id":6265,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/6000\/revisions\/6265"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/967"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=6000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=6000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=6000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}