{"id":9493,"date":"2016-01-27T19:20:43","date_gmt":"2016-01-27T10:20:43","guid":{"rendered":"http:\/\/www.itblog.jp\/?p=9493"},"modified":"2016-01-27T19:20:43","modified_gmt":"2016-01-27T10:20:43","slug":"mac%e3%81%aeos%e3%82%a2%e3%83%83%e3%83%97%e3%83%87%e3%83%bc%e3%83%88%e5%be%8c%e3%81%abphp%e3%81%a7%e4%b8%8d%e5%85%b7%e5%90%88%e3%81%8c%e8%b5%b7%e3%81%93%e3%82%8b%e5%a0%b4%e5%90%88%e3%81%ae%e5%af%be","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9493","title":{"rendered":"Mac\u306eOS\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5f8c\u306bphp\u3067\u4e0d\u5177\u5408\u304c\u8d77\u3053\u308b\u5834\u5408\u306e\u5bfe\u51e6\u6cd5"},"content":{"rendered":"<p>Mac\u306eOS\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3046\u3068\u3001\u81ea\u8eab\u306eMac\u4e0a\u306b\u69cb\u7bc9\u3057\u3066\u3044\u305f\u30b5\u30fc\u30d0\u74b0\u5883\u304c\u52d5\u304b\u306a\u304f\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u5bfe\u51e6\u6cd5\u306e\u30e1\u30e2\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u79c1\u306e\u30b1\u30fc\u30b9\u3067\u3044\u3046\u3068\u3001\u4e0d\u5177\u5408\u304c\u8d77\u304d\u305f\u306e\u304c\u3001PHP+MySQL\u306e\u30b5\u30a4\u30c8\u3067\u3059\u3002<br \/>\n(EC-CUBE\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9)<\/p>\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u524d\u306f\u52d5\u3044\u3066\u3044\u305f\u306e\u304c\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5f8c\u306b\u306f\u753b\u9762\u304c\u771f\u3063\u767d\u306b\u306a\u308b\u306a\u3069\u306e\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u79c1\u306e\u5834\u5408\u3001EC-CUBE\u3067\u306e\u30a8\u30e9\u30fc\u3060\u3063\u305f\u306e\u3067\u3001EC-CUBE\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d<\/p>\n<p>\/data\/logs\/error.log<\/p>\n<p>\u78ba\u8a8d\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>Fatal error(E_USER_ERROR): DB\u51e6\u7406\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\nSQL: [SET SESSION storage_engine = InnoDB]<br \/>\nPlaceHolder: [array (<br \/>\n)]<br \/>\nMDB2 Error: connect failed<br \/>\n_doConnect: [Error message: No such file or directory]<br \/>\n[Native code: 2002]<br \/>\n[Native message: No such file or directory]<\/p>\n<p>\u8981\u306f\u3001DB\u63a5\u7d9a\u306b\u95a2\u3059\u308b\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u3001\u30cd\u30c3\u30c8\u3067\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8\u3068\u3057\u3066\u306f\u3001<\/p>\n<p>MAC\u306f\u3001OS\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6642\u306b\u5404\u7a2e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u521d\u671f\u5316\u3059\u308b\u304c\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u3068\u3063\u3066\u3044\u308b<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u5177\u4f53\u7684\u306b\u306f\u3001\u4eca\u56de\u306e\u30b1\u30fc\u30b9\u3067\u3044\u3048\u3070<\/p>\n<p>Apache\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\u300chttpd.conf\u300d\u300cphp.php\u300d\u3092\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u6bd4\u8f03\u3057\u307e\u3059\u3002<\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u3001\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u5dee\u5206\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>httpd.conf\u306e\u5834\u5408<\/p>\n<p>diff \/etc\/apache2\/httpd.conf \/etc\/apache2\/httpd.conf.pre-update<\/p>\n<p>\u5dee\u5206\u306e\u90e8\u5206\u3092\u3001httpd.conf\u306b\u8ffd\u52a0\u3057\u3066\u3084\u308a\u307e\u3059\u3002<\/p>\n<p>php.ini\u306e\u5834\u5408<\/p>\n<p>php.ini\u306f\u3001\u307e\u305a\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b\u3068\u305d\u3082\u305d\u3082php.ini\u304c\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4f5c\u6210\u304b\u3089\u5165\u308a\u307e\u3059\u3002<\/p>\n<p>cp \/etc\/php.ini.default \/etc\/php.ini<\/p>\n<p>\u3053\u308c\u3067php.ini\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u3042\u3068\u306f\u5dee\u5206\u3092\u6bd4\u8f03\u3057\u307e\u3059\u3002<\/p>\n<p>diff \/etc\/php.ini \/etc\/php.ini-\u25ef.\u25ef-previous<\/p>\n<p>\u5dee\u5206\u3092php.ini\u306b\u9069\u7528\u3057\u3066\u3084\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u8a2d\u5b9a\u304c\u540c\u3058\u306b\u306a\u308b\u306e\u3067\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u524d\u52d5\u3044\u3066\u3044\u305f\u306e\u3067\u3042\u308c\u3070\u52d5\u304f\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u9069\u7528\u3057\u305f\u5f8c\u3001<\/p>\n<p>sudo apachectl restart<\/p>\n<p>\u3067apache\u3092\u518d\u8d77\u52d5\u3059\u308b\u3068OK\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac\u306eOS\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3046\u3068\u3001\u81ea\u8eab\u306eMac\u4e0a\u306b\u69cb\u7bc9\u3057\u3066\u3044\u305f\u30b5\u30fc\u30d0\u74b0\u5883\u304c\u52d5\u304b\u306a\u304f\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u5bfe\u51e6\u6cd5\u306e\u30e1\u30e2\u3067\u3059\u3002 \u307e\u305a\u3001\u79c1\u306e\u30b1\u30fc\u30b9\u3067\u3044\u3046\u3068\u3001\u4e0d\u5177\u5408\u304c\u8d77\u304d\u305f\u306e\u304c\u3001PHP+MySQL\u306e\u30b5\u30a4\u30c8\u3067\u3059\u3002 (EC-CU [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[],"class_list":["post-9493","post","type-post","status-publish","format-standard","hentry","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9493"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9493\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}