{"id":689,"date":"2014-05-25T15:06:23","date_gmt":"2014-05-25T06:06:23","guid":{"rendered":"http:\/\/iphone-users.ddo.jp\/wordpress\/?p=689"},"modified":"2014-05-25T15:06:23","modified_gmt":"2014-05-25T06:06:23","slug":"ubuntu12-04%e3%81%abwordpress%e3%81%ae%e5%b0%8e%e5%85%a5%e6%89%8b%e9%a0%86","status":"publish","type":"post","link":"https:\/\/iphone-users.ddo.jp\/wordpress\/?p=689","title":{"rendered":"ubuntu12.04\u306bwordpress\u306e\u5c0e\u5165\u624b\u9806"},"content":{"rendered":"<p>\n\t\uff11\uff0eApache2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2460apache2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;apt-get install apache2<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2461mode_rewrite\u3092\u6709\u52b9\u5316<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;a2enmod rewrite<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2462.htaccess\u3092\u6709\u52b9\u5316<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\/etc\/apache2\/sites-available\/default \u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u4fee\u6b63\u3059\u308b\u3002<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;Directory \/var\/www\/&gt;<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\u30fb\u30fb<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; AllowOverride All<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\u30fb\u30fb<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;\/Directory&gt;<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2463apache2\u306e\u518d\u8d77\u52d5<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;service apache2 restart\n<\/p>\n<p>\n\t\uff12\uff0eMySQL Server\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2460MySQL Server\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;apt-get install mysql-server<br \/>\n\t&nbsp;&nbsp; &nbsp; \u203b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306bM\uff59SQL\u306e\u7ba1\u7406\u8005\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u304c\u3001\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u30e1\u30e2\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\t&nbsp;&nbsp; &nbsp; \u3053\u306e\u8aac\u660e\u306e\u4e2d\u3067\u306fMySQL\u306e\u7ba1\u7406\u8005\u30d1\u30b9\u30ef\u30fc\u30c9\u3092&quot;sqlpasswd&quot;\u3068\u3057\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2461\u6587\u5b57\u30b3\u30fc\u30c9\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\/etc\/mysql\/my.conf\u3092\u7de8\u96c6<br \/>\n\t&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;# \u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0<br \/>\n\t&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; [mysqld]<br \/>\n\t&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; character-set-server=utf8<br \/>\n\t&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; skip-character-set-client-handshake<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2462MySQL\u306e\u518d\u8d77\u52d5<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; \/etc\/init.d\/mysql restart<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2463MySQL\u306e\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;(1)MySQL\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\uff08sqlpasswd)\u3092\u5165\u308c\u3066\u308b\u3068\u30d7\u30ed\u30f3\u30d7\u304cmysql&gt;\u306b\u5909\u308f\u308a\u307e\u3059\u3002<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;mysql -u root -D mysql -p<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2464\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp; \u203bmysql&gt;\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;DELETE FROM mysql.user WHERE user = &quot;&quot; OR host = &quot;::1&quot;;\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp; wordpress\u7528\u306e\u30c7\u30fc\u30bf\u30fc\u30d9\u30fc\u30b9\u4f5c\u6210\u3068\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp; \u30c6\u30fc\u30d6\u30eb\u306e\u4f5c\u6210<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; CREATE DATABASE wp;<br \/>\n\t&nbsp;&nbsp; &nbsp; \u30a2\u30af\u30bb\u30b9\u6a29\u306e\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; GRANT ALL PRIVILEGES ON wp.* TO &quot;wpadmin&quot;@&quot;localhost&quot; IDENTIFIED BY &quot;sqlpasswd&quot;;<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; exit\u3068\u30ad\u30fc\u30a4\u30f3\u3057\u3066MySQL\u3092\u7d42\u4e86\u3059\u308b\u3002\n<\/p>\n<p>\n\t\uff13\uff0ephp\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2460php\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;apt-get install php5\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp;\u2461\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;# MySQL\u9023\u643a\u306e\u305f\u3081\u306b\u5fc5\u8981<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;apt-get install php5-mysql\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;# cURL\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;# Facebook PHP SDK\u306e\u305f\u3081\u306b\u5fc5\u8981<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;apt-get install php5-curl<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2462\u7ba1\u7406\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30ebPHPMyAdmin<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;apt-get install phpmyadmin\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp; web\u30b5\u30fc\u30d0\u306e\u9078\u629e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001apache2\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n\t&nbsp;&nbsp; &nbsp; dbconfig-common\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u304b\uff1f\u3068\u805e\u304b\u308c\u308b\u3002\u306f\u3044\u3092\u9078\u629e\u3057\u3001SQL\u30b5\u30fc\u30d0\u30fc\u306eroot\u306e\u306f\u30b9\u30ef\u30fc\u30c9\uff08sqlpasswd\uff09\u3092\u5165\u308c\u308b\u3002&nbsp;&nbsp;&nbsp;<br \/>\n\t&nbsp;&nbsp; &nbsp;\u2462\u7ba1\u7406\u30c4\u30fc\u30eb\u306e\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp; \u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001PHPMyAdmin\u3068Apache2\u3092\u9023\u643a\u3092\u3057\u307e\u3059\u3002<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;ln -s \/etc\/phpmyadmin\/apache.conf \/etc\/apache2\/conf.d\/phpmyadmin\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp; apache\u306e\u518d\u8d77\u52d5<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;service apache2 restart\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp;http:\/\/localhost\/phpmyadmin \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u7ba1\u7406\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\n<\/p>\n<p>\n\t\u3000\u3000\u3000\u3000\u30e6\u30fc\u30b6\u30fc\u540d\u306froot\u30d1\u30b9\u30ef\u30fc\u30c9\u306fsqlpasswd\n<\/p>\n<p>\n\t\uff14\uff0ewordpress\u306e\u8a2d\u7f6e<br \/>\n\t&nbsp;&nbsp; &nbsp;wordpress\u306e\u30b5\u30a4\u30c8\u304b\u3089\u6700\u65b0\u7248\u306ewordpress\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u6e96\u5099\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp;\u2460wordpress\u306e\u914d\u7f6e\u3068\u30a2\u30af\u30bb\u30b9\u6a29\u30fb\u6240\u6709\u6a29\u306e\u8a2d\u5b9a<br \/>\n\t&nbsp;&nbsp; &nbsp; \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u7269\u3092\u5c55\u958b\u3059\u308b\u3068wordpress\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n\t&nbsp;&nbsp; &nbsp; \/var\/www\/\u306b\u30d5\u30a9\u30eb\u30c0\u3054\u3068\u30b3\u30d4\u30fc\u3059\u308b\u304bwardpress\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u8eab\u3092\u5168\u3066\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<\/p>\n<p>\n\t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; chown -R www-data \/var\/www \uff08\u6240\u6709\u8005\u3092\u5909\u66f4\uff09<br \/>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;chown -R www-data:www-data \/var\/www \uff08\u30b0\u30eb\u30fc\u30d7\u3092\u5909\u66f4\uff09\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp;\u2461\u5c55\u958b\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b\u3001wp-config.php\u306e\u30b5\u30f3\u30d7\u30ebwp-config-sample.php\u3068\u3044\u3046\u306e\u304c\u3042\u308b\u306e\u3067\u3001<br \/>\n\t&nbsp;&nbsp; &nbsp; \u305d\u308c\u3092wp-config.php\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002cp wp-config-sample.php wp-config.php\n<\/p>\n<p>\n\t&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;wp-config.php\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<br \/>\n\t1&nbsp;&nbsp; &nbsp;\/** WordPress \u306e\u305f\u3081\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d *\/<br \/>\n\t2&nbsp;&nbsp; &nbsp;define(&#39;DB_NAME&#39;, &#39;database_name_here&#39;);<br \/>\n\t3&nbsp;&nbsp; &nbsp;<br \/>\n\t4&nbsp;&nbsp; &nbsp;\/** MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u540d *\/<br \/>\n\t5&nbsp;&nbsp; &nbsp;define(&#39;DB_USER&#39;, &#39;username_here&#39;);<br \/>\n\t6&nbsp;&nbsp; &nbsp;<br \/>\n\t7&nbsp;&nbsp; &nbsp;\/** MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9 *\/<br \/>\n\t8&nbsp;&nbsp; &nbsp;define(&#39;DB_PASSWORD&#39;, &#39;password_here&#39;);\n<\/p>\n<p>\n\t\u3053\u308c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3002\n<\/p>\n<p>\n\t\/** WordPress \u306e\u305f\u3081\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d *\/<br \/>\n\tdefine(&#39;DB_NAME&#39;, &#39;wp&#39;);<br \/>\n\t\/** MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u540d *\/<br \/>\n\tdefine(&#39;DB_USER&#39;, &#39;wpadmin&#39;);<br \/>\n\t\/** MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9 *\/<br \/>\n\tdefine(&#39;DB_PASSWORD&#39;, &#39;sqlpasswd&#39;);\n<\/p>\n<p>\n\twp-config.php\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u30920400\u306b\u5909\u66f4\u3059\u308b\u3002\n<\/p>\n<p>\n\t\u3053\u306e\u90e8\u5206\u306fWordpress\u306e\u30b5\u30a4\u30c8\u5185\u306b\u3042\u308b\u300c\u30aa\u30f3\u30e9\u30a4\u30f3\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc\u300d\u3067\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\t\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3060\u3051\u3067\u5fc5\u8981\u306a\u90e8\u5206\u3092\u4f5c\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u4e0a\u8a18\u306e\u90e8\u5206\u306b\u4e0a\u66f8\u304d\u3059\u308c\u3070OK\u3002\n<\/p>\n<p>\n\t&nbsp;&nbsp;&nbsp; \u2462\u30d6\u30e9\u30a6\u30b6\u3067wordpress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308c\u3070\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u59cb\u307e\u308a\u307e\u3059\u304cWordPress\u306e\u5834\u5408\n<\/p>\n<p>\n\t\u3000\u3000\u3000\u30db\u30b9\u30c8\u90e8\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u66f8\u304d\u8fbc\u307e\u308c\u308b\u306e\u3067hosts\u30d5\u30a1\u30a4\u30eb\u7b49\u3067hosts\u3092\u8a2d\u5b9a\u3057\u305f\u5f8c\u306b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044\u3002&nbsp;\n<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t\t&nbsp;\n\t<\/p>\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uff11\uff0eApache2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a &nbsp;&nbsp; &nbsp;\u2460apache2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;apt-get install a &#8230;<\/p>\n<p><a href=\"https:\/\/iphone-users.ddo.jp\/wordpress\/?p=689\" class=\"more-link\">Continue reading &lsquo;ubuntu12.04\u306bwordpress\u306e\u5c0e\u5165\u624b\u9806&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-689","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=689"}],"version-history":[{"count":2,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/689\/revisions"}],"predecessor-version":[{"id":691,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/689\/revisions\/691"}],"wp:attachment":[{"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iphone-users.ddo.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}