{"id":120,"date":"2007-02-12T02:01:18","date_gmt":"2007-02-11T17:01:18","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2007\/02\/12\/amp-on-a-usb-%e8%a8%ad%e5%ae%9a\/"},"modified":"2007-02-12T02:01:18","modified_gmt":"2007-02-11T17:01:18","slug":"amp-on-a-usb-%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/120","title":{"rendered":"AMP on a USB \u8a2d\u5b9a"},"content":{"rendered":"<p>USB\u30e1\u30e2\u30ea\u5185\u306b Apache + PHP + MySQL \u306e\u958b\u767a\u74b0\u5883\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067\u5916\u51fa\u5148\u3067\u306e\u30c7\u30e2\u3084\u958b\u767a\u304c\u5bb9\u6613\u306b\u884c\u3048\u307e\u3059\u3002<br \/>\n\u672c\u5bb6\u30b5\u30a4\u30c8\u306f\u3053\u3061\u3089\u3002<br \/>\n<a href=\"http:\/\/www.firepages.com.au\/php_usb.htm\" target=\"_blank\" rel=\"noopener\">http:\/\/www.firepages.com.au\/php_usb.htm<\/a><br \/>\n\u3000\u3000\u3000\u3061\u306a\u307f\u306b\u3053\u306e\u30b5\u30a4\u30c8\u306f\u6570\u5e74\u524d\u306bApache + PHP + MySQL \u3092\u4e00\u62ec\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30c4\u30fc\u30eb\u3092\u914d\u5e03\u3057\u3066\u3044\u305f\u30b5\u30a4\u30c8\u3067\u3057\u305f\u3002\u3000\u30c8\u30ec\u30fc\u30c9\u30de\u30fc\u30af\u306e\u30de\u30a4\u30b1\u30eb\u30b8\u30e3\u30af\u30bd\u30f3\u306b\u898b\u899a\u3048\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\nphp_usb\u3000\u3068\u3044\u3046ZIP\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u5f8c\u3001USB\u30e1\u30e2\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<br \/>\n\u672c\u5bb6\u30b5\u30a4\u30c8\u3069\u304a\u308a\u306b\u3084\u308a\u307e\u3057\u305f\u3002<br \/>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<br \/>\n$usb:\/<br \/>\n&#8212;&#8212;&#8212;&#8212;-start.bat<br \/>\n&#8212;&#8212;&#8212;&#8212;-pdrive\/<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;php.ini<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;start.php<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;apache-2.0.50\/<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;php-5.0.3\/<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;mysql\/<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;www\/ *\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;sess\/ *\u30bb\u30c3\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u30fc\u306e\u305f\u3081\u306e\u7a7a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<br \/>\n\u79c1\u306fApache, NySQL\u306fWindows\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u3082\u306e\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nApache<br \/>\nC:\\Program Files\\Apache Group\\Apache2\u4ee5\u4e0b\u3092 USB:\\pdrive\\apache-2.0.50\u4ee5\u4e0b\u306b\u30b3\u30d4\u30fc\u3057\u3066<br \/>\nconf \u30d5\u30a1\u30a4\u30eb\u306e\u307f\u914d\u5e03\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002<br \/>\nMySQL<br \/>\nC:\\Program Files\\MySQL\\MySQL Server 5.0\u4ee5\u4e0b\u3092\u3000USB:\\pdrive\\mysql\u4ee5\u4e0b\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3002<br \/>\nPHP<br \/>\nPHP\u672c\u5bb6\u30b5\u30a4\u30c8\u3088\u308aphp-5.0.3-Win32.zip \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u5f8c\u3001USB:\\pdrive\\php-5.0.3\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3067\u6e96\u5099\u306f\u307b\u307c\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3053\u306e\u307e\u307e\u3067\u306f\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067conf\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u63db\u3048\u304c\u5fc5\u8981\u3067\u3057\u305f\u3002<br \/>\n\u3053\u3093\u306a\u98a8\u306b\u3057\u3066\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/drunk.chips.jp\/diet\/file\/apache-usb.jpg\"><br \/>\nUSB:\\pdrive\\apache-2.0.50\\conf\\httpd.conf\u3000\u306e\uff15\uff16\u884c\u76ee<br \/>\n\u300cLoadModule ssl_module modules\/mod_ssl.so\u300d\u3092\u30b3\u30e1\u30f3\u30c8\u306b\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3082\u3068\u3082\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u305fApache\u304c\u3000apache_2.0.51-win32-x86-no_ssl.exe\u3000\u3067SSL\u5bfe\u5fdc\u3067\u306a\u304b\u3063\u305f\u305f\u3081\u3068\u601d\u308f\u308c\u307e\u3059\u3002<br \/>\n\u307e\u305fUSB:\\pdrive\\php.ini \u3082\u4fee\u6b63\u3057\u3066\u3044\u305f\u307b\u3046\u304c\u3088\u3055\u305d\u3046\u3067\u3059\u3002<br \/>\n\u300csession.save_path = &#8220;\\\\pdrive\\\\sess&#8221;\u300d\u3092\u30b3\u30e1\u30f3\u30c8\u306b<br \/>\n\u3000\uff0aphpMyAdmin\u3092\u4f7f\u3063\u305f\u3068\u304d\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u898b\u306b\u884c\u3063\u3066\u5931\u6557\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\u3000\u3000\u3000\u30bb\u30c3\u30b7\u30e7\u30f3\u4fdd\u5b58\u9818\u57df\u306f\u660e\u793a\u7684\u306b\u3057\u306a\u3044\u307b\u3046\u304c\u3088\u3055\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3053\u308c\u304c\u7d42\u308f\u3063\u305f\u3089\u3000start.bat\u3000\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u8d77\u52d5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\nhttp:\/\/localhost:85\/ \u3067\u30d6\u30e9\u30a6\u30b6\u304c\u8d77\u52d5\u3057\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u898b\u3048\u308c\u3070\u6210\u529f\u3067\u3059\u3002<br \/>\n\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u306f\u3001start.bat \u3067\u547c\u3073\u51fa\u3055\u308c\u308bUSB:\\pdrive\\start.php \u5185\u90e8\u3092\u30b3\u30e1\u30f3\u30c8\u306b\u3057\u305f\u308a\u3057\u3066\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3053\u308c\u304cUSB\u5185\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5236\u5fa1\u3057\u3066\u3044\u308b\u5927\u672c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\necho &#8220;starting MySQL &#8230;.\\n&#8221;;<br \/>\npclose(<br \/>\npopen(<br \/>\n&#8216;start pdrive\\\\mysql\\\\bin\\\\mysqld-nt.exe &#8211;basedir=\/pdrive\/mysql &#8211;datadir=\/pdrive\/mysql\/data &#8211;port=3307 &#8211;console &#8211;standalone&#8217;<br \/>\n,&#8217;r&#8217; )<br \/>\n);<br \/>\necho &#8220;starting apache&#8230;.\\n&#8221;;<br \/>\nflush();<br \/>\npclose(popen(&#8216;start pdrive\\\\apache-2.0.50\\\\bin\\\\apache.exe&#8217;,&#8217;r&#8217;));<br \/>\nflush();<br \/>\nsleep(5);<br \/>\necho &#8216;opening localhost&#8217;;<br \/>\nexec( &#8216;start http:\/\/localhost:85&#8217;);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>USB\u30e1\u30e2\u30ea\u5185\u306b Apache + PH<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,12,7,25],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","hentry","category-apache","category-mysql","category-php","category-25"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}