{"id":2059,"date":"2013-07-16T11:42:53","date_gmt":"2013-07-16T02:42:53","guid":{"rendered":"\/wordpress\/?p=2059"},"modified":"2013-07-16T11:42:53","modified_gmt":"2013-07-16T02:42:53","slug":"iisphp5mysql5%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"http:\/\/project.aichi-u.ac.jp\/wordpress\/?p=2059","title":{"rendered":"IIS+PHP5+Mysql5\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p>\u4e45\u3057\u3076\u308a\u306bIIS\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u5909\u66f4\u3092\u3057\u305f\u6642\u306e\u30e1\u30e2\u3002<br \/>\n\u4eca\u56de\u306f\u3001PHP\uff14\u304b\u3089\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u304b\u3051\u3066\u3001\u5927\u3044\u306b\u60a9\u307f\u307e\u3057\u305f\u3002\u305d\u306e\u985b\u672b\u3067\u3059\u3002<\/p>\n<hr>\n<p>[\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30b5\u30fc\u30d0]<\/p>\n<pre class=\"code\"> WindowsServer2003\n\u3000IIS6.0\n\u3000PHP4.4.0\n\u3000Mysql5.0.45-community-nt <\/pre>\n<p>[PHP5\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb]<br \/>\n\u3000<a href=\"http:\/\/www.php.net\/manual\/ja\/install.windows.iis6.php\">php.net<\/a>\u306e\u8aac\u660e\u306b\u5f93\u3044\u3001\u975e\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u7248\u306e VC9 x86 Non Thread Safe\uff08ZIP\u7248\uff09\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5c55\u958b<\/p>\n<pre class=\"code\"> \u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u3000C:\\Program Files\\php\\v5.4<\/pre>\n<p>C:\\\u306e\u76f4\u4e0b\u306a\u3069\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u307b\u3046\u304c\u7121\u96e3\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u3000\u5c55\u958b\u5f8c\u3001php.ini-development\u3092\u30b3\u30d4\u30fc\u3057\u3066php.ini\u3092\u4f5c\u6210\u3057\u3001\u30a8\u30f3\u30c8\u30ea\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"code\"> fastcgi.impersonate = 1\nfastcgi.logging = 0\ncgi.fix_pathinfo=1\ncgi.force_redirect = 0<\/pre>\n<p>\u3000\u3082\u3061\u308d\u3093\u3001extension\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a\u3084\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<br \/>\n\u3000\u30b5\u30fc\u30d0\u30b7\u30b9\u30c6\u30e0\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3042\u308b\u74b0\u5883\u5909\u6570\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fPHP\u30d5\u30a9\u30eb\u30c0\u3078\u306e\u30d1\u30b9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u78ba\u5b9f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n[FasctCGI\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb]<br \/>\n\u3000<a href=\"http:\/\/www.iis.net\/downloads\/microsoft\/fastcgi-for-iis\">Microsoft FastCGI Extension for IIS 5.1 and 6.0<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u3000PHP5\u304b\u3089\u306fisapi\u3067\u306f\u306a\u304f\u3001\u3053\u3061\u3089\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u3089\u3057\u3044\u3002<br \/>\n\u3000\u6a19\u6e96\u306a\u3089C:\\WINDOWS\\system32\\inetsrv\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u3002\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6<br \/>\n\u3000fxgiext.ini\u306b\u4e0b\u8a18\u3092\u8ffd\u52a0<\/p>\n<pre class=\"code\"> [Tyupe]\n\u3000\u3000\u3000php=PHP54_via_FastCGI\n[PHP54_via_FastCGI]\nExePath=\"C:\\Program Files\\PHP\\v5.4\\php-cgi.exe\"\nInstanceMaxRequests=10000\nActivityTimeout=600\nRequestTimeout=600\nEnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:C:\\Program Files\\PHP\\v5.4\n<\/pre>\n<p>php.net\u306e\u8a18\u8ff0\u306b\u3088\u308c\u3070\u3001fcgiconfig.js\u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3067\u304d\u308b\u3089\u3057\u3044\u306e\u3060\u3051\u3069\u3001\u4f55\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u306e\u304b\u5206\u304b\u308a\u306b\u304f\u304f\u3066\u3001\u7d50\u5c40\u624b\u52d5\u3067\u7de8\u96c6\u3057\u307e\u3057\u305f\u3002<br \/>\n\uff3bIIS\u30de\u30cd\u30fc\u30b8\u30e3\u306b\u3088\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a\uff3d<br \/>\n\u3000IIS\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u8d77\u52d5\u3057\u3001\u898f\u5b9a\u306eWeb\u30b5\u30a4\u30c8\uff08\u3082\u3057\u304f\u306fPHP5\u3092\u9069\u7528\u3057\u305f\u3044\u30d5\u30a9\u30eb\u30c0\uff09\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u69cb\u6210\u3067\u3001\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u8a2d\u5b9a<br \/>\n<a href=\"http:\/\/joint.aichi-u.ac.jp\/mt3\/image\/IIS_php.jpg\"><img loading=\"lazy\" decoding=\"async\" alt=\"IIS_php.jpg\" src=\"http:\/\/joint.aichi-u.ac.jp\/mt3\/image\/IIS_php-thumb.jpg\" width=\"300\" height=\"213\" \/><\/a><\/p>\n<pre class=\"code\">\u3000\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3000\u3000 C:\\WINDOWS\\system32\\inetsrv\\fcgiext.dll\n\u3000\u62e1\u5f35\u5b50\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000GET,HEAD,POST<\/pre>\n<p>\u8a2d\u5b9a\u3057\u305f\u3089\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30fc\u30eb\u3092\u30ea\u30b5\u30a4\u30af\u30eb(\u518d\u8d77\u52d5\uff09\u3059\u308b\u304b\u3001\u898f\u5b9a\u306eWeb\u30b5\u30fc\u30d0\u81ea\u4f53\u3092\u518d\u8d77\u52d5\u3055\u305b\u308b\u3002<br \/>\n\u3053\u308c\u3067.php\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u306f\u3001fasetcgii\u7d4c\u7531\u3067PHP5\u304c\u8d77\u52d5\u3055\u308c\u308b\u306f\u305a\u3002&lt;?php phpinfo() ?&gt;\u306a\u3069\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3002<br \/>\n\u3053\u308c\u3067Mysql\u30b5\u30fc\u30d0\u306b\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306f\u305a\u3001\u3068\u304a\u3082\u3063\u305f\u3089\u3001\u3053\u3053\u306b\u843d\u3068\u3057\u7a74\u304c\u3042\u308a\u307e\u3057\u305f\u3002PHP4\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3082\u3001PHP5\u304b\u3089\u3067\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3067\u304d\u306a\u3044\u306e\u3067\u3059!\u306a\u3093\u3067\uff01\uff1f<br \/>\n\u3069\u3046\u3084\u3089Mysqld\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u5024\u304cPHP4\u306e16\u30d0\u30a4\u30c8\u304b\u3089\u3001php5\u3067\u306f41\u30d0\u30a4\u30c8\u306b\u62e1\u5f35\u3055\u308c\u3066\u308b\u3089\u3057\u3044\u3002\u305d\u308c\u3067\u540c\u3058\u30d0\u30b9\u30ef\u30fc\u30c9\u3067\u63a5\u7d9a\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001\u5225\u30cf\u30c3\u30b7\u30e5\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u3089\u3057\u3044\u306e\u3067\u3059\u3002<br \/>\n[Mysql\u306e\u8a2d\u5b9a]<br \/>\n\u3000<br \/>\n\u3000my.ini\u3092\u7de8\u96c6\u3057\u3001\u4e0b\u8a18\u3092\u6709\u52b9\u5316\u3059\u308b<\/p>\n<pre class=\"code\">Olapassword=Off\u3000<\/pre>\n<p>\u3000<br \/>\n\u3000\u3053\u308c\u306716\u30d0\u30a4\u30c8\u306e\u30cf\u30c3\u30b7\u30e5\u5024\u3067\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u2026\u30fb\u3002\u3060\u3051\u3069\u306a\u305c\u304b\u5931\u6557\u3002\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7279\u6a29\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u3001\u518d\u751f\u6210\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u3081\u3067\u305f\u304f\u30a2\u30af\u30bb\u30b9\u6210\u529f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e45\u3057\u3076\u308a\u306bIIS\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u5909\u66f4\u3092\u3057\u305f\u6642\u306e\u30e1\u30e2\u3002 \u4eca\u56de\u306f\u3001PHP\uff14\u304b\u3089\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u304b\u3051\u3066\u3001\u5927\u3044\u306b\u60a9\u307f\u307e\u3057\u305f\u3002\u305d\u306e\u985b\u672b\u3067\u3059\u3002 [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30b5\u30fc\u30d0] WindowsServer2003 \u3000IIS6.0 \u3000PHP4 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[30],"tags":[],"class_list":["post-2059","post","type-post","status-publish","format-standard","hentry","category-system"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/project.aichi-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2059"}],"collection":[{"href":"http:\/\/project.aichi-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/project.aichi-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/project.aichi-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/project.aichi-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2059"}],"version-history":[{"count":0,"href":"http:\/\/project.aichi-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2059\/revisions"}],"wp:attachment":[{"href":"http:\/\/project.aichi-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/project.aichi-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2059"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/project.aichi-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}