{"id":6124,"date":"2015-08-27T09:48:17","date_gmt":"2015-08-27T00:48:17","guid":{"rendered":"http:\/\/manual.xbit.jp\/?p=6124"},"modified":"2015-08-27T09:48:17","modified_gmt":"2015-08-27T00:48:17","slug":"%ef%bd%83%ef%bd%87%ef%bd%89%e3%81%ae%e5%88%a9%e7%94%a8%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/manual.xbit.jp\/?p=6124","title":{"rendered":"\uff23\uff27\uff29\u306e\u5229\u7528\u65b9\u6cd5"},"content":{"rendered":"<p>\u5f0a\u793e\u30b5\u30fc\u30d0\u3067CGI\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u306a\u308b\u57fa\u672c\u7684\u306a\u60c5\u5831\u3092\u3054\u6848\u5185\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<h2>1.Perl\u306e\u30d1\u30b9<\/h2>\n<p>Perl\u3067\u8a18\u8ff0\u3055\u308c\u305fCGI\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\uff11\u884c\u76ee\u306b\u306f\u4ee5\u4e0b\u3092\u3054\u8a18\u8f09\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span style=\"color: #ff0000; background-color: #d9d9d9;\">#!\/usr\/bin\/perl<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2>2.CGI\u304c\u5229\u7528\u53ef\u80fd\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/h2>\n<p>CGI\u304c\u5229\u7528\u53ef\u80fd\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u300c\/httpdocs\u300d\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\u307e\u305f\u3001CGI\u30d7\u30ed\u30b0 \u30e9\u30e0\u306f\u5fc5\u305a\u62e1\u5f35\u5b50\u3092\u300c.cgi\u300d\u3082\u3057\u304f\u306f\u300c.pl\u300d\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div style=\"padding: 10px; margin-bottom: 10px; border: 1px solid #333333; background: #FFB6C1;\"><b><b>\u3010\u6ce8\u610f\u3011<br \/>1.\u30b5\u30fc\u30d0\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u3001\u300c\/httpdocs\u300d\u3068\u540c\u968e\u5c64\u306b\u300ccgi-bin\u300d\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u308a\u3001<br \/>\u3000\u3053\u3053\u3067\u3082CGI\u306f\u52d5\u4f5c\u3044\u305f\u3057\u307e\u3059\u304c\u3001\u4e0b\u8a18\u6ce8\u610f\u70b9\u304c\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p><\/b><\/b><\/p>\n<p>\u3000\u25cfSSL\uff08https:\/\/\uff5e\uff09\u3067\u306fCGI\u304c\u52d5\u4f5c\u3044\u305f\u3057\u307e\u305b\u3093\u3002<br \/>\u3000\u3000SSL\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u300c\/httpdocs\u300d\u914d\u4e0b\u306bCGI\u3092\u914d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3000\u25cf\u300c\/httpdocs\u300d\u914d\u4e0b\u306b\u300ccgi-bin\u300d\u3068\u3044\u3046\u540c\u540d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u305f\u5834\u5408\u3001<br \/>\u3000\u3000\u300c\/httpdocs\u300d\u914d\u4e0b\u306e\u300ccgi-bin\u300d\u304c\u512a\u5148\u3057\u3066\u53c2\u7167\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>2.\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u74b0\u5883\u3067CGI\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u300csubdomains\/\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u540d\/httpdocs\u300d<\/strong><br \/><strong>\u3000\u3000\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306b\u4e0b\u8a18\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u305f\u300c.htaccess\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><br \/>\u3000<br \/>\u3000\u3000&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\u3000\u3000<span style=\"background-color: #d9d9d9;\">AddHandler cgi-script .cgi<\/span><br \/>\u3000\u3000&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>3.CGI\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3<\/h2>\n<p>\u5f0a\u793e\u30b5\u30fc\u30d0\u3067\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u4e0a\u3001suEXEC\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3092\u4f7f\u3063\u3066CGI\u3092\u52d5\u4f5c\u3055\u305b\u3066\u3044\u307e\u3059\u3002<br \/>\u3053\u306esuEXEC\u74b0\u5883\u3067\u306f\u3001CGI\u30d5\u30a1\u30a4\u30eb\u306e\u6240\u6709\u8005\u4ee5\u5916\u306b\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u4ed8\u4e0e\u3067\u304d\u306a\u3044\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\u3053\u306e\u305f\u3081\u3001\u5f0a\u793e\u30b5\u30fc\u30d0\u3067\u5229\u7528\u3059\u308bCGI\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u3054\u8a2d\u5b9a\u304f\u3060\u3055\u3044\u3002<br \/><span style=\"font-size: 12pt;\"> \n<table id=\"tablepress-155\" class=\"tablepress tablepress-id-155\">\n<tbody>\n<tr class=\"row-1\">\n\t<td class=\"column-1\">CGI\u30d7\u30ed\u30b0\u30e9\u30e0<\/td><td class=\"column-2\">755<\/td>\n<\/tr>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/td><td class=\"column-2\">755<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">\u8a18\u9332\u7528\u30d5\u30a1\u30a4\u30eb<\/td><td class=\"column-2\">600<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-155 from cache --><\/span><\/p>\n<p>&nbsp;<\/p>\n<h2>4.\u5404\u7a2e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d1\u30b9<\/h2>\n<p>CGI\u3067sendmail\u306a\u3069\u306e\u5404\u7a2e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u30d1\u30b9\u306f\u4e0b\u8a18\u3092\u3054\u6307\u5b9a\u4e0b\u3055\u3044\u3002<\/p>\n<p><span style=\"font-size: 12pt;\">\n<table id=\"tablepress-156\" class=\"tablepress tablepress-id-156\">\n<tbody>\n<tr class=\"row-1\">\n\t<td class=\"column-1\">sendmail<\/td><td class=\"column-2\">\/usr\/lib\/sendmail<\/td>\n<\/tr>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">nkf<\/td><td class=\"column-2\">\/usr\/bin\/nkf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-156 from cache --><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f0a\u793e\u30b5\u30fc\u30d0\u3067CGI\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u306a\u308b\u57fa\u672c\u7684\u306a\u60c5\u5831\u3092\u3054\u6848\u5185\u3044\u305f\u3057\u307e\u3059\u3002 1.Perl\u306e\u30d1\u30b9 Perl\u3067\u8a18\u8ff0\u3055\u308c\u305fCGI\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u3001\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\uff11\u884c\u76ee\u306b\u306f\u4ee5\u4e0b\u3092\u3054\u8a18\u8f09\u304f\u3060\u3055\u3044\u3002 #!\/usr\/bin\/perl &#038; [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":3278,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[165,166,177,178,158,156,155,157],"tags":[],"_links":{"self":[{"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=\/wp\/v2\/posts\/6124"}],"collection":[{"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6124"}],"version-history":[{"count":16,"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=\/wp\/v2\/posts\/6124\/revisions"}],"predecessor-version":[{"id":6140,"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=\/wp\/v2\/posts\/6124\/revisions\/6140"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=\/wp\/v2\/media\/3278"}],"wp:attachment":[{"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manual.xbit.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}