{"id":1328,"date":"2017-04-26T10:39:00","date_gmt":"2017-04-26T01:39:00","guid":{"rendered":"https:\/\/blog.fourthgate.jp\/?p=1328"},"modified":"2017-04-28T10:28:48","modified_gmt":"2017-04-28T01:28:48","slug":"macos-sierra-server%e3%81%aephp-%e3%80%9c-%e3%81%9d%e3%81%ae%ef%bc%92","status":"publish","type":"post","link":"https:\/\/blog.fourthgate.jp\/?p=1328","title":{"rendered":"macOS Sierra Server\u306ePHP \u301c \u305d\u306e\uff12"},"content":{"rendered":"<p>\u5148\u65e5\u3001macOS Sierra\u306eServer.app\u3067PHP7\u3092\u4f7f\u3046\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u5f8c\u3061\u3087\u3063\u3068\u554f\u984c\u304c\u51fa\u307e\u3057\u305f\u3002<br \/>\nWeb\u306e\u8a2d\u5b9a\u3092\u5909\u3048\u308b\u3068\u3001\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>Server.app\u306eapache\u306f\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u30fc\u3067\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001Web\u306e\u8a2d\u5b9a\u3092\u7de8\u96c6\u3059\u308b\u3068\u3001\u3053\u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u30fc\u306e\u3068\u3053\u308d\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u306a\u3093\u3060\u304b\u3093\u3060\u3067\u8a66\u884c\u932f\u8aa4\u3057\u305f\u7d50\u679c\u3001<\/p>\n<p><code>\/Library\/Server\/Web\/Config\/apache2\/httpd.conf<\/code><\/p>\n<p>\u3092\u76f4\u63a5\u7de8\u96c6\u305b\u305a\u306b\u3001<\/p>\n<p><code>\/Library\/Server\/Web\/Config\/apache2\/other\/<\/code><\/p>\n<p>\u306b\u3001PHP7\u7528\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u30fc\u306e\u30a8\u30e9\u30fc\u306f\u56de\u907f\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u50d5\u306f\u3001\u3053\u3053\u306bphp7.conf\u3068\u3057\u3066\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Server.app\u306e\uff3bWeb\u30b5\u30a4\u30c8\uff3d\u3067\u306f\u3001\u3010PHP\u3092\u6709\u52b9\u306b\u3059\u308b\u3011\u306e\u30c1\u30a7\u30c3\u30af\u306f\u5916\u3057\u3066\u304a\u304d\u307e\u3059\u3002\uff08\u3053\u308c\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068\u3001PHP5\u304c\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\uff09<\/p>\n<p>php7.conf\u306b\u306f\u3001<\/p>\n<p><code>LoadModule php7_module \/usr\/local\/Cellar\/php71\/7.1.2_13\/libexec\/apache2\/libphp7.so<br \/>\n&lt;IfModule php7_module&gt;<br \/>\n    AddType application\/x-httpd-php .php<br \/>\n    AddType application\/x-httpd-php-source .phps<br \/>\n    &lt;IfModule dir_module&gt;<br \/>\n        DirectoryIndex index.html index.php<br \/>\n    &lt;\/IfModule&gt;<br \/>\n&lt;\/IfModule&gt;<\/code><\/p>\n<p>\u306e\u3088\u3046\u306b\u3001httpd.conf\u306b\u3042\u308bphp5\u306e\u8a18\u8ff0\u3092\u30b3\u30d4\u30fc\u3057\u3066\u4f7f\u3044\u307e\u3057\u305f\u3002<br \/>\nlibphp7.so\u306e\u30d1\u30b9\u306b\u3064\u3044\u3066\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3042\u308f\u305b\u308b\u306e\u306f\u8a00\u3046\u307e\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u52d5\u3044\u3066\u3044\u308b\u3068\u3044\u3046\u72b6\u614b\u3067\u3059\u306e\u3067\u3001\u3053\u308c\u3092\u5916\u90e8\u306b\u516c\u958b\u3059\u308b\u306b\u306f\u4e00\u62b9\u306e\u4e0d\u5b89\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u306e\u30c6\u30b9\u30c8\u306b\u4f7f\u7528\u306b\u9650\u3063\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u3088\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u3001macOS Sierra\u306eServer.app\u3067PHP7\u3092\u4f7f\u3046\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u5f8c\u3061\u3087\u3063\u3068\u554f\u984c\u304c\u51fa\u307e\u3057\u305f\u3002 Web\u306e\u8a2d\u5b9a\u3092\u5909\u3048\u308b\u3068\u3001\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002 Server.app\u306eapache\u306f\u3001\u30ea\u30d0\u30fc\u30b9 &hellip; <a href=\"https:\/\/blog.fourthgate.jp\/?p=1328\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1328","post","type-post","status-publish","format-standard","hentry","category-4"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts\/1328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1328"}],"version-history":[{"count":6,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts\/1328\/revisions"}],"predecessor-version":[{"id":1335,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts\/1328\/revisions\/1335"}],"wp:attachment":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}