{"id":863,"date":"2017-10-10T22:43:02","date_gmt":"2017-10-10T13:43:02","guid":{"rendered":"http:\/\/chiekoubou.orz.hm\/kataware\/?p=863"},"modified":"2017-10-10T14:07:03","modified_gmt":"2017-10-10T05:07:03","slug":"php5%e3%81%a8php7%e3%82%92%e5%90%8c%e5%b1%85%e3%81%95%e3%81%9b%e3%81%9f%e4%b8%8a%e3%81%a7%e3%83%9b%e3%82%b9%e3%83%88%e5%90%8d%e3%81%a7%e4%bd%bf%e3%81%84%e5%88%86%e3%81%91%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.chiekoubou.com\/?p=863","title":{"rendered":"php5\u3068php7\u3092\u540c\u5c45\u3055\u305b\u305f\u4e0a\u3067\u30db\u30b9\u30c8\u540d\u3067\u4f7f\u3044\u5206\u3051\u308b"},"content":{"rendered":"<p>\u3069\u30fc\u305b\u4eca\u304b\u3089\u65b0\u3057\u3044\u3053\u3068\u3092\u3084\u308b\u306a\u3089 php7\u3092\u4f7f\u3044\u305f\u3044\u3088\u306d<br \/>\n\u3067\u3082\u3001\u4eca\u307e\u3067\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306fphp5\u3067\u52d5\u304b\u3057\u7d9a\u3051\u306a\u304f\u3061\u3083\u3044\u3051\u306a\u3044\u3093\u3060\u3002<br \/>\n\u3069\u3046\u3057\u3088\u3046\uff01\u52a9\u3051\u3066\u30b0\u30b0\u3048\u3082\u30fc\u3093!!!<\/p>\n<p>\u52a9\u3051\u3092\u6c42\u3081\u3066\u3082 php5\u30687\u3092\u540c\u3058\u74b0\u5883\u3067\u52d5\u304b\u3059\u3068\u3044\u3046\u4e8b\u4f8b\u306f\u898b\u3064\u304b\u3089\u305a<br \/>\n\u898b\u3064\u304b\u3063\u305f\u306e\u306f4\u30685\u3092\u540c\u3058\u74b0\u5883\u3067\u52d5\u304b\u3059\u3068\u304b 4.4\u30685.2\u30685.3\u3092\u540c\u6642\u306b\u52d5\u304b\u3059\u3068\u304b\u3044\u3046\u8a18\u4e8b\u306e\u307f\u3002<\/p>\n<p>\u305d\u306e\u3042\u305f\u308a\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u9811\u5f35\u3063\u3066\u307f\u308b\u3002<br \/>\n\u307c\u304f\u3060\u3051\u306e\u529b\u3067\u3001\u554f\u984c\u3092\u89e3\u6c7a\u3067\u304d\u306a\u3044\u3068\u3001\u30b0\u30b0\u3048\u3082\u3093\u304c\u5b89\u5fc3\u3057\u3066\u5e30\u308c\u306a\u3044\u3093\u3060\uff01<\/p>\n<p>\uff1d\uff1d\uff1d\u3000\u73fe\u5728\u306e\u72b6\u6cc1\u3000\uff1d\uff1d\uff1d<\/p>\n<p>\u304b\u306a\u308a\u6614\u306bxampp\u3092\u5c0e\u5165\u3057\u305f<br \/>\nApache2.4.17 \u5c0e\u5165\u6e08\u307f<br \/>\nphp5.6.23 \u5c0e\u5165\u6e08\u307f<br \/>\n\u30d6\u30e9\u30a6\u30b6\u304b\u3089localhost\u3067phpinfo()\u3068\u304b\u898b\u308c\u308b<\/p>\n<p>\uff1d\uff1d\uff1d\u3000\u4eca\u65e5\u306e\u76ee\u6a19\u3000\uff1d\uff1d\uff1d<br \/>\n\u540c\u3058PC\u4e0a\u3067\u57fa\u672c\u7684\u306b\u306fphp5\u3067\u52d5\u304f\u3051\u3069<br \/>\n\u7279\u5b9a\u306e\u30db\u30b9\u30c8\u540d\u306e\u5834\u5408\u306fphp7\u3067\u52d5\u304f\u3001\u3068\u304b\u306b\u3057\u305f\u3044\u3002<\/p>\n<h2>1. \u307e\u305aphp7\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3060<\/h2>\n<p>\u4eca\u73fe\u5728\u3067\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306f7.2\u3063\u307d\u3044\u306e\u3067\u305d\u308c\u3092\u3002<br \/>\nApache2\u7cfb\u306a\u306e\u3067 thread safe \u306a\u65b9\u306d\u3002(Apache1\u306e\u5834\u5408\u306fnonThreadSafe\u3058\u3083\u306a\u3044\u3068\u30c0\u30e1\u307f\u305f\u3044)<br \/>\n\u307e\u305f\u300132bit\u7248\u306864bit\u7248\u304c\u3042\u3063\u3066PC\u306f64\u30d3\u30c3\u30c8\u3060\u304b\u3089\u8ff7\u308f\u305a64\u3092\u843d\u3068\u3057\u305f\u3093\u3060\u3051\u3069<br \/>\napache\u304c32\u30d3\u30c3\u30c8\u3058\u3083\u306a\u3044\u3068\u30c0\u30e1\u3001\u3063\u3066\u6012\u3089\u308c\u305f\u3002<br \/>\n\u3053\u308c\u306f\u6012\u3089\u308c\u3066\u304b\u3089\u9055\u3046\u5974\u3092\u843d\u3068\u3057\u3066\u3082\u3044\u3044\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<h2>2. \u89e3\u51cd\u3057\u3066\u683c\u7d0d\u3060<\/h2>\n<p>\u9069\u5f53\u306a\u5834\u6240\u306b\u56de\u7b54\u3057\u3066\u9069\u5f53\u306a\u5834\u6240\u306b\u6301\u3063\u3066\u304f\u3088<br \/>\n\u50d5\u306fxampp\u3092\u4f7f\u3063\u3066\u308b\u306e\u3067<br \/>\nc:\\xampp \u76f4\u4e0b\u306b\u914d\u7f6e\u3057\u3066<br \/>\n\u3055\u3089\u306b\u30d5\u30a9\u30eb\u30c0\u540d\u304c\u9577\u3044\u306e\u3067 php72 \u306b\u6539\u540d\u3057\u305f\u3002<\/p>\n<h2>3. \u4f55\u304b\u3042\u3063\u305f\u6642\u306e\u305f\u3081\u306bconf\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3060<\/h2>\n<p>c:\\xampp\\apache\\conf \u3092\u30b3\u30d4\u30fc\u3057\u3066 conf_ \u3063\u3066\u4f5c\u3063\u305f\u3088\u3002<br \/>\nconf_bk\u3067\u3082conf_bak\u3067\u3082\u3044\u3044\u3051\u3069\u3001\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u3061\u3083\u3093\u3068\u6d88\u3059\u306e\u3088\uff1f<\/p>\n<h2>4. \u307e\u305a\u306f7\u3060\u3051\u8d77\u52d5\u3055\u305b\u3066\u307f\u3088\u3046<\/h2>\n<p>\u30a2\u30d1\u30c3\u30c1\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306fc:\\xampp\\apache\\conf \u306e\u4e2d\u306b\u3042\u308a\u307e\u3059\u3002<br \/>\nphp5\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u8a2d\u5b9a\u306f\u304a\u305d\u3089\u304f\u3053\u306e\u4e2d\u306b\u3042\u308b\u3001\u3068\u306b\u3089\u3093\u3067<br \/>\n\u300cphp\u300d\u3067\u5168\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u691c\u7d22\u3059\u308b\u3068\u305d\u308c\u3063\u307d\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>php5\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8aad\u307f\u8fbc\u307f<\/p>\n<pre>\r\nLoadFile \"C:\/xampp\/php\/php5ts.dll\"\r\nLoadFile \"C:\/xampp\/php\/libpq.dll\"\r\nLoadModule php5_module \"C:\/xampp\/php\/php5apache2_4.dll\"\r\n<\/pre>\n<p>\u5b9f\u969b\u306b\u8d77\u52d5\u3059\u308bPHP\u30d5\u30a1\u30a4\u30eb\u306e\u6307\u5b9a<\/p>\n<pre>\r\n<IfModule php5_module>\r\n    PHPINIDir \"C:\/xampp\/php\"\r\n<\/IfModule>\r\n<\/pre>\n<p>\u3068\u3001\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n\u4e0b\u306eIfModule\u306fphp5_module\u3092\u547c\u3093\u3067\u3044\u306a\u3051\u308c\u3070\u547c\u3070\u308c\u306a\u3044\u306e\u3067<br \/>\n\u4e0a\u306e\u65b9\u306e3\u884c\u3060\u3051\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066<br \/>\n4\u884c\u8ffd\u8a18<\/p>\n<pre>\r\n#LoadFile \"C:\/xampp\/php\/php5ts.dll\"\r\n#LoadFile \"C:\/xampp\/php\/libpq.dll\"\r\n#LoadModule php5_module \"C:\/xampp\/php\/php5apache2_4.dll\"\r\n\r\nLoadFile \"C:\/xampp\/php72\/php7ts.dll\"\r\nLoadFile \"C:\/xampp\/php72\/libpq.dll\"\r\nLoadModule php7_module \"C:\/xampp\/php72\/php7apache2_4.dll\"\r\nPHPINIDir \"C:\/xampp\/php72\"\r\n<\/pre>\n<p>\u305d\u3057\u3066apache\u306e\u518d\u8d77\u52d5\u3092\u3057\u3066<br \/>\n\u30d6\u30e9\u30a6\u30b6\u304b\u3089phpinfo()\u3067 PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d<br \/>\n(\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3057\u3066\u3082\u610f\u5473\u304c\u306a\u3044\u306e\u3067\u3001\u5ff5\u306e\u305f\u3081\u3002)<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u304c7.2.0RC3\u3063\u3066\u306a\u3063\u3066\u308b\uff01OK\uff01<br \/>\n(\u3053\u3053\u3067\u6c17\u304c\u4ed8\u3044\u305f\u3051\u3069RC\u3063\u3066\u6b63\u5f0f\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u306a\u3044\u3089\u3057\u3044\u3002\u3067\u3082\u4eca\u66f4\u623b\u308b\u6c17\u306f\u306a\u3044\uff01)<\/p>\n<h2>5. \u3082\u3046\u5c11\u3057\u6398\u308a\u4e0b\u3052\u3066\u8003\u3048\u3066\u307f\u3088\u3046\u3002\u30c8\u30e9\u30a4\u30a2\u30f3\u30c9\u30a8\u30e9\u30fc\u3067\u3002<\/h2>\n<p>7\u30685\u3092\u5207\u308a\u66ff\u3048\u308b\u30e9\u30a4\u30f3\u306f\u3069\u3053\u306b\u3042\u308b\u306e\u304b\u3002<br \/>\n\u3069\u3053\u307e\u3067\u3084\u3063\u305f\u3089\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3001\u3069\u3053\u307e\u3067\u306a\u3089\u30bb\u30fc\u30d5\u306a\u306e\u304b\u3002<br \/>\n\u30ad\u30fc\u306b\u306a\u308b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306f<br \/>\n\u305d\u308c\u305e\u308c\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306b<br \/>\nLoadFile~\u304c2\u3064\u3001LoadModule,PNPINDir\u304c\u4e00\u3064\u3065\u3064\u3002<br \/>\n\u601d\u3044\u5207\u3063\u3066If\u3092\u5916\u3057\u3066\u304f\u3063\u3064\u3051\u3066\u30c6\u30b9\u30c8\u3092\u3059\u308b\u3046\u3061\u306b<\/p>\n<p>\u30fbLoadFile\uff5e\u306f4\u3064\u5168\u90e8\u66f8\u304d\u3063\u3071\u306a\u3057\u3067\u554f\u984c\u306a\u3044<br \/>\n\u30fbLoadModule\u306f2\u56de\u547c\u3093\u3067\u3082\u3044\u3044\u304c\u3001\u5148\u306b\u8aad\u3093\u3060\u65b9\u304c\u512a\u5148\u3055\u308c\u308b<br \/>\n\u30fbPHPINDir\u3092\u4e8c\u56de\u547c\u3076\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u304c\u30015\u306e\u3067\u3082\uff17\u306e\u3067\u3082\u69cb\u308f\u306a\u3044\u3088\u3046\u3060\u3002<\/p>\n<p>\u3068\u3044\u3046\u4e8b\u304c\u308f\u304b\u3063\u305f\u3002<\/p>\n<p>\u3067\u3082\u3001PHPINDir\u306b\u3064\u3044\u3066\u306f\u3061\u3087\u3063\u3068\u6016\u3044\u6c17\u304c\u3059\u308b\u306a\u3002<\/p>\n<h2>6. \u3044\u308d\u3044\u308d\u9811\u5f35\u3063\u305f\u3051\u3069\u30c0\u30e1\u3060\u3063\u305f\u306e\u3067\u3082\u3046\u3061\u3087\u3063\u3068\u52c9\u5f37\u3059\u308b<\/h2>\n<p>\u3053\u3053\u3067\u306e\u767b\u5834\u4eba\u7269(\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6(httpd.conf\u306b\u66f8\u304b\u308c\u308b\u6587<br \/>\nLoadModule<br \/>\n\u3000\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u3080<br \/>\nSetHandler<br \/>\n\u3000\u30cf\u30f3\u30c9\u30eb\u3092\u6307\u5b9a\u3059\u308b<FileMatch>\u3067\u56f2\u3093\u3067\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30cf\u30f3\u30c9\u30eb\u3092\u7d10\u3065\u3051\u308b<br \/>\n\u3000\u4e0a\u66f8\u304d\u3055\u308c\u308b\u306e\u3067\u3001\u5f8c\u306b\u3042\u308b\u307b\u3046\u304c\u512a\u5148<br \/>\nFileMatch<br \/>\n\u3000\u6b63\u898f\u8868\u73fe\u3067\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u5b9f\u884c\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3067\u304d\u308b<\/p>\n<p>\u30fb\u30cf\u30f3\u30c9\u30eb\u3063\u3066\u4f55\uff1f<br \/>\n\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u7279\u5b9a\u306e\u51e6\u7406\u306b\u7d10\u3065\u3051\u3092\u3059\u308b\u5f79\u76ee\u3092\u6301\u3063\u3066\u3044\u308b<br \/>\n\u305f\u3068\u3048\u3070<\/p>\n<pre>\r\n<FilesMatch \"\\.php$\">\r\n    SetHandler application\/x-httpd-php\r\n<\/FilesMatch>\r\n<\/pre>\n<p>\u3060\u3063\u305f\u3089 \u30d5\u30a1\u30a4\u30eb\u540d\u304c .php \u3067\u7d42\u308f\u308b\u3082\u306e\u306f<br \/>\napplication\/x-httpd-php \u304c\u51e6\u7406\u3067\u304d\u308b\u4eba\u304c\u51e6\u7406\u3057\u3066\u306d<br \/>\n\u3068\u3044\u3046\u8a2d\u5b9a\u306b\u306a\u308b\u3002<br \/>\n\u3053\u306e\u5834\u5408\u306f application\/x-httpd-php \u304c\u30cf\u30f3\u30c9\u30eb\u540d\uff1f\u30bf\u30a4\u30d7\uff1f\u3063\u3066\u547c\u3076\u3089\u3057\u3044\u3002<\/p>\n<p>\u30fb\u305d\u3057\u305f\u3089\u30cf\u30f3\u30c9\u30eb\u30bf\u30a4\u30d7\u3068\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u7d10\u3065\u3051\u306f\uff1f<br \/>\n\u306a\u3093\u304b\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u66f8\u3044\u3066\u3042\u308b\u3063\u307d\u3044\u3002<br \/>\n\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u7121\u7406\u3084\u308a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304f\u3068\u30d0\u30a4\u30ca\u30ea\u7684\u306a\u3082\u306e\u306e\u4e2d\u306b<\/p>\n<pre>\r\nphp5apache2_4.dll\r\nAuthorization application\/x-httpd-php application\/x-httpd-php-source\r\n\r\nphp7apache2_4.dll\r\nAuthorization application\/x-httpd-php application\/x-httpd-php-source php7-script text\/html\r\n<\/pre>\n<p>\u3068\u66f8\u3044\u3066\u3042\u308b\u3068\u3053\u308d\u304c\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3068\u3044\u3046\u4e8b\u306f LoadModule\u3057\u305f\u6642\u306b\u3001<br \/>\nModule\u81ea\u8eab\u304c\u300c\u3042\u3001\u50d5\u306f\u30b3\u30ec\u3068\u30b3\u30ec\u62c5\u5f53\u3057\u307e\u3059\u308f\u300d\u3068<br \/>\n\u81ea\u5df1\u7533\u544a\u3059\u308b\u65b9\u5f0f\u3058\u3083\u306a\u3044\u304b\u3068\u63a8\u6e2c\u3067\u304d\u308b\u3068\u3044\u3046\u4e8b\u3067\u3059\u306d\u3002<\/p>\n<p>\u305f\u3060\u3001php7\u306b\u306f php7-script \u3068\u81ea\u5206\u304c7\u3067\u3042\u308b\u3053\u3068\u3092\u5ba3\u8a00\u3059\u308b\u3068\u3053\u308d\u304c\u3042\u308a\u307e\u3059\u304c<br \/>\n5\u306e\u65b9\u306b\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3082\u4e8c\u3064\u3068\u30827\u3068\u88ab\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u4e21\u65b9\u5ba3\u8a00\u3057\u305f\u3068\u304d\u306b\u3069\u3061\u3089\u304c\u512a\u5148\u3055\u308c\u308b\u304b\u306b\u3064\u3044\u3066\u306f<br \/>\n\u6700\u521d\u306bLoadModule\u3057\u305f\u65b9\u304c\u512a\u5148\u3055\u308c\u308b<br \/>\n\u3068\u3044\u3046\u4e8b\u304c 5. \u306e\u5b9f\u9a13\u3067\u308f\u304b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>7. \u3055\u3042\u3084\u3063\u3066\u307f\u3088\u3046<\/h2>\n<p>\u307e\u305a\u30dd\u30a4\u30f3\u30c8\u3092\u6574\u7406\u3057\u307e\u3059\u3002<br \/>\n\u30fb\u6700\u521d\u306bLoadFile\u30924\u3064\u5168\u90e8\u547c\u3076<br \/>\n\u30fb\u6b21\u306bLoadModule\u3092 5->7 \u306e\u9806\u756a\u3067\u547c\u3076<br \/>\n\u30fbSetHandler \u3067 \u5168\u4f53\u306ephp\u30d5\u30a1\u30a4\u30eb\u3068 php5\u3092\u7d10\u3065\u3051\u308b<br \/>\n\u30fbPHPINIDir\u306f\u3068\u308a\u3042\u3048\u305a\u524a\u9664\u3059\u308b(\u6b21\u306e\u7ae0\u3067\u3084\u308b)<br \/>\n\u30fbphp7\u3092\u4f7f\u7528\u3057\u305f\u3044VirtualHost\u306eVirtualHost\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306bSetHandler\u3067 php7-script \u3092\u7d10\u3065\u3051\u308b<br \/>\n  \u203b3\u5de5\u7a0b\u76ee\u306ephp5\u7528\u306eSetHandler\u3088\u308a\u3082\u5f8c\u306b\u8a18\u8f09\u3057\u306a\u3044\u3068\u30c0\u30e1<br \/>\n\u30fbapache\u518d\u8d77\u52d5\u3057\u3066\u78ba\u8a8d<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u9806\u756a\u3082\u91cd\u8981\u306a\u306e\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3042\u304f\u307e\u3067\u50d5\u306e\u74b0\u5883\u4e0b\u306e\u8a71\u306a\u306e\u3067\u3001\u3048\uff1f\u4ffa\u306e\u9055\u3046\u3093\u3060\u3051\u3069\uff01\u3063\u3066\u8a00\u3046\u4eba\u306f<br \/>\n\u304c\u3093\u3070\u3063\u3066\u305d\u308c\u3063\u307d\u304f\u3046\u307e\u3044\u3053\u3068\u3084\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>httpd.conf\u3092\u8aad\u3080<br \/>\nhttpd.conf\u4e2d\u306b Include conf\/extra\/httpd-vhosts.conf \u304c\u3042\u308b\u306e\u3067\u305d\u308c\u3092\u8aad\u307f\u306b\u884c\u304f<br \/>\nhttpd.conf\u4e2d\u306b Include conf\/extra\/httpd-xampp.conf \u304c\u3042\u308b\u306e\u3067\u305d\u308c\u3092\u8aad\u307f\u306b\u884c\u304f<br \/>\nhttpd.conf\u3092\u6700\u5f8c\u307e\u3067\u8aad\u307f\u5207\u308b<\/p>\n<p>\u3053\u3053\u307e\u3067\u78ba\u8a8d\u3067\u304d\u305f\u3089\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u3092\u3057\u307e\u3059<\/p>\n<pre>\r\nhttpd.conf\r\n\r\nLoadFile \"C:\/xampp\/php\/php5ts.dll\"\r\nLoadFile \"C:\/xampp\/php\/libpq.dll\"\r\nLoadFile \"C:\/xampp\/php72\/php7ts.dll\"\r\nLoadFile \"C:\/xampp\/php72\/libpq.dll\"\r\n\r\nLoadModule php5_module \"C:\/xampp\/php\/php5apache2_4.dll\"\r\nLoadModule php7_module \"C:\/xampp\/php72\/php7apache2_4.dll\"\r\n\r\n#\u2193\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\r\n#PHPINIDir \"C:\/xampp\/php\"\r\n\r\n====\r\nextra\/httpd-vhosts.conf\r\n\r\n<VirtualHost *:80>\r\n    DocumentRoot \"C:\/vhosts\/localhost7\"\r\n    ServerName localhost7\r\n    <FilesMatch \"\\.php$\">\r\n        SetHandler php7-script\r\n    <\/FilesMatch>\r\n<\/VirtualHost>\r\n\r\nextra\/httpd-xampp.conf\r\n\u203b\u4e0b\u306e\u3088\u3046\u306a\u884c\u3092\u524a\u9664\u307e\u305f\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\r\n\u203b\u30c6\u30b9\u30c8\u3067php7\u7cfb\u306e\u3082\u306e\u3082\u66f8\u3044\u3066\u305f\u3089\u305d\u308c\u3082\u9664\u53bb\r\n\r\n#LoadFile \"C:\/xampp\/php\/php5ts.dll\"\r\n#LoadFile \"C:\/xampp\/php\/libpq.dll\"\r\n#LoadModule php5_module \"C:\/xampp\/php\/php5apache2_4.dll\"\r\n\r\n#PHPINIDir \"C:\/xampp\/php\"\r\n<\/pre>\n<p>\u3067\u3001apache\u518d\u8d77\u52d5\u3057\u3066 \u30d6\u30e9\u30a6\u30b6\u304b\u3089\u305d\u308c\u305e\u308c\u306ephpinfo()\u3092\u78ba\u8a8d\uff01<br \/>\n\u3084\u3063\u305f\uff01\u3067\u304d\u3066\u308b\uff01<\/p>\n<h2>8. php.ini\u3092\u4f7f\u3044\u5206\u3051\u308b<\/h2>\n<p>\u3053\u3053\u304c\u4eca\u56de\u306e\u6700\u30cf\u30de\u308a\u30dd\u30a4\u30f3\u30c8\u3067\u3057\u305f\u3002<\/p>\n<p>\u306f\u307e\u3063\u305f\u539f\u56e0\u306f php\u672c\u5bb6\u306e\u65e5\u672c\u8a9e\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u629c\u3051\u304c\u3042\u3063\u305f \u3068\u3044\u3046\u4e8b\u3067\u3059\u3002<br \/>\nteratail\u3055\u3093\u306b\u52a9\u3051\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002\u30de\u30b8\u611f\u8b1d\u3067\u3059\u3002<\/p>\n<p>\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u3056\u3063\u304f\u308a\u3057\u305f\u611f\u3058\u3067\u307e\u3068\u3081\u308b\u3068<br \/>\nphp\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306bphp.ini\u306e\u5834\u6240\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\uff01<br \/>\nWindows\u7248\u3067\u306f\u30ec\u30b8\u30b9\u30c8\u30ea\u3067\u6307\u5b9a\u3067\u304d\u308b\u3088\uff01<br \/>\n\u30ec\u30b8\u30b9\u30c8\u30ea\u30ad\u30fc\u306f<br \/>\nHKEY_LOCAL_MACHINE\\SOFTWARE\\PHP\\[x[.y[.z]]]<br \/>\n\u3067 IniFilePath \u3068\u3044\u3046\u30a8\u30f3\u30c8\u30ea\u3092\u4f5c\u3063\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u3066\u306d<br \/>\n\u305f\u3060\u3057\u300132bit\u7248\u306eapache\u309264bit\u6a5f\u3067\u52d5\u304b\u3057\u3066\u308b\u5834\u5408\u306f<br \/>\nHKEY_LOCAL_MACHINE\\Wow6432Node\\SOFTWARE\\PHP\\[x[.y[.z]]]<br \/>\n\u3060\u304b\u3089\u306d\uff01<\/p>\n<p>\u3068\u3044\u3046\u4e8b\u3067\u3057\u305f\u3002<br \/>\n\u305f\u3060\u3057\u3001\u4ee5\u4e0b\u306e\u90e8\u5206\u304c\u65e5\u672c\u8a9e\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u306f\u66f8\u3044\u3066\u306a\u304b\u3063\u305f\u3093\u3067\u3059\u3002\u30de\u30b8\u3067\u3002<br \/>\n\u304c\u3001\u3080\u3053\u3046\u304b\u3089\u3059\u308b\u3068\u306a\u3093\u306764\u306732\u306e\u52d5\u304b\u3059\u3093\u3060\u3088\u3001\u30d7\u30f3\u30d7\u30f3\u3063\u3066\u611f\u3058\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u307e\u3041\u3001\u3068\u3082\u304b\u304f\u30ec\u30b8\u30b9\u30c8\u30ea\u30ad\u30fc\u3092\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\n\u50d5\u306e\u5834\u5408\u306f<br \/>\nHKEY_LOCAL_MACHINE\\Wow6432Node\\SOFTWARE\\PHP\\5.6<br \/>\n  IniFilePath=C:\\xampp\\php<br \/>\nHKEY_LOCAL_MACHINE\\Wow6432Node\\SOFTWARE\\PHP\\7.2<br \/>\n  IniFilePath=C:\\xampp\\php72<br \/>\n\u3063\u3066\u611f\u3058\u3067\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u5ff5\u306e\u305f\u3081OS\u306e\u518d\u8d77\u52d5\u3092\u3057\u3066\u304b\u3089\u3001phpinfo()\u3067 \u8aad\u3093\u3067\u3044\u308bphp.ini\u306e\u5834\u6240\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\nLoaded Configuration File \u3063\u3066\u9805\u76ee\u3067\u3059\u306d\u3002<br \/>\n\u3053\u3053\u304c\u4f4d\u3068\u4e0b\u901a\u308a\u306b\u306a\u3063\u3066\u308c\u3070OK<br \/>\n\u50d5\u306e\u5834\u5408\u306f<br \/>\n5\u7cfb\u306e\u5834\u5408<br \/>\n  C:\\xampp\\php\\php.ini<br \/>\n7.2\u306e\u5834\u5408<br \/>\n  C:\\xampp\\php72\\php.ini<\/p>\n<p>\u3053\u308c\u3067\u4eca\u65e5\u304b\u3089PHP7\u4f7f\u3044\u306b\u30b0\u30ec\u30fc\u30c9\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\uff01<br \/>\n5\u3068\u6bd4\u3079\u3066\u51e6\u7406\u6642\u9593\u304c\u534a\u5206\u306b\u306a\u3063\u305f\u3068\u3044\u3046\u4e8b\u306a\u306e\u3067\u3001\u697d\u3057\u307f\u3067\u3059\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u30fc\u305b\u4eca\u304b\u3089\u65b0\u3057\u3044\u3053\u3068\u3092\u3084\u308b\u306a\u3089 php7\u3092\u4f7f\u3044\u305f\u3044\u3088\u306d \u3067\u3082\u3001\u4eca\u307e\u3067\u306e\u30d7\u30ed\u30b8\u30a7 &hellip; <a href=\"https:\/\/blog.chiekoubou.com\/?p=863\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,25],"tags":[],"class_list":["post-863","post","type-post","status-publish","format-standard","hentry","category-php","category-se"],"_links":{"self":[{"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=\/wp\/v2\/posts\/863"}],"collection":[{"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=863"}],"version-history":[{"count":5,"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=\/wp\/v2\/posts\/863\/revisions"}],"predecessor-version":[{"id":868,"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=\/wp\/v2\/posts\/863\/revisions\/868"}],"wp:attachment":[{"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chiekoubou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}