{"id":2788,"date":"2013-09-11T03:20:19","date_gmt":"2013-09-10T18:20:19","guid":{"rendered":"http:\/\/www.frontier-line.org\/lognote\/?p=2788"},"modified":"2013-09-11T10:48:31","modified_gmt":"2013-09-11T01:48:31","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97%e4%bd%9c%e6%a5%ad%ef%bc%88%ef%bc%96%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.frontier-line.org\/lognote\/?p=2788","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u5f15\u3063\u8d8a\u3057\u4f5c\u696d\uff08\uff16\uff09"},"content":{"rendered":"<p>\u3000PHPmyadmin\u3092\u5165\u308c\u307e\u3059\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5148\u7acb\u3063\u3066\u3001mcrypt\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<p>cd \/usr\/ports\/security\/php5-mcrypt<br \/>\nmake install<\/p>\n<p>\u3000php\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb \/usr\/local\/lib\/php\/php.ini\u3092\u5909\u66f4\u3002<\/p>\n<p>session.save_path = &#8220;\/tmp&#8221;<br \/>\nmcrypt.algorithms_dir=&#8221;\/usr\/local\/lib\/libmcrypt&#8221;<br \/>\nmcrypt.modes_dir=&#8221;\/usr\/local\/lib\/libmcrypt&#8221;<\/p>\n<p>\u3000php\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002.\/configure\u3067mcrypt\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<br \/>\n.\/configure &#8211;with-apxs2=\/usr\/local\/apache2\/bin\/apxs &#8211;with-mysql=mysqlnd  &#8211;with-mysqli=mysqlnd &#8211;with-pdo-mysql &#8211;enable-mbstring  &#8211;enable-mbregex &#8211;with-libmbfl &#8211;enable-pcntl &#8211;with-zlib -with-openssl &#8211;with-gd &#8211;with-freetype-dir=\/usr\/local &#8211;with-curl=\/usr\/local &#8211;with-mcrypt=\/usr\/local<br \/>\nmake install<\/p>\n<p>\u3044\u3088\u3044\u3088PHPmyadmin\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002<br \/>phpMyAdmin-4.0.6-all-languages.zip\u3092\u5165\u624b\u3001 \/home\/WWW\u306b\u7f6e\u304f\u3002<br \/>\nsu webadmin<br \/>\ncd \/home\/WWW<br \/>\nunzip phpMyAdmin-4.0.6-all-languages.zip<br \/>\nmv  phpMyAdmin-4.0.6-all-languages phpMyAdmin<\/p>\n<p>\u3000\u3053\u306e\u4f8b\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092phpMyAdmin\u306b\u3057\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306b\u306f\u5225\u306e\u540d\u524d\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u5916\u90e8\u306b\u898b\u305b\u308b\u610f\u5473\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3002<br \/>\n\u3000\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p>cd \/home\/WWW\/phpMyAdmin<br \/>\ncp config.sample.inc.php conrig.inc.php<\/p>\n<p>\u3000\u6700\u521d\u306b\u5909\u66f4\u3059\u308b\u306e\u306f\u3001<br \/>\n$cfg[&#8216;blowfish_secret&#8217;] = &#8216;******&#8217;                           \u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306f\u9069\u5f53\u306b\u6c7a\u3081\u305f\u3002<br \/>\n$cfg[&#8216;DefaultLang&#8217;] = &#8216;ja-utf-8&#8217;; \u2190\u8ffd\u52a0(\u30c7\u30d5\u30a9\u30eb\u30c8\u8a00\u8a9e)<br \/>\n$cfg[&#8216;Lang&#8217;] = &#8216;ja-utf-8&#8217;; \u2190\u8ffd\u52a0(\u8a00\u8a9e)<br \/>\n$cfg[&#8216;DefaultCharset&#8217;] = &#8216;utf-8&#8217;; <\/p>\n<p>$cfg[&#8216;PropertiesIconic&#8217;]      = TRUE;     TRUE\u53c8\u306fboth\u306b\u3059\u308b\u3002<\/p>\n<p>\u3067\u3059\u3002\u3053\u308c\u304c\u3067\u304d\u305f\u3089\u3001http:\/\/mydomain\/phpMyAdmin\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3001MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u8a2d\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<br \/>\n\u3000\u307e\u305a\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u306a\u3044\u30e6\u30fc\u30b6\u3068\u30e6\u30fc\u30b6\u30fc\u540d\u304c\u7a7a\u6b04\u306e\u533f\u540d\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3002<br \/>\n\u3000\u9ad8\u5ea6\u306a\u6a5f\u80fd\u306e\u8a2d\u5b9a\u3092\u3057\u308d\u3068\u3044\u3063\u3066\u304f\u308b\u306e\u3067\u3001examples\/create_tables.sql\u3092\u30d1\u30bd\u30b3\u30f3\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002crreate_tables.sql\u3092phpMyAdmin\u306e\u753b\u9762\u304b\u3089\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<br \/>\n\u3000\u4e00\u65e6\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3001conrig.inc.php\u3092\u7de8\u96c6\u3002<\/p>\n<p>\/* Storage database and tables *\/                \u9ad8\u5ea6\u306a\u8a2d\u5b9a\u306e\u305f\u3081\u3002<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;pmadb&#8217;] = &#8216;phpmyadmin&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;bookmarktable&#8217;] = &#8216;pma__bookmark&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;relation&#8217;] = &#8216;pma__relation&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;table_info&#8217;] = &#8216;pma__table_info&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;table_coords&#8217;] = &#8216;pma__table_coords&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;pdf_pages&#8217;] = &#8216;pma__pdf_pages&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;column_info&#8217;] = &#8216;pma__column_info&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;history&#8217;] = &#8216;pma__history&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;table_uiprefs&#8217;] = &#8216;pma__table_uiprefs&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;tracking&#8217;] = &#8216;pma__tracking&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;designer_coords&#8217;] = &#8216;pma__designer_coords&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;userconfig&#8217;] = &#8216;pma__userconfig&#8217;;<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;recent&#8217;] = &#8216;pma__recent&#8217;;<br \/>\n\/* Contrib \/ Swekey authentication *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;auth_swekey_config&#8217;] = &#8216;\/etc\/swekey-pma.conf&#8217;;<\/p>\n<p>\u3000\u7de8\u96c6\u3057\u305f\u3089\u4fdd\u5b58\u3057\u3066\u518d\u3073\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001\u8a2d\u5b9a\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3000Safari5.1.9\u3068phpMyAdmin-4.0.6\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u306f\u3001\u30a2\u30a4\u30b3\u30f3\u3084\u30ed\u30b4\u304c\u5168\u304f\u51fa\u307e\u305b\u3093\u3002Safari\u306e\u958b\u767a\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3055\u305b\u3066\u30a8\u30e9\u30fc\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001<br \/>\nrefuse to load image&#8230;&#8230;because of Content-Security-Policy<br \/>\n\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3067\u3001\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u304c\u62d2\u5426\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3000libraries\/Header.class.php\u3092\u958b\u304d\u3001public function sendHttpHeaders()\u3000\u306e\u4e2d\u3092\u3001<\/p>\n<pre><code>\n                header(\n                    \"X-WebKit-CSP: allow 'self' \"\n                    . $GLOBALS['cfg']['CSPAllow'] . ';'\n                    . \"options inline-script eval-script;\"\n\/\/                    . \"img-src 'self' data: \"\n\/\/                    . $GLOBALS['cfg']['CSPAllow']\n\/\/                    . ($https ? \"\" : $mapTilesUrls)\n\/\/                    . \";\"\n<\/code><\/pre>\n<p>\u306e\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u3001safari\u3067\u30a2\u30a4\u30b3\u30f3\u304c\u51fa\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000PHPmyadmin\u3092\u5165\u308c\u307e\u3059\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5148\u7acb\u3063\u3066\u3001mcrypt\u3092\u5165\u308c\u307e\u3059\u3002 cd \/usr\/ports\/security\/php5-mcrypt make install \u3000php\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb \/usr\/lo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2788","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/posts\/2788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2788"}],"version-history":[{"count":0,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=\/wp\/v2\/posts\/2788\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.frontier-line.org\/lognote\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}