{"id":235,"date":"2019-05-26T22:58:06","date_gmt":"2019-05-26T13:58:06","guid":{"rendered":"http:\/\/risa-webstore.com\/blog\/?p=235"},"modified":"2019-05-26T23:21:34","modified_gmt":"2019-05-26T14:21:34","slug":"windows%e7%89%88php%e3%81%abpear%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%81%a8%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%a0%e3%82%89%e3%81%91%e3%81%a7%e5%9b%b0","status":"publish","type":"post","link":"https:\/\/risa-webstore.com\/blog\/?p=235","title":{"rendered":"Windows\u7248PHP\u306bPEAR\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3060\u3089\u3051\u3067\u56f0\u96e3\u3060\u3063\u305f"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002<a href=\"https:\/\/risa-webstore.com\/\">\u5236\u670d\u5c4b<\/a>\u306e\u5e97\u9577\u3067\u3059\u3002<\/p>\n<p>Windows Server 2019\u306bPHP\u3068PEAR\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3060\u3051\u3067\u3001\u305f\u3044\u3078\u3093\u3066\u3053\u305a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u5099\u5fd8\u9332\u3068\u3057\u3066\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002Windows Server 2016\u3067\u3082\u540c\u69d8\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u00a0<\/p>\n<h2>PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>1.\u3000PHP\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3001<a href=\"https:\/\/www.php.net\/downloads.php\">\u3053\u3053<\/a>\u304b\u3089\u3001Windows downloads\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p>VC14 x64 Non Thread Safe\u3068VC14 x64 Thread Safe\u304c\u3042\u308a\u307e\u3059\u304c\u3001VC14 x64 Non Thread Safe\u306fWeb\u30b5\u30fc\u30d0\u306bIIS\u3092\u4f7f\u3046\u5834\u5408\u306b\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p>VC14 x64 Thread Safe\u306fWindows\u7248Apache HTTP\u30b5\u30fc\u30d0\u3092\u4f7f\u3046\u5834\u5408\u306e\u307f\u9078\u3073\u307e\u3059\u3002<\/p>\n<p>2.\u3000zip\u3092c:\\PHP\u306b\u5c55\u958b\u3057\u74b0\u5883\u5909\u6570\u3067PATH\u3092\u901a\u3059\u3002<\/p>\n<p>3.\u3000C:\\PHP\\php.ini-production\u3092php.ini\u306b\u540d\u524d\u3092\u5909\u66f4\u3002<\/p>\n<p>\u4e0d\u89aa\u5207\u306a\u8aac\u660e\u3067\u3059\u304c\u8a73\u3057\u304f\u306f\u4ed6\u306e\u30b5\u30a4\u30c8\u3067\u8abf\u3079\u3066\u306d\uff08\u7121\u8cac\u4efb\uff09<\/p>\n<p>\u00a0<\/p>\n<h2>PEAR\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>1.\u3000C:\\PHP\\PEAR\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>2.\u3000<a href=\"http:\/\/pear.php.net\/go-pear.phar\">http:\/\/pear.php.net\/go-pear.phar<\/a>\u2190\u53f3\u30dc\u30bf\u30f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u300c\u540d\u524d\u3092\u4ed8\u3051\u3066\u30ea\u30f3\u30af\u5148\u3092\u4fdd\u5b58\u300d\u3067\u5148\u306eC:\\PHP\\PEAR\u30d5\u30a9\u30eb\u30c0\u5185\u3092\u6307\u5b9a\u3002<\/p>\n<p>3.\u3000\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u7ba1\u7406\u8005\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>c:\\users\\youraccount&gt; cd c:\\php<br \/>c:\\PHP&gt;php -d output_buffering=0 PEAR\\go-pear.phar<\/pre>\n<p>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u3001<\/p>\n<pre>Are you installing a system-wide PEAR or a local copy?<br \/>(system|local) [system] :<\/pre>\n<p>\u3068\u805e\u304b\u308c\u307e\u3059\u3002\u3053\u3053\u306fEnter\u3092\u5165\u529b\u3002<\/p>\n<pre>Below is a suggested file layout for your new PEAR installation. To<br \/>change individual locations, type the number in front of the<br \/>directory. Type 'all' to change all of them or simply press Enter to<br \/>accept these locations.<br \/><br \/>1. Installation base ($prefix) : c:\\PHP<br \/>2. Temporary directory for processing : c:\\PHP\\tmp<br \/>3. Temporary directory for downloads : c:\\PHP\\tmp<br \/>4. Binaries directory : c:\\PHP<br \/>5. PHP code directory ($php_dir) : c:\\PHP\\pear<br \/>6. Documentation directory : c:\\PHP\\docs<br \/>7. Data directory : c:\\PHP\\data<br \/>8. User-modifiable configuration files directory : c:\\PHP\\cfg<br \/>9. Public Web Files directory : c:\\PHP\\www<br \/>10. System manual pages directory : c:\\PHP\\man<br \/>11. Tests directory : c:\\PHP\\tests<br \/>12. Name of configuration file : C:\\Windows\\pear.ini<br \/>13. Path to CLI php.exe :<br \/><br \/>1-13, 'all' or Enter to continue: 13<\/pre>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u3073\u307e\u3059\u304c\u300113. Path to CLI php.exe :\u3060\u3051\u7a7a\u6b04\u306a\u306e\u3067\u3001\u3053\u3053\u3067<\/p>\n<pre>13<\/pre>\n<p>\u3068\u5165\u529b\u3002\u3059\u308b\u3068\u3001\u30d5\u30a9\u30eb\u30c0\u9078\u629e\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u30dc\u30c3\u30af\u30b9\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3001C:\\PHP\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u7ba1\u7406\u8005\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u3053\u3053\u3067<\/p>\n<pre>Beginning install...<br \/>PEAR_Config::writeConfigFile fopen('C:\\Windows\\pear.ini','w') failed (fopen(C:\\Windows\\pear.ini): failed to open stream: Permission denied)<\/pre>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u7ba1\u7406\u8005\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u3068\u304d\u3061\u3093\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u00a0<\/p>\n<h2>PEAR\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u30a8\u30e9\u30fc\u306b\u906d\u9047<\/h2>\n<p>\u3055\u3066\u3053\u3053\u304b\u3089\u304c\u672c\u984c\u3067\u3059\u3002\u4e0a\u8a18\u307e\u3067\u306f\u3044\u308d\u3093\u306a\u30b5\u30a4\u30c8\u3092\u898b\u308c\u3070\u3082\u3063\u3068\u8a73\u3057\u304f\u8abf\u3079\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u304c\u3001\u3053\u3053\u304b\u3089\u306f\u3042\u307e\u308a\u60c5\u5831\u304c\u306a\u304f\u3001\u624b\u3053\u305a\u3063\u305f\u306e\u3067\u5099\u5fd8\u9332\u3067\u3059\u3002<\/p>\n<pre>C:\\PHP&gt;pear install HTTP_Request<\/pre>\n<p>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001<\/p>\n<pre>No releases available for package \"pear.php.net\/HTTP_Request\"<br \/>install failed<\/pre>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u305b\u3093\u3002\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u66f4\u65b0\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001<\/p>\n<pre>c:\\PHP&gt;pear channel-update pear.php.net<br \/><br \/>Updating channel \"pear.php.net\"<br \/>Channel \"pear.php.net\" is not responding over http:\/\/, failed with message: Connection to `ssl:\/\/pear.php.net:443' failed: Unable to find the socket transport \"ssl\" - did you forget to enable it when you configured PHP?<br \/>Trying channel \"pear.php.net\" over https:\/\/ instead<br \/>Cannot retrieve channel.xml for channel \"pear.php.net\" (Connection to `ssl:\/\/pear.php.net:443' failed: Unable to find the socket transport \"ssl\" - did you forget to enable it when you configured PHP?)<\/pre>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u00a0<\/p>\n<h2>PEAR\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3089php.ini\u3092\u7591\u304a\u3046<\/h2>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u7591\u3063\u305f\u308a\u3001\u3044\u308d\u3044\u308d\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u7d50\u8ad6\u304b\u3089\u8a00\u3048\u3070\u3001php.ini\u3092\u4fee\u6b63\u3059\u308c\u3070\u3044\u3051\u307e\u3059\u3002<\/p>\n<pre>;extension_dir = \"ext\"<\/pre>\n<p>\u3053\u306e\u884c\u306e\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u50d5\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff087.3.5\uff09\u3067\u306f760\u884c\u76ee\u3067\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306b\u3001<\/p>\n<pre>;extension=openssl<\/pre>\n<p>\u3053\u306e\u884c\u306e\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3082\u5916\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u50d5\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff087.3.5\uff09\u3067\u306f927\u884c\u76ee\u3067\u3057\u305f\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001<\/p>\n<pre>;date.timezone =<\/pre>\n<p>\u3053\u306e\u884c\u306f\u3001\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u5f8c\u3001<\/p>\n<pre>date.timezone = \"Asia\/Tokyo\"<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u3053\u308c\u3067\u6539\u3081\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u8a66\u307f\u308b\u3068\u3001<\/p>\n<pre>C:\\PHP&gt;pear install HTTP_Request<br \/><br \/>WARNING: \"pear\/HTTP_Request\" is deprecated in favor of \"pear\/HTTP_Request2\"<br \/>WARNING: channel \"pear.php.net\" has updated its protocols, use \"pear channel-update pear.php.net\" to update<br \/>WARNING: \"pear\/Net_URL\" is deprecated in favor of \"pear\/Net_URL2\"<br \/>downloading HTTP_Request-1.4.4.tgz ...<br \/>Starting to download HTTP_Request-1.4.4.tgz (17,233 bytes)<br \/>......done: 17,233 bytes<br \/>downloading Net_URL-1.0.15.tgz ...<br \/>Starting to download Net_URL-1.0.15.tgz (6,393 bytes)<br \/>...done: 6,393 bytes<br \/>downloading Net_Socket-1.2.2.tgz ...<br \/>Starting to download Net_Socket-1.2.2.tgz (6,903 bytes)<br \/>...done: 6,903 bytes<br \/>install ok: channel:\/\/pear.php.net\/Net_URL-1.0.15<br \/>install ok: channel:\/\/pear.php.net\/Net_Socket-1.2.2<br \/>install ok: channel:\/\/pear.php.net\/HTTP_Request-1.4.4<\/pre>\n<p>\u7121\u4e8b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\uff01<\/p>\n<p>\u00a0<\/p>\n<h2>HTTP_Request\u3067\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u304c\u51fa\u308b<\/h2>\n<p>PEAR HTTP_Request\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<\/p>\n<pre>PHP Parse error: syntax error, unexpected 'new' (T_NEW) in C:\\PHP\\PEAR\\HTTP\\Request.php on line 412<\/pre>\n<p>\u3053\u3093\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3093\u306a\u6642\u306f\u3001C:\\PHP\\PEAR\\HTTP\\Request.php\u3092\u958b\u304d\u3001<\/p>\n<pre>&amp;new<\/pre>\n<p>\u3067\u691c\u7d22\u3002412\u884c\u76ee\u3001749\u884c\u76ee\u3001794\u884c\u76ee\u306b\u898b\u3064\u304b\u308b\u306e\u3067\u3001<\/p>\n<pre>&amp;<\/pre>\n<p>\u3092\u524a\u9664\u3057\u3001<\/p>\n<pre>new<\/pre>\n<p>\u3060\u3051\u306b\u3057\u307e\u3059\u3002\u3055\u3089\u306b736\u884c\u76ee<\/p>\n<div>\n<pre>&amp; new<\/pre>\n<\/div>\n<div>\u3068\u3001\u30b9\u30da\u30fc\u30b9\u304c\u5165\u3063\u3066\u308b\u90e8\u5206\u3082\u3042\u308b\u306e\u3067\u3001\u3053\u3053\u3082\uff06\u3092\u629c\u304d\u307e\u3059\u3002<\/div>\n<p>\u3053\u3046\u3059\u308c\u3070\u3044\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u308b\u6587\u6cd5\u306e\u9055\u3044\u3060\u305d\u3046\u3067\u3059\u3002\u6587\u6cd5\u3092\u983b\u7e41\u306b\u5909\u3048\u308b\u306e\u3084\u3081\u3066\u6b32\u3057\u3044\u30fb\u30fb\u30fb\u3002<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u5236\u670d\u5c4b\u306e\u5e97\u9577\u3067\u3059\u3002 Windows Server 2019\u306bPHP\u3068&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=235"}],"version-history":[{"count":8,"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/235\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/risa-webstore.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}